com.aliyun.rds20140815.models.DescribeAvailableClassesRequest Maven / Gradle / Ivy
Show all versions of rds20140815 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.rds20140815.models;
import com.aliyun.tea.*;
public class DescribeAvailableClassesRequest extends TeaModel {
/**
* The RDS edition of the instance. Valid values:
*
* Regular instance
*
* - Basic: RDS Basic Edition
* - HighAvailability: RDS High-availability Edition
* - cluster: RDS Cluster Edition for ApsaraDB RDS for MySQL
* - AlwaysOn: RDS Cluster Edition for ApsaraDB RDS for SQL Server
* - Finance: RDS Enterprise Edition
*
*
* Serverless instance
*
* - serverless_basic: RDS Basic Edition. This edition is available only for serverless instances that run MySQL and PostgreSQL.
* - serverless_standard: RDS High-availability Edition for ApsaraDB RDS for MySQL.
* - serverless_ha: RDS High-availability Edition for ApsaraDB RDS for SQL Server.
*
*
* If you create a serverless instance, you must specify this parameter.
*
*
*
* This parameter is required.
*
* example:
* HighAvailability
*/
@NameInMap("Category")
public String category;
/**
* The commodity code of the instance. Valid values:
*
* - bards: The instance is a pay-as-you-go primary instance. This value is available at the China site (aliyun.com).
* - rds: The instance is a subscription primary instance. This value is available at the China site (aliyun.com).
* - rords: The instance is a pay-as-you-go read-only instance. This value is available at the China site (aliyun.com).
* - rds_rordspre_public_cn: The instance is a subscription read-only instance. This value is available at the China site (aliyun.com).
* - bards_intl: The instance is a pay-as-you-go primary instance. This value is available at the International site (alibabacloud.com).
* - rds_intl: The instance is a subscription primary instance. This value is available at the International site (alibabacloud.com).
* - rords_intl: The instance is a pay-as-you-go read-only instance. This value is available at the International site (alibabacloud.com).
* - rds_rordspre_public_intl: The instance is a subscription read-only instance. This value is available at the International site (alibabacloud.com).
* - rds_serverless_public_cn: The instance is a serverless instance. This value is available at the China site (aliyun.com).
* - rds_serverless_public_intl: The instance is a serverless instance. This value is available at the International site (alibabacloud.com).
*
*
* If you want to query the price of a read-only instance, you must specify this parameter.
*
*
* example:
* bards
*/
@NameInMap("CommodityCode")
public String commodityCode;
/**
* The instance ID. You can call the DescribeDBInstances operation to query the instance ID.
*
* example:
* rm-uf6wjk5xxxxxx
*/
@NameInMap("DBInstanceId")
public String DBInstanceId;
/**
* The storage type of the instance. Valid values:
*
* - local_ssd: local SSD. This is the recommended storage type.
* - cloud_ssd: standard SSD.
* - cloud_essd: enhanced SSDs (ESSDs) of performance level 1 (PL1)
* - cloud_essd2: ESSDs of PL2
* - cloud_essd3: ESSD of PL3
*
*
* Serverless instances support only ESSDs of PL 1. For a serverless instance, you must set this parameter to cloud_essd.
*
* This parameter is required.
*
* example:
* local_ssd
*/
@NameInMap("DBInstanceStorageType")
public String DBInstanceStorageType;
/**
* The database engine that is run by the instance. Valid values:
*
* - MySQL
* - SQLServer
* - PostgreSQL
* - MariaDB
*
* This parameter is required.
*
* example:
* MySQL
*/
@NameInMap("Engine")
public String engine;
/**
* The database engine version of the instance. Valid values:
*
* Regular instance
*
* - Valid values if you set Engine to MySQL: 5.5, 5.6, 5.7, and 8.0
* - Valid values if you set Engine to SQLServer: 2008r2, 08r2_ent_ha, 2012, 2012_ent_ha, 2012_std_ha, 2012_web, 2014_std_ha, 2016_ent_ha, 2016_std_ha, 2016_web, 2017_std_ha, 2017_ent, 2019_std_ha, and 2019_ent
* - Valid values if you set Engine to PostgreSQL: 10.0, 11.0, 12.0, 13.0, 14.0, and 15.0
* - Valid value when you set Engine to MariaDB: 10.3
*
*
* Serverless instance
*
* - Valid values if you set Engine to MySQL: 5.7 and 8.0
* - Valid values if you set Engine to SQLServer: 2016_std_sl, 2017_std_sl, and 2019_std_sl
* - Valid value if you set Engine to PostgreSQL: 14.0
*
*
* ApsaraDB RDS for MariaDB does not support serverless instances.
*
*
*
* This parameter is required.
*
* example:
* 8.0
*/
@NameInMap("EngineVersion")
public String engineVersion;
/**
* The billing method of the instance. Valid values:
*
* - Prepaid: subscription
* - Postpaid: pay-as-you-go
* - Serverless: serverless
*
*
* ApsaraDB RDS for MariaDB does not support serverless instances.
*
*
* example:
* Prepaid
*/
@NameInMap("InstanceChargeType")
public String instanceChargeType;
/**
* The type of the order. Set the value to BUY
*
* example:
* BUY
*/
@NameInMap("OrderType")
public String orderType;
/**
* The region ID of the instance. You can call the DescribeDBInstanceAttribute operation to query the region ID of the instance.
* This parameter is required.
*
* example:
* cn-hangzhou
*/
@NameInMap("RegionId")
public String regionId;
@NameInMap("ResourceOwnerId")
public Long resourceOwnerId;
/**
* The zone ID of the instance. You can call the DescribeDBInstanceAttribute operation to query the zone ID of the instance.
*
* If the DescribeDBInstanceAttribute operation returns multiple zones, you must specify only one of the returned zones. For example, if the DescribeDBInstanceAttribute operation returns cn-hangzhou-MAZ9(g,h)
, you can set this parameter to cn-hangzhou-g
or cn-hangzhou-h
.
*
* This parameter is required.
*
* example:
* cn-hangzhou-h
*/
@NameInMap("ZoneId")
public String zoneId;
public static DescribeAvailableClassesRequest build(java.util.Map map) throws Exception {
DescribeAvailableClassesRequest self = new DescribeAvailableClassesRequest();
return TeaModel.build(map, self);
}
public DescribeAvailableClassesRequest setCategory(String category) {
this.category = category;
return this;
}
public String getCategory() {
return this.category;
}
public DescribeAvailableClassesRequest setCommodityCode(String commodityCode) {
this.commodityCode = commodityCode;
return this;
}
public String getCommodityCode() {
return this.commodityCode;
}
public DescribeAvailableClassesRequest setDBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
public String getDBInstanceId() {
return this.DBInstanceId;
}
public DescribeAvailableClassesRequest setDBInstanceStorageType(String DBInstanceStorageType) {
this.DBInstanceStorageType = DBInstanceStorageType;
return this;
}
public String getDBInstanceStorageType() {
return this.DBInstanceStorageType;
}
public DescribeAvailableClassesRequest setEngine(String engine) {
this.engine = engine;
return this;
}
public String getEngine() {
return this.engine;
}
public DescribeAvailableClassesRequest setEngineVersion(String engineVersion) {
this.engineVersion = engineVersion;
return this;
}
public String getEngineVersion() {
return this.engineVersion;
}
public DescribeAvailableClassesRequest setInstanceChargeType(String instanceChargeType) {
this.instanceChargeType = instanceChargeType;
return this;
}
public String getInstanceChargeType() {
return this.instanceChargeType;
}
public DescribeAvailableClassesRequest setOrderType(String orderType) {
this.orderType = orderType;
return this;
}
public String getOrderType() {
return this.orderType;
}
public DescribeAvailableClassesRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public DescribeAvailableClassesRequest setResourceOwnerId(Long resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
return this;
}
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public DescribeAvailableClassesRequest setZoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
public String getZoneId() {
return this.zoneId;
}
}