All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.polardb20170801.models.DescribeDBClustersResponseBody Maven / Gradle / Ivy

There is a newer version: 4.0.29
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.polardb20170801.models;

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link DescribeDBClustersResponseBody} extends {@link TeaModel}
 *
 * 

DescribeDBClustersResponseBody

*/ public class DescribeDBClustersResponseBody 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 DescribeDBClustersResponseBody(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 DescribeDBClustersResponseBody 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 information about the clusters. */ public Builder items(Items items) { this.items = items; return this; } /** * The number of the page to return. */ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; } /** * The number of clusters returned per page. */ public Builder pageRecordCount(Integer pageRecordCount) { this.pageRecordCount = pageRecordCount; return this; } /** * The ID of the request. */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * The total number of returned entries. */ public Builder totalRecordCount(Integer totalRecordCount) { this.totalRecordCount = totalRecordCount; return this; } public DescribeDBClustersResponseBody build() { return new DescribeDBClustersResponseBody(this); } } public static class DBNode extends TeaModel { @com.aliyun.core.annotation.NameInMap("DBNodeClass") private String DBNodeClass; @com.aliyun.core.annotation.NameInMap("DBNodeId") private String DBNodeId; @com.aliyun.core.annotation.NameInMap("DBNodeRole") private String DBNodeRole; @com.aliyun.core.annotation.NameInMap("HotReplicaMode") private String hotReplicaMode; @com.aliyun.core.annotation.NameInMap("ImciSwitch") private String imciSwitch; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("Serverless") private String serverless; @com.aliyun.core.annotation.NameInMap("ZoneId") private String zoneId; private DBNode(Builder builder) { this.DBNodeClass = builder.DBNodeClass; this.DBNodeId = builder.DBNodeId; this.DBNodeRole = builder.DBNodeRole; this.hotReplicaMode = builder.hotReplicaMode; this.imciSwitch = builder.imciSwitch; this.regionId = builder.regionId; this.serverless = builder.serverless; this.zoneId = builder.zoneId; } public static Builder builder() { return new Builder(); } public static DBNode create() { return builder().build(); } /** * @return DBNodeClass */ public String getDBNodeClass() { return this.DBNodeClass; } /** * @return DBNodeId */ public String getDBNodeId() { return this.DBNodeId; } /** * @return DBNodeRole */ public String getDBNodeRole() { return this.DBNodeRole; } /** * @return hotReplicaMode */ public String getHotReplicaMode() { return this.hotReplicaMode; } /** * @return imciSwitch */ public String getImciSwitch() { return this.imciSwitch; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return serverless */ public String getServerless() { return this.serverless; } /** * @return zoneId */ public String getZoneId() { return this.zoneId; } public static final class Builder { private String DBNodeClass; private String DBNodeId; private String DBNodeRole; private String hotReplicaMode; private String imciSwitch; private String regionId; private String serverless; private String zoneId; /** * The specifications of the node. */ public Builder DBNodeClass(String DBNodeClass) { this.DBNodeClass = DBNodeClass; return this; } /** * The ID of the node. */ public Builder DBNodeId(String DBNodeId) { this.DBNodeId = DBNodeId; return this; } /** * The role of the node. Valid values: *

* * * **Writer**: primary node * * **Reader**: read-only node * * **ColumnReader**: column store read-only node * * **AI**: AI node */ public Builder DBNodeRole(String DBNodeRole) { this.DBNodeRole = DBNodeRole; return this; } /** * Indicates whether the hot standby feature is enabled. Valid values: *

* * * **ON** * * **OFF** */ public Builder hotReplicaMode(String hotReplicaMode) { this.hotReplicaMode = hotReplicaMode; return this; } /** * Indicates whether the In-Memory Column Index (IMCI) feature is enabled. Valid values: *

* * * **ON** * * **OFF** */ public Builder imciSwitch(String imciSwitch) { this.imciSwitch = imciSwitch; return this; } /** * The region ID of the cluster. */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * Indicates whether the serverless feature is enabled for the node. *

* * * **ON** indicates that the serverless feature is enabled. * * No value is returned if the serverless feature is disabled. */ public Builder serverless(String serverless) { this.serverless = serverless; return this; } /** * The zone ID of the cluster. */ public Builder zoneId(String zoneId) { this.zoneId = zoneId; return this; } public DBNode build() { return new DBNode(this); } } } public static class DBNodes extends TeaModel { @com.aliyun.core.annotation.NameInMap("DBNode") private java.util.List < DBNode> DBNode; private DBNodes(Builder builder) { this.DBNode = builder.DBNode; } public static Builder builder() { return new Builder(); } public static DBNodes create() { return builder().build(); } /** * @return DBNode */ public java.util.List < DBNode> getDBNode() { return this.DBNode; } public static final class Builder { private java.util.List < DBNode> DBNode; /** * DBNode. */ public Builder DBNode(java.util.List < DBNode> DBNode) { this.DBNode = DBNode; return this; } public DBNodes build() { return new DBNodes(this); } } } 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; /** * The key of the tag. */ public Builder key(String key) { this.key = key; return this; } /** * The value of the tag. */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } 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; /** * Tag. */ public Builder tag(java.util.List < Tag> tag) { this.tag = tag; return this; } public Tags build() { return new Tags(this); } } } public static class DBCluster extends TeaModel { @com.aliyun.core.annotation.NameInMap("AiType") private String aiType; @com.aliyun.core.annotation.NameInMap("Category") private String category; @com.aliyun.core.annotation.NameInMap("CpuCores") private String cpuCores; @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("DBClusterDescription") private String DBClusterDescription; @com.aliyun.core.annotation.NameInMap("DBClusterId") private String DBClusterId; @com.aliyun.core.annotation.NameInMap("DBClusterNetworkType") private String DBClusterNetworkType; @com.aliyun.core.annotation.NameInMap("DBClusterStatus") private String DBClusterStatus; @com.aliyun.core.annotation.NameInMap("DBNodeClass") private String DBNodeClass; @com.aliyun.core.annotation.NameInMap("DBNodeNumber") private Integer DBNodeNumber; @com.aliyun.core.annotation.NameInMap("DBNodes") private DBNodes DBNodes; @com.aliyun.core.annotation.NameInMap("DBType") private String DBType; @com.aliyun.core.annotation.NameInMap("DBVersion") private String DBVersion; @com.aliyun.core.annotation.NameInMap("DeletionLock") private Integer deletionLock; @com.aliyun.core.annotation.NameInMap("Engine") private String engine; @com.aliyun.core.annotation.NameInMap("ExpireTime") private String expireTime; @com.aliyun.core.annotation.NameInMap("Expired") private String expired; @com.aliyun.core.annotation.NameInMap("HotStandbyCluster") private String hotStandbyCluster; @com.aliyun.core.annotation.NameInMap("LockMode") private String lockMode; @com.aliyun.core.annotation.NameInMap("MemorySize") private String memorySize; @com.aliyun.core.annotation.NameInMap("PayType") private String payType; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("RemoteMemorySize") private String remoteMemorySize; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("ServerlessType") private String serverlessType; @com.aliyun.core.annotation.NameInMap("StoragePayType") private String storagePayType; @com.aliyun.core.annotation.NameInMap("StorageSpace") private Long storageSpace; @com.aliyun.core.annotation.NameInMap("StorageType") private String storageType; @com.aliyun.core.annotation.NameInMap("StorageUsed") private Long storageUsed; @com.aliyun.core.annotation.NameInMap("StrictConsistency") private String strictConsistency; @com.aliyun.core.annotation.NameInMap("SubCategory") private String subCategory; @com.aliyun.core.annotation.NameInMap("Tags") private Tags tags; @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; @com.aliyun.core.annotation.NameInMap("VswitchId") private String vswitchId; @com.aliyun.core.annotation.NameInMap("ZoneId") private String zoneId; private DBCluster(Builder builder) { this.aiType = builder.aiType; this.category = builder.category; this.cpuCores = builder.cpuCores; this.createTime = builder.createTime; this.DBClusterDescription = builder.DBClusterDescription; this.DBClusterId = builder.DBClusterId; this.DBClusterNetworkType = builder.DBClusterNetworkType; this.DBClusterStatus = builder.DBClusterStatus; this.DBNodeClass = builder.DBNodeClass; this.DBNodeNumber = builder.DBNodeNumber; this.DBNodes = builder.DBNodes; this.DBType = builder.DBType; this.DBVersion = builder.DBVersion; this.deletionLock = builder.deletionLock; this.engine = builder.engine; this.expireTime = builder.expireTime; this.expired = builder.expired; this.hotStandbyCluster = builder.hotStandbyCluster; this.lockMode = builder.lockMode; this.memorySize = builder.memorySize; this.payType = builder.payType; this.regionId = builder.regionId; this.remoteMemorySize = builder.remoteMemorySize; this.resourceGroupId = builder.resourceGroupId; this.serverlessType = builder.serverlessType; this.storagePayType = builder.storagePayType; this.storageSpace = builder.storageSpace; this.storageType = builder.storageType; this.storageUsed = builder.storageUsed; this.strictConsistency = builder.strictConsistency; this.subCategory = builder.subCategory; this.tags = builder.tags; this.vpcId = builder.vpcId; this.vswitchId = builder.vswitchId; this.zoneId = builder.zoneId; } public static Builder builder() { return new Builder(); } public static DBCluster create() { return builder().build(); } /** * @return aiType */ public String getAiType() { return this.aiType; } /** * @return category */ public String getCategory() { return this.category; } /** * @return cpuCores */ public String getCpuCores() { return this.cpuCores; } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return DBClusterDescription */ public String getDBClusterDescription() { return this.DBClusterDescription; } /** * @return DBClusterId */ public String getDBClusterId() { return this.DBClusterId; } /** * @return DBClusterNetworkType */ public String getDBClusterNetworkType() { return this.DBClusterNetworkType; } /** * @return DBClusterStatus */ public String getDBClusterStatus() { return this.DBClusterStatus; } /** * @return DBNodeClass */ public String getDBNodeClass() { return this.DBNodeClass; } /** * @return DBNodeNumber */ public Integer getDBNodeNumber() { return this.DBNodeNumber; } /** * @return DBNodes */ public DBNodes getDBNodes() { return this.DBNodes; } /** * @return DBType */ public String getDBType() { return this.DBType; } /** * @return DBVersion */ public String getDBVersion() { return this.DBVersion; } /** * @return deletionLock */ public Integer getDeletionLock() { return this.deletionLock; } /** * @return engine */ public String getEngine() { return this.engine; } /** * @return expireTime */ public String getExpireTime() { return this.expireTime; } /** * @return expired */ public String getExpired() { return this.expired; } /** * @return hotStandbyCluster */ public String getHotStandbyCluster() { return this.hotStandbyCluster; } /** * @return lockMode */ public String getLockMode() { return this.lockMode; } /** * @return memorySize */ public String getMemorySize() { return this.memorySize; } /** * @return payType */ public String getPayType() { return this.payType; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return remoteMemorySize */ public String getRemoteMemorySize() { return this.remoteMemorySize; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return serverlessType */ public String getServerlessType() { return this.serverlessType; } /** * @return storagePayType */ public String getStoragePayType() { return this.storagePayType; } /** * @return storageSpace */ public Long getStorageSpace() { return this.storageSpace; } /** * @return storageType */ public String getStorageType() { return this.storageType; } /** * @return storageUsed */ public Long getStorageUsed() { return this.storageUsed; } /** * @return strictConsistency */ public String getStrictConsistency() { return this.strictConsistency; } /** * @return subCategory */ public String getSubCategory() { return this.subCategory; } /** * @return tags */ public Tags getTags() { return this.tags; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } /** * @return vswitchId */ public String getVswitchId() { return this.vswitchId; } /** * @return zoneId */ public String getZoneId() { return this.zoneId; } public static final class Builder { private String aiType; private String category; private String cpuCores; private String createTime; private String DBClusterDescription; private String DBClusterId; private String DBClusterNetworkType; private String DBClusterStatus; private String DBNodeClass; private Integer DBNodeNumber; private DBNodes DBNodes; private String DBType; private String DBVersion; private Integer deletionLock; private String engine; private String expireTime; private String expired; private String hotStandbyCluster; private String lockMode; private String memorySize; private String payType; private String regionId; private String remoteMemorySize; private String resourceGroupId; private String serverlessType; private String storagePayType; private Long storageSpace; private String storageType; private Long storageUsed; private String strictConsistency; private String subCategory; private Tags tags; private String vpcId; private String vswitchId; private String zoneId; /** * The type of the AI node. Valid values: *

* * * SearchNode: search node * * DLNode: AI node * * Enumeration values: * * * SearchNode | DLNode: both * * DLNode: AI node * * SearchNode: search node */ public Builder aiType(String aiType) { this.aiType = aiType; return this; } /** * The edition of the cluster. Valid values: *

* * * **Normal**: Cluster Edition * * **Basic**: Single Node Edition * * **Archive**: X-Engine Edition * * **NormalMultimaster**: Multi-master Cluster (Database/Table) Edition */ public Builder category(String category) { this.category = category; return this; } /** * The number of CPU cores. */ public Builder cpuCores(String cpuCores) { this.cpuCores = cpuCores; return this; } /** * The time when the cluster was created. */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * The description of the cluster. */ public Builder DBClusterDescription(String DBClusterDescription) { this.DBClusterDescription = DBClusterDescription; return this; } /** * The cluster ID. */ public Builder DBClusterId(String DBClusterId) { this.DBClusterId = DBClusterId; return this; } /** * The network type of the cluster. */ public Builder DBClusterNetworkType(String DBClusterNetworkType) { this.DBClusterNetworkType = DBClusterNetworkType; return this; } /** * The state of the cluster. */ public Builder DBClusterStatus(String DBClusterStatus) { this.DBClusterStatus = DBClusterStatus; return this; } /** * The specifications of the node. */ public Builder DBNodeClass(String DBNodeClass) { this.DBNodeClass = DBNodeClass; return this; } /** * The number of nodes. */ public Builder DBNodeNumber(Integer DBNodeNumber) { this.DBNodeNumber = DBNodeNumber; return this; } /** * The information about the nodes. */ public Builder DBNodes(DBNodes DBNodes) { this.DBNodes = DBNodes; return this; } /** * The type of the database engine. */ public Builder DBType(String DBType) { this.DBType = DBType; return this; } /** * The version of the database engine. */ public Builder DBVersion(String DBVersion) { this.DBVersion = DBVersion; return this; } /** * Indicates whether the cluster is protected from deletion. Valid values: *

* * * **0**: The cluster is not protected from deletion. * * **1**: The cluster is protected from deletion. * * > You cannot delete clusters that are protected from deletion. */ public Builder deletionLock(Integer deletionLock) { this.deletionLock = deletionLock; return this; } /** * The database engine of the cluster. */ public Builder engine(String engine) { this.engine = engine; return this; } /** * The expiration time of the cluster. *

* * > A specific value is returned only for subscription (**Prepaid**) clusters. For pay-as-you-go (**Postpaid**) clusters, no value is returned. */ public Builder expireTime(String expireTime) { this.expireTime = expireTime; return this; } /** * Indicates whether the cluster has expired. Valid values: *

* * * **true** * * **false** * * > A specific value is returned only for subscription (**Prepaid**) clusters. */ public Builder expired(String expired) { this.expired = expired; return this; } /** * HotStandbyCluster. */ public Builder hotStandbyCluster(String hotStandbyCluster) { this.hotStandbyCluster = hotStandbyCluster; return this; } /** * The lock state of the cluster. Valid values: *

* * * **Unlock**: The cluster is unlocked. * * **ManualLock**: The cluster is manually locked. * * **LockByExpiration**: The cluster is locked due to cluster expiration. */ public Builder lockMode(String lockMode) { this.lockMode = lockMode; return this; } /** * The memory size for local operations. Unit: MB. */ public Builder memorySize(String memorySize) { this.memorySize = memorySize; return this; } /** * The billing method of the cluster. Valid values: *

* * * **Postpaid**: pay-as-you-go * * **Prepaid**: subscription */ public Builder payType(String payType) { this.payType = payType; return this; } /** * The region ID of the cluster. */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * The memory size for distributed operations. Unit: MB. */ public Builder remoteMemorySize(String remoteMemorySize) { this.remoteMemorySize = remoteMemorySize; return this; } /** * The ID of the resource group. */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * Indicates whether the cluster is a serverless cluster. **AgileServerless** indicates the cluster is a serverless cluster. No value is returned for a common cluster. */ public Builder serverlessType(String serverlessType) { this.serverlessType = serverlessType; return this; } /** * The storage billing method of the cluster. Valid values: *

* * * **Postpaid**: pay-as-you-go * * **Prepaid**: subscription */ public Builder storagePayType(String storagePayType) { this.storagePayType = storagePayType; return this; } /** * The storage that is billed based on the subscription billing method. Unit: bytes. */ public Builder storageSpace(Long storageSpace) { this.storageSpace = storageSpace; return this; } /** * The storage type. */ public Builder storageType(String storageType) { this.storageType = storageType; return this; } /** * The used storage. Unit: bytes. */ public Builder storageUsed(Long storageUsed) { this.storageUsed = storageUsed; return this; } /** * Indicates whether multi-zone data consistency is enabled for the cluster. Valid values: *

* * * **ON**: Multi-zone data consistency is enabled. For Standard Edition clusters of Multi-zone Edition, this value is returned. * * **OFF**: Multi-zone data consistency is disabled. */ public Builder strictConsistency(String strictConsistency) { this.strictConsistency = strictConsistency; return this; } /** * The specification type of the compute node. Valid values: *

* * * **Exclusive**: dedicated. * * **General**: general-purpose. */ public Builder subCategory(String subCategory) { this.subCategory = subCategory; return this; } /** * The information about the tags. */ public Builder tags(Tags tags) { this.tags = tags; return this; } /** * The virtual private cloud (VPC) ID of the cluster. */ public Builder vpcId(String vpcId) { this.vpcId = vpcId; return this; } /** * The vSwitch ID of the cluster. */ public Builder vswitchId(String vswitchId) { this.vswitchId = vswitchId; return this; } /** * The zone ID of the cluster. */ public Builder zoneId(String zoneId) { this.zoneId = zoneId; return this; } public DBCluster build() { return new DBCluster(this); } } } public static class Items extends TeaModel { @com.aliyun.core.annotation.NameInMap("DBCluster") private java.util.List < DBCluster> DBCluster; private Items(Builder builder) { this.DBCluster = builder.DBCluster; } public static Builder builder() { return new Builder(); } public static Items create() { return builder().build(); } /** * @return DBCluster */ public java.util.List < DBCluster> getDBCluster() { return this.DBCluster; } public static final class Builder { private java.util.List < DBCluster> DBCluster; /** * DBCluster. */ public Builder DBCluster(java.util.List < DBCluster> DBCluster) { this.DBCluster = DBCluster; return this; } public Items build() { return new Items(this); } } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy