public class CreateDCDBInstanceRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
CreateDCDBInstanceRequest()  | 
CreateDCDBInstanceRequest(CreateDCDBInstanceRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Long | 
getAutoRenewFlag()
Get Renewal mode. 
 | 
Boolean | 
getAutoVoucher()
Get Whether to automatically use vouchers. 
 | 
Long | 
getCount()
Get The number of instances to be purchased 
 | 
String | 
getDbVersionId()
Get Database engine version. 
 | 
String | 
getDcnInstanceId()
Get DCN source instance ID 
 | 
String | 
getDcnRegion()
Get DCN source region 
 | 
DBParamValue[] | 
getInitParams()
Get List of parameters. 
 | 
String | 
getInstanceName()
Get Custom name of the instance 
 | 
Long | 
getIpv6Flag()
Get Whether IPv6 is supported. 
 | 
Long | 
getPeriod()
Get Validity period in months 
 | 
Long | 
getProjectId()
Get Project ID, which can be obtained through the `DescribeProjects` API. 
 | 
ResourceTag[] | 
getResourceTags()
Get Array of tag key-value pairs 
 | 
String | 
getSecurityGroupId()
Get Security group ID 
 | 
String[] | 
getSecurityGroupIds()
Get Security group IDs in array. 
 | 
Long | 
getShardCount()
Get The number of shards in the instance. 
 | 
Long | 
getShardMemory()
Get Shard memory size in GB, which can be obtained 
 by querying the instance specification through `DescribeShardSpec` API. 
 | 
Long | 
getShardNodeCount()
Get Number of nodes in a single shard, which can be obtained
 by querying the instance specification through `DescribeShardSpec` API. 
 | 
Long | 
getShardStorage()
Get Shard storage size in GB, which can be obtained
 by querying the instance specification through `DescribeShardSpec` API. 
 | 
String | 
getSubnetId()
Get VPC subnet ID, which is required when `VpcId` is specified. 
 | 
String[] | 
getVoucherIds()
Get Voucher ID list. 
 | 
String | 
getVpcId()
Get VPC ID. 
 | 
String[] | 
getZones()
Get AZs to deploy shard nodes. 
 | 
void | 
setAutoRenewFlag(Long AutoRenewFlag)
Set Renewal mode. 
 | 
void | 
setAutoVoucher(Boolean AutoVoucher)
Set Whether to automatically use vouchers. 
 | 
void | 
setCount(Long Count)
Set The number of instances to be purchased 
 | 
void | 
setDbVersionId(String DbVersionId)
Set Database engine version. 
 | 
void | 
setDcnInstanceId(String DcnInstanceId)
Set DCN source instance ID 
 | 
void | 
setDcnRegion(String DcnRegion)
Set DCN source region 
 | 
void | 
setInitParams(DBParamValue[] InitParams)
Set List of parameters. 
 | 
void | 
setInstanceName(String InstanceName)
Set Custom name of the instance 
 | 
void | 
setIpv6Flag(Long Ipv6Flag)
Set Whether IPv6 is supported. 
 | 
void | 
setPeriod(Long Period)
Set Validity period in months 
 | 
void | 
setProjectId(Long ProjectId)
Set Project ID, which can be obtained through the `DescribeProjects` API. 
 | 
void | 
setResourceTags(ResourceTag[] ResourceTags)
Set Array of tag key-value pairs 
 | 
void | 
setSecurityGroupId(String SecurityGroupId)
Set Security group ID 
 | 
void | 
setSecurityGroupIds(String[] SecurityGroupIds)
Set Security group IDs in array. 
 | 
void | 
setShardCount(Long ShardCount)
Set The number of shards in the instance. 
 | 
void | 
setShardMemory(Long ShardMemory)
Set Shard memory size in GB, which can be obtained 
 by querying the instance specification through `DescribeShardSpec` API. 
 | 
void | 
setShardNodeCount(Long ShardNodeCount)
Set Number of nodes in a single shard, which can be obtained
 by querying the instance specification through `DescribeShardSpec` API. 
 | 
void | 
setShardStorage(Long ShardStorage)
Set Shard storage size in GB, which can be obtained
 by querying the instance specification through `DescribeShardSpec` API. 
 | 
void | 
setSubnetId(String SubnetId)
Set VPC subnet ID, which is required when `VpcId` is specified. 
 | 
void | 
setVoucherIds(String[] VoucherIds)
Set Voucher ID list. 
 | 
void | 
setVpcId(String VpcId)
Set VPC ID. 
 | 
void | 
setZones(String[] Zones)
Set AZs to deploy shard nodes. 
 | 
void | 
toMap(HashMap<String,String> map,
     String prefix)
Internal implementation, normal users should not use it. 
 | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic CreateDCDBInstanceRequest()
public CreateDCDBInstanceRequest(CreateDCDBInstanceRequest source)
public String[] getZones()
public void setZones(String[] Zones)
Zones - AZs to deploy shard nodes. You can specify up to two AZs. When the shard specification is 1-source-2-replica, two of the nodes are deployed in the first AZ.
The current purchasable AZ needs be pulled through `DescribeDCDBSaleInfo` API.public Long getPeriod()
public void setPeriod(Long Period)
Period - Validity period in monthspublic Long getShardMemory()
public void setShardMemory(Long ShardMemory)
ShardMemory - Shard memory size in GB, which can be obtained 
 by querying the instance specification through `DescribeShardSpec` API.public Long getShardStorage()
public void setShardStorage(Long ShardStorage)
ShardStorage - Shard storage size in GB, which can be obtained
 by querying the instance specification through `DescribeShardSpec` API.public Long getShardNodeCount()
public void setShardNodeCount(Long ShardNodeCount)
ShardNodeCount - Number of nodes in a single shard, which can be obtained
 by querying the instance specification through `DescribeShardSpec` API.public Long getShardCount()
public void setShardCount(Long ShardCount)
ShardCount - The number of shards in the instance. Value range: 2-8. You can increase up to 64 shards by upgrading your instance.public Long getCount()
public void setCount(Long Count)
Count - The number of instances to be purchasedpublic Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId - Project ID, which can be obtained through the `DescribeProjects` API. If this parameter is not passed in, the instance will be associated with the default project.public String getVpcId()
public void setVpcId(String VpcId)
VpcId - VPC ID. If this parameter is left empty or not passed in, the instance will be created on the classic network.public String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId - VPC subnet ID, which is required when `VpcId` is specified.public String getDbVersionId()
public void setDbVersionId(String DbVersionId)
DbVersionId - Database engine version. Valid values: `5.7`, `8.0`, `10.0`, `10.1`.public Boolean getAutoVoucher()
public void setAutoVoucher(Boolean AutoVoucher)
AutoVoucher - Whether to automatically use vouchers. This option is disabled by default.public String[] getVoucherIds()
public void setVoucherIds(String[] VoucherIds)
VoucherIds - Voucher ID list. Currently, you can specify only one voucher.public String getSecurityGroupId()
public void setSecurityGroupId(String SecurityGroupId)
SecurityGroupId - Security group IDpublic String getInstanceName()
public void setInstanceName(String InstanceName)
InstanceName - Custom name of the instancepublic Long getIpv6Flag()
public void setIpv6Flag(Long Ipv6Flag)
Ipv6Flag - Whether IPv6 is supported. Valid values: `0` (unsupported), `1` (supported).public ResourceTag[] getResourceTags()
public void setResourceTags(ResourceTag[] ResourceTags)
ResourceTags - Array of tag key-value pairspublic DBParamValue[] getInitParams()
public void setInitParams(DBParamValue[] InitParams)
InitParams - List of parameters. Valid values: `character_set_server` (character set; required); `lower_case_table_names` (table name case sensitivity; required; `0`: case-sensitive; `1`: case-insensitive); `innodb_page_size` (InnoDB data page size; default size: 16 KB); `sync_mode` (sync mode; `0`: async; `1`: strong sync; `2`: downgradable strong sync; default value: `2`).public String getDcnRegion()
public void setDcnRegion(String DcnRegion)
DcnRegion - DCN source regionpublic String getDcnInstanceId()
public void setDcnInstanceId(String DcnInstanceId)
DcnInstanceId - DCN source instance IDpublic Long getAutoRenewFlag()
public void setAutoRenewFlag(Long AutoRenewFlag)
AutoRenewFlag - Renewal mode. Valid values: `0` (manual renewal, which is the default mode), `1` (auto-renewal), `2` (manual renewal, which is specified by users).  If no renewal is required, set it to `0`.public String[] getSecurityGroupIds()
public void setSecurityGroupIds(String[] SecurityGroupIds)
SecurityGroupIds - Security group IDs in array. This parameter is compatible with the old parameter `SecurityGroupId`.Copyright © 2025. All rights reserved.