com.aliyun.sdk.service.gpdb20160503.models.DescribeDBInstanceAttributeResponseBody 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 DescribeDBInstanceAttributeResponseBody} extends {@link TeaModel}
*
* DescribeDBInstanceAttributeResponseBody
*/
public class DescribeDBInstanceAttributeResponseBody extends TeaModel {
@NameInMap("Items")
private Items items;
@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();
}
/**
* @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;
/**
* The queried instance.
*/
public Builder items(Items items) {
this.items = items;
return this;
}
/**
* The request ID.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeDBInstanceAttributeResponseBody build() {
return new DescribeDBInstanceAttributeResponseBody(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 tag key.
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* The tag value.
*/
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 DBInstanceAttribute extends TeaModel {
@NameInMap("AvailabilityValue")
private String availabilityValue;
@NameInMap("ConnectionMode")
private String connectionMode;
@NameInMap("ConnectionString")
private String connectionString;
@NameInMap("CoreVersion")
private String coreVersion;
@NameInMap("CpuCores")
private Integer cpuCores;
@NameInMap("CpuCoresPerNode")
private Integer cpuCoresPerNode;
@NameInMap("CreationTime")
private String creationTime;
@NameInMap("DBInstanceCategory")
private String DBInstanceCategory;
@NameInMap("DBInstanceClass")
private String DBInstanceClass;
@NameInMap("DBInstanceClassType")
private String DBInstanceClassType;
@NameInMap("DBInstanceCpuCores")
private Integer DBInstanceCpuCores;
@NameInMap("DBInstanceDescription")
private String DBInstanceDescription;
@NameInMap("DBInstanceDiskMBPS")
private Long DBInstanceDiskMBPS;
@NameInMap("DBInstanceGroupCount")
private String DBInstanceGroupCount;
@NameInMap("DBInstanceId")
private String DBInstanceId;
@NameInMap("DBInstanceMemory")
private Long DBInstanceMemory;
@NameInMap("DBInstanceMode")
private String DBInstanceMode;
@NameInMap("DBInstanceNetType")
private String DBInstanceNetType;
@NameInMap("DBInstanceStatus")
private String DBInstanceStatus;
@NameInMap("DBInstanceStorage")
private Long DBInstanceStorage;
@NameInMap("EncryptionKey")
private String encryptionKey;
@NameInMap("EncryptionType")
private String encryptionType;
@NameInMap("Engine")
private String engine;
@NameInMap("EngineVersion")
private String engineVersion;
@NameInMap("ExpireTime")
private String expireTime;
@NameInMap("HostType")
private String hostType;
@NameInMap("IdleTime")
private Integer idleTime;
@NameInMap("InstanceNetworkType")
private String instanceNetworkType;
@NameInMap("LockMode")
private String lockMode;
@NameInMap("LockReason")
private String lockReason;
@NameInMap("MaintainEndTime")
private String maintainEndTime;
@NameInMap("MaintainStartTime")
private String maintainStartTime;
@NameInMap("MasterCU")
private Integer masterCU;
@NameInMap("MasterNodeNum")
private Integer masterNodeNum;
@NameInMap("MaxConnections")
private Integer maxConnections;
@NameInMap("MemoryPerNode")
private Integer memoryPerNode;
@NameInMap("MemorySize")
private Long memorySize;
@NameInMap("MemoryUnit")
private String memoryUnit;
@NameInMap("MinorVersion")
private String minorVersion;
@NameInMap("PayType")
private String payType;
@NameInMap("Port")
private String port;
@NameInMap("ProdType")
private String prodType;
@NameInMap("ReadDelayTime")
private String readDelayTime;
@NameInMap("RegionId")
private String regionId;
@NameInMap("ResourceGroupId")
private String resourceGroupId;
@NameInMap("RunningTime")
private String runningTime;
@NameInMap("SecurityIPList")
private String securityIPList;
@NameInMap("SegDiskPerformanceLevel")
private String segDiskPerformanceLevel;
@NameInMap("SegNodeNum")
private Integer segNodeNum;
@NameInMap("SegmentCounts")
private Integer segmentCounts;
@NameInMap("ServerlessMode")
private String serverlessMode;
@NameInMap("ServerlessResource")
private Integer serverlessResource;
@NameInMap("StartTime")
private String startTime;
@NameInMap("StoragePerNode")
private Integer storagePerNode;
@NameInMap("StorageSize")
private Long storageSize;
@NameInMap("StorageType")
private String storageType;
@NameInMap("StorageUnit")
private String storageUnit;
@NameInMap("SupportRestore")
private Boolean supportRestore;
@NameInMap("Tags")
private Tags tags;
@NameInMap("VSwitchId")
private String vSwitchId;
@NameInMap("VectorConfigurationStatus")
private String vectorConfigurationStatus;
@NameInMap("VpcId")
private String vpcId;
@NameInMap("ZoneId")
private String zoneId;
private DBInstanceAttribute(Builder builder) {
this.availabilityValue = builder.availabilityValue;
this.connectionMode = builder.connectionMode;
this.connectionString = builder.connectionString;
this.coreVersion = builder.coreVersion;
this.cpuCores = builder.cpuCores;
this.cpuCoresPerNode = builder.cpuCoresPerNode;
this.creationTime = builder.creationTime;
this.DBInstanceCategory = builder.DBInstanceCategory;
this.DBInstanceClass = builder.DBInstanceClass;
this.DBInstanceClassType = builder.DBInstanceClassType;
this.DBInstanceCpuCores = builder.DBInstanceCpuCores;
this.DBInstanceDescription = builder.DBInstanceDescription;
this.DBInstanceDiskMBPS = builder.DBInstanceDiskMBPS;
this.DBInstanceGroupCount = builder.DBInstanceGroupCount;
this.DBInstanceId = builder.DBInstanceId;
this.DBInstanceMemory = builder.DBInstanceMemory;
this.DBInstanceMode = builder.DBInstanceMode;
this.DBInstanceNetType = builder.DBInstanceNetType;
this.DBInstanceStatus = builder.DBInstanceStatus;
this.DBInstanceStorage = builder.DBInstanceStorage;
this.encryptionKey = builder.encryptionKey;
this.encryptionType = builder.encryptionType;
this.engine = builder.engine;
this.engineVersion = builder.engineVersion;
this.expireTime = builder.expireTime;
this.hostType = builder.hostType;
this.idleTime = builder.idleTime;
this.instanceNetworkType = builder.instanceNetworkType;
this.lockMode = builder.lockMode;
this.lockReason = builder.lockReason;
this.maintainEndTime = builder.maintainEndTime;
this.maintainStartTime = builder.maintainStartTime;
this.masterCU = builder.masterCU;
this.masterNodeNum = builder.masterNodeNum;
this.maxConnections = builder.maxConnections;
this.memoryPerNode = builder.memoryPerNode;
this.memorySize = builder.memorySize;
this.memoryUnit = builder.memoryUnit;
this.minorVersion = builder.minorVersion;
this.payType = builder.payType;
this.port = builder.port;
this.prodType = builder.prodType;
this.readDelayTime = builder.readDelayTime;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.runningTime = builder.runningTime;
this.securityIPList = builder.securityIPList;
this.segDiskPerformanceLevel = builder.segDiskPerformanceLevel;
this.segNodeNum = builder.segNodeNum;
this.segmentCounts = builder.segmentCounts;
this.serverlessMode = builder.serverlessMode;
this.serverlessResource = builder.serverlessResource;
this.startTime = builder.startTime;
this.storagePerNode = builder.storagePerNode;
this.storageSize = builder.storageSize;
this.storageType = builder.storageType;
this.storageUnit = builder.storageUnit;
this.supportRestore = builder.supportRestore;
this.tags = builder.tags;
this.vSwitchId = builder.vSwitchId;
this.vectorConfigurationStatus = builder.vectorConfigurationStatus;
this.vpcId = builder.vpcId;
this.zoneId = builder.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static DBInstanceAttribute create() {
return builder().build();
}
/**
* @return availabilityValue
*/
public String getAvailabilityValue() {
return this.availabilityValue;
}
/**
* @return connectionMode
*/
public String getConnectionMode() {
return this.connectionMode;
}
/**
* @return connectionString
*/
public String getConnectionString() {
return this.connectionString;
}
/**
* @return coreVersion
*/
public String getCoreVersion() {
return this.coreVersion;
}
/**
* @return cpuCores
*/
public Integer getCpuCores() {
return this.cpuCores;
}
/**
* @return cpuCoresPerNode
*/
public Integer getCpuCoresPerNode() {
return this.cpuCoresPerNode;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return DBInstanceCategory
*/
public String getDBInstanceCategory() {
return this.DBInstanceCategory;
}
/**
* @return DBInstanceClass
*/
public String getDBInstanceClass() {
return this.DBInstanceClass;
}
/**
* @return DBInstanceClassType
*/
public String getDBInstanceClassType() {
return this.DBInstanceClassType;
}
/**
* @return DBInstanceCpuCores
*/
public Integer getDBInstanceCpuCores() {
return this.DBInstanceCpuCores;
}
/**
* @return DBInstanceDescription
*/
public String getDBInstanceDescription() {
return this.DBInstanceDescription;
}
/**
* @return DBInstanceDiskMBPS
*/
public Long getDBInstanceDiskMBPS() {
return this.DBInstanceDiskMBPS;
}
/**
* @return DBInstanceGroupCount
*/
public String getDBInstanceGroupCount() {
return this.DBInstanceGroupCount;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return DBInstanceMemory
*/
public Long getDBInstanceMemory() {
return this.DBInstanceMemory;
}
/**
* @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 DBInstanceStorage
*/
public Long getDBInstanceStorage() {
return this.DBInstanceStorage;
}
/**
* @return encryptionKey
*/
public String getEncryptionKey() {
return this.encryptionKey;
}
/**
* @return encryptionType
*/
public String getEncryptionType() {
return this.encryptionType;
}
/**
* @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 hostType
*/
public String getHostType() {
return this.hostType;
}
/**
* @return idleTime
*/
public Integer getIdleTime() {
return this.idleTime;
}
/**
* @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 maintainEndTime
*/
public String getMaintainEndTime() {
return this.maintainEndTime;
}
/**
* @return maintainStartTime
*/
public String getMaintainStartTime() {
return this.maintainStartTime;
}
/**
* @return masterCU
*/
public Integer getMasterCU() {
return this.masterCU;
}
/**
* @return masterNodeNum
*/
public Integer getMasterNodeNum() {
return this.masterNodeNum;
}
/**
* @return maxConnections
*/
public Integer getMaxConnections() {
return this.maxConnections;
}
/**
* @return memoryPerNode
*/
public Integer getMemoryPerNode() {
return this.memoryPerNode;
}
/**
* @return memorySize
*/
public Long getMemorySize() {
return this.memorySize;
}
/**
* @return memoryUnit
*/
public String getMemoryUnit() {
return this.memoryUnit;
}
/**
* @return minorVersion
*/
public String getMinorVersion() {
return this.minorVersion;
}
/**
* @return payType
*/
public String getPayType() {
return this.payType;
}
/**
* @return port
*/
public String getPort() {
return this.port;
}
/**
* @return prodType
*/
public String getProdType() {
return this.prodType;
}
/**
* @return readDelayTime
*/
public String getReadDelayTime() {
return this.readDelayTime;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return runningTime
*/
public String getRunningTime() {
return this.runningTime;
}
/**
* @return securityIPList
*/
public String getSecurityIPList() {
return this.securityIPList;
}
/**
* @return segDiskPerformanceLevel
*/
public String getSegDiskPerformanceLevel() {
return this.segDiskPerformanceLevel;
}
/**
* @return segNodeNum
*/
public Integer getSegNodeNum() {
return this.segNodeNum;
}
/**
* @return segmentCounts
*/
public Integer getSegmentCounts() {
return this.segmentCounts;
}
/**
* @return serverlessMode
*/
public String getServerlessMode() {
return this.serverlessMode;
}
/**
* @return serverlessResource
*/
public Integer getServerlessResource() {
return this.serverlessResource;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
/**
* @return storagePerNode
*/
public Integer getStoragePerNode() {
return this.storagePerNode;
}
/**
* @return storageSize
*/
public Long getStorageSize() {
return this.storageSize;
}
/**
* @return storageType
*/
public String getStorageType() {
return this.storageType;
}
/**
* @return storageUnit
*/
public String getStorageUnit() {
return this.storageUnit;
}
/**
* @return supportRestore
*/
public Boolean getSupportRestore() {
return this.supportRestore;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return vectorConfigurationStatus
*/
public String getVectorConfigurationStatus() {
return this.vectorConfigurationStatus;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
public static final class Builder {
private String availabilityValue;
private String connectionMode;
private String connectionString;
private String coreVersion;
private Integer cpuCores;
private Integer cpuCoresPerNode;
private String creationTime;
private String DBInstanceCategory;
private String DBInstanceClass;
private String DBInstanceClassType;
private Integer DBInstanceCpuCores;
private String DBInstanceDescription;
private Long DBInstanceDiskMBPS;
private String DBInstanceGroupCount;
private String DBInstanceId;
private Long DBInstanceMemory;
private String DBInstanceMode;
private String DBInstanceNetType;
private String DBInstanceStatus;
private Long DBInstanceStorage;
private String encryptionKey;
private String encryptionType;
private String engine;
private String engineVersion;
private String expireTime;
private String hostType;
private Integer idleTime;
private String instanceNetworkType;
private String lockMode;
private String lockReason;
private String maintainEndTime;
private String maintainStartTime;
private Integer masterCU;
private Integer masterNodeNum;
private Integer maxConnections;
private Integer memoryPerNode;
private Long memorySize;
private String memoryUnit;
private String minorVersion;
private String payType;
private String port;
private String prodType;
private String readDelayTime;
private String regionId;
private String resourceGroupId;
private String runningTime;
private String securityIPList;
private String segDiskPerformanceLevel;
private Integer segNodeNum;
private Integer segmentCounts;
private String serverlessMode;
private Integer serverlessResource;
private String startTime;
private Integer storagePerNode;
private Long storageSize;
private String storageType;
private String storageUnit;
private Boolean supportRestore;
private Tags tags;
private String vSwitchId;
private String vectorConfigurationStatus;
private String vpcId;
private String zoneId;
/**
* The service availability of the instance. Unit: %.
*
*
* > This parameter is returned only for instances in reserved storage mode.
*/
public Builder availabilityValue(String availabilityValue) {
this.availabilityValue = availabilityValue;
return this;
}
/**
* The access mode of the instance. Valid values:
*
*
* * **Performance**: standard mode.
* * **Safety**: safe mode.
* * **LVS**: Linux Virtual Server (LVS) mode.
*/
public Builder connectionMode(String connectionMode) {
this.connectionMode = connectionMode;
return this;
}
/**
* The endpoint that is used to connect to the instance.
*/
public Builder connectionString(String connectionString) {
this.connectionString = connectionString;
return this;
}
/**
* The number of the minor version.
*/
public Builder coreVersion(String coreVersion) {
this.coreVersion = coreVersion;
return this;
}
/**
* The number of CPU cores per compute node.
*/
public Builder cpuCores(Integer cpuCores) {
this.cpuCores = cpuCores;
return this;
}
/**
* The number of CPU cores per node.
*
*
* > This parameter is returned only for instances in reserved storage mode.
*/
public Builder cpuCoresPerNode(Integer cpuCoresPerNode) {
this.cpuCoresPerNode = cpuCoresPerNode;
return this;
}
/**
* The time when the instance was created.
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* The edition of the instance. Valid values:
*
*
* * **Basic**: Basic Edition.
* * **HighAvailability**: High-availability Edition.
*/
public Builder DBInstanceCategory(String DBInstanceCategory) {
this.DBInstanceCategory = DBInstanceCategory;
return this;
}
/**
* The instance type of the instance.
*
*
* > This parameter is returned only for instances in reserved storage mode.
*/
public Builder DBInstanceClass(String DBInstanceClass) {
this.DBInstanceClass = DBInstanceClass;
return this;
}
/**
* The instance family of the instance. Valid values:
*
*
* * **s**: shared.
* * **x**: general-purpose.
* * **d**: dedicated.
* * **h**: dedicated host.
*/
public Builder DBInstanceClassType(String DBInstanceClassType) {
this.DBInstanceClassType = DBInstanceClassType;
return this;
}
/**
* The number of CPU cores.
*/
public Builder DBInstanceCpuCores(Integer DBInstanceCpuCores) {
this.DBInstanceCpuCores = DBInstanceCpuCores;
return this;
}
/**
* The description of the instance.
*/
public Builder DBInstanceDescription(String DBInstanceDescription) {
this.DBInstanceDescription = DBInstanceDescription;
return this;
}
/**
* The maximum disk throughput of the compute group. Unit: Mbit/s.
*
*
* > This parameter is returned only for instances in reserved storage mode.
*/
public Builder DBInstanceDiskMBPS(Long DBInstanceDiskMBPS) {
this.DBInstanceDiskMBPS = DBInstanceDiskMBPS;
return this;
}
/**
* The number of compute groups.
*
*
* > This parameter is returned only for instances in reserved storage mode.
*/
public Builder DBInstanceGroupCount(String DBInstanceGroupCount) {
this.DBInstanceGroupCount = DBInstanceGroupCount;
return this;
}
/**
* The instance ID.
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* The memory capacity per compute node.
*
*
* > The unit of this parameter is MB for instances in reserved storage mode and GB for instances in Serverless mode or elastic storage mode.
*/
public Builder DBInstanceMemory(Long DBInstanceMemory) {
this.DBInstanceMemory = DBInstanceMemory;
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;
}
/**
* An invalid parameter. It is no longer returned when you call this operation.
*/
public Builder DBInstanceNetType(String DBInstanceNetType) {
this.DBInstanceNetType = DBInstanceNetType;
return this;
}
/**
* The state of the instance. For more information, see the "Additional description of DBInstanceStatus" section of this topic.
*/
public Builder DBInstanceStatus(String DBInstanceStatus) {
this.DBInstanceStatus = DBInstanceStatus;
return this;
}
/**
* The maximum storage capacity per node. Unit: GB.
*/
public Builder DBInstanceStorage(Long DBInstanceStorage) {
this.DBInstanceStorage = DBInstanceStorage;
return this;
}
/**
* The encryption key.
*
*
* > This parameter is returned only for instances that have disk encryption enabled.
*/
public Builder encryptionKey(String encryptionKey) {
this.encryptionKey = encryptionKey;
return this;
}
/**
* The encryption type. Valid values:
*
*
* * **CloudDisk**: disk encryption.
*
* > This parameter is returned only for instances that have disk encryption enabled.
*/
public Builder encryptionType(String encryptionType) {
this.encryptionType = encryptionType;
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 disk type of the compute group. Valid values:
*
*
* * **0**: SSD.
* * **1**: HDD.
*
* > This parameter is returned only for instances in reserved storage mode.
*/
public Builder hostType(String hostType) {
this.hostType = hostType;
return this;
}
/**
* The wait period for the instance that has no traffic to become idle. Unit: seconds.
*
*
* > This parameter is returned only for instances in Serverless automatic scheduling mode.
*/
public Builder idleTime(Integer idleTime) {
this.idleTime = idleTime;
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.
*/
public Builder lockMode(String lockMode) {
this.lockMode = lockMode;
return this;
}
/**
* An invalid parameter. It is no longer returned when you call this operation.
*/
public Builder lockReason(String lockReason) {
this.lockReason = lockReason;
return this;
}
/**
* The end time of the maintenance window of the instance.
*/
public Builder maintainEndTime(String maintainEndTime) {
this.maintainEndTime = maintainEndTime;
return this;
}
/**
* The start time of the maintenance window of the instance.
*/
public Builder maintainStartTime(String maintainStartTime) {
this.maintainStartTime = maintainStartTime;
return this;
}
/**
* The amount of coordinator node resources.
*/
public Builder masterCU(Integer masterCU) {
this.masterCU = masterCU;
return this;
}
/**
* The number of coordinator nodes.
*/
public Builder masterNodeNum(Integer masterNodeNum) {
this.masterNodeNum = masterNodeNum;
return this;
}
/**
* The maximum number of concurrent connections to the instance.
*
*
* > This parameter is returned only for instances in reserved storage mode.
*/
public Builder maxConnections(Integer maxConnections) {
this.maxConnections = maxConnections;
return this;
}
/**
* The memory capacity per node. The unit of this parameter can be one of the valid values of **MemoryUnit**.
*
*
* > This parameter is returned only for instances in reserved storage mode.
*/
public Builder memoryPerNode(Integer memoryPerNode) {
this.memoryPerNode = memoryPerNode;
return this;
}
/**
* The memory capacity per compute node.
*
*
* > The unit of this parameter is MB for instances in reserved storage mode and GB for instances in Serverless mode or elastic storage mode.
*/
public Builder memorySize(Long memorySize) {
this.memorySize = memorySize;
return this;
}
/**
* The unit of the memory capacity.
*
*
* > This parameter is returned only for instances in reserved storage mode.
*/
public Builder memoryUnit(String memoryUnit) {
this.memoryUnit = memoryUnit;
return this;
}
/**
* The minor version of the instance.
*/
public Builder minorVersion(String minorVersion) {
this.minorVersion = minorVersion;
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;
}
/**
* The port number that is used to connect to the instance.
*/
public Builder port(String port) {
this.port = port;
return this;
}
/**
* ProdType.
*/
public Builder prodType(String prodType) {
this.prodType = prodType;
return this;
}
/**
* An invalid parameter. It is no longer returned when you call this operation.
*/
public Builder readDelayTime(String readDelayTime) {
this.readDelayTime = readDelayTime;
return this;
}
/**
* The region ID of the instance.
*/
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 running duration of the instance.
*/
public Builder runningTime(String runningTime) {
this.runningTime = runningTime;
return this;
}
/**
* An invalid parameter. It is no longer returned when you call this operation.
*/
public Builder securityIPList(String securityIPList) {
this.securityIPList = securityIPList;
return this;
}
/**
* The performance level of ESSDs. Only **PL1** is supported.
*/
public Builder segDiskPerformanceLevel(String segDiskPerformanceLevel) {
this.segDiskPerformanceLevel = segDiskPerformanceLevel;
return this;
}
/**
* The number of compute nodes.
*
*
* > This parameter is returned only for instances in elastic storage mode or Serverless manual scheduling mode.
*/
public Builder segNodeNum(Integer segNodeNum) {
this.segNodeNum = segNodeNum;
return this;
}
/**
* The number of compute groups.
*
*
* > This parameter is returned only for instances in reserved storage mode.
*/
public Builder segmentCounts(Integer segmentCounts) {
this.segmentCounts = segmentCounts;
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 threshold of computing resources. Unit: AnalyticDB compute units (ACUs).
*
*
* > This parameter is returned only for instances in Serverless automatic scheduling mode.
*/
public Builder serverlessResource(Integer serverlessResource) {
this.serverlessResource = serverlessResource;
return this;
}
/**
* The time when the instance started to run.
*/
public Builder startTime(String startTime) {
this.startTime = startTime;
return this;
}
/**
* The storage capacity per node. The unit of this parameter can be one of the valid values of **StorageUnit**.
*
*
* > This parameter is returned only for instances in reserved storage mode.
*/
public Builder storagePerNode(Integer storagePerNode) {
this.storagePerNode = storagePerNode;
return this;
}
/**
* The storage capacity of the instance. Unit: GB.
*/
public Builder storageSize(Long storageSize) {
this.storageSize = storageSize;
return this;
}
/**
* The storage type of the instance. Valid values:
*
*
* * **cloud_essd**: enhanced SSD (ESSD).
* * **cloud_efficiency**: ultra disk.
*
* > This parameter is returned only for instances in elastic storage mode.
*/
public Builder storageType(String storageType) {
this.storageType = storageType;
return this;
}
/**
* The unit of the storage capacity. Valid values:
*
*
* * **GB SSD**
* * **TB SSD**
* * **GB HDD**
*
* > This parameter is returned only for instances in reserved storage mode.
*/
public Builder storageUnit(String storageUnit) {
this.storageUnit = storageUnit;
return this;
}
/**
* Indicates whether the instance supports backup and restoration. Valid values:
*
*
* * **true**
* * **false**
*/
public Builder supportRestore(Boolean supportRestore) {
this.supportRestore = supportRestore;
return this;
}
/**
* The tags of the instance. Each tag is a key-value pair.
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
/**
* The vSwitch ID of the instance.
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
/**
* Indicates whether vector search engine optimization is enabled. Valid values:
*
*
* * **enabled**
* * **disabled**
*/
public Builder vectorConfigurationStatus(String vectorConfigurationStatus) {
this.vectorConfigurationStatus = vectorConfigurationStatus;
return this;
}
/**
* The virtual private cloud (VPC) ID of the instance.
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
/**
* The zone ID of the instance.
*/
public Builder zoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
public DBInstanceAttribute build() {
return new DBInstanceAttribute(this);
}
}
}
public static class Items extends TeaModel {
@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;
/**
* DBInstanceAttribute.
*/
public Builder DBInstanceAttribute(java.util.List < DBInstanceAttribute> DBInstanceAttribute) {
this.DBInstanceAttribute = DBInstanceAttribute;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}