public class CreateDBInstanceRequest extends AbstractModel
Constructor and Description |
---|
CreateDBInstanceRequest() |
CreateDBInstanceRequest(CreateDBInstanceRequest 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 Auto-renewal flag.
|
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 Name of the instance, which can be customized.
|
Long |
getIpv6Flag()
Get Whether IPv6 is supported.
|
Long |
getMemory()
Get Memory size in GB, which can be obtained
by querying the instance specification through the `DescribeDBInstanceSpecs` API.
|
Long |
getNodeCount()
Get Number of nodes, which can be obtained
by querying the instance specification through the `DescribeDBInstanceSpecs` API.
|
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[] |
getSecurityGroupIds()
Get List of security group IDs
|
Long |
getStorage()
Get Storage capacity in GB.
|
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 instance nodes.
|
void |
setAutoRenewFlag(Long AutoRenewFlag)
Set Auto-renewal flag.
|
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 Name of the instance, which can be customized.
|
void |
setIpv6Flag(Long Ipv6Flag)
Set Whether IPv6 is supported.
|
void |
setMemory(Long Memory)
Set Memory size in GB, which can be obtained
by querying the instance specification through the `DescribeDBInstanceSpecs` API.
|
void |
setNodeCount(Long NodeCount)
Set Number of nodes, which can be obtained
by querying the instance specification through the `DescribeDBInstanceSpecs` API.
|
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 |
setSecurityGroupIds(String[] SecurityGroupIds)
Set List of security group IDs
|
void |
setStorage(Long Storage)
Set Storage capacity in GB.
|
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 instance nodes.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CreateDBInstanceRequest()
public CreateDBInstanceRequest(CreateDBInstanceRequest source)
public String[] getZones()
public void setZones(String[] Zones)
Zones
- AZs to deploy instance nodes. You can specify up to two AZs (one as primary AZ and another as replica AZ). When the shard specification is 1-primary-2-replica, the primary and one of the replicas are deployed in the primary AZ.public Long getNodeCount()
public void setNodeCount(Long NodeCount)
NodeCount
- Number of nodes, which can be obtained
by querying the instance specification through the `DescribeDBInstanceSpecs` API.public Long getMemory()
public void setMemory(Long Memory)
Memory
- Memory size in GB, which can be obtained
by querying the instance specification through the `DescribeDBInstanceSpecs` API.public Long getStorage()
public void setStorage(Long Storage)
Storage
- Storage capacity in GB. The maximum and minimum storage space can be obtained
by querying instance specification through the `DescribeDBInstanceSpecs` API.public Long getPeriod()
public void setPeriod(Long Period)
Period
- Validity period in monthspublic Long getCount()
public void setCount(Long Count)
Count
- The number of instances to be purchased. Only one instance is queried for price by default.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 getVpcId()
public void setVpcId(String VpcId)
VpcId
- VPC ID. If this parameter is 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 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 getDbVersionId()
public void setDbVersionId(String DbVersionId)
DbVersionId
- Database engine version. Valid values: `5.7`, `8.0`, `10.0`, `10.1`.public String getInstanceName()
public void setInstanceName(String InstanceName)
InstanceName
- Name of the instance, which can be customized.public String[] getSecurityGroupIds()
public void setSecurityGroupIds(String[] SecurityGroupIds)
SecurityGroupIds
- List of security group IDspublic Long getAutoRenewFlag()
public void setAutoRenewFlag(Long AutoRenewFlag)
AutoRenewFlag
- Auto-renewal flag. Valid values: `1` (auto-renewal), `2` (no renewal upon expiration).public Long getIpv6Flag()
public void setIpv6Flag(Long Ipv6Flag)
Ipv6Flag
- Whether IPv6 is 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 IDCopyright © 2023. All rights reserved.