public class CreateHourDCDBInstanceRequest extends AbstractModel
Constructor and Description |
---|
CreateHourDCDBInstanceRequest() |
CreateHourDCDBInstanceRequest(CreateHourDCDBInstanceRequest 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 |
getCount()
Get The number of instances to be purchased
|
String |
getDbVersionId()
Get Database engine version.
|
String |
getDcnInstanceId()
Get If you create a disaster recovery instance, you need to use this parameter to specify the ID of the associated source instance so that the disaster recovery instance can sync data with the source instance over the Data Communication Network (DCN).
|
String |
getDcnRegion()
Get If you create a disaster recovery instance, you need to use this parameter to specify the region of the associated source instance so that the disaster recovery instance can sync data with the source instance over the Data Communication Network (DCN).
|
DBParamValue[] |
getInitParams()
Get List of parameters.
|
String |
getInstanceName()
Get Custom name of the instance
|
Long |
getIpv6Flag()
Get Whether IPv6 is supported
|
Long |
getProjectId()
Get Project ID, which can be obtained through the `DescribeProjects` API.
|
ResourceTag[] |
getResourceTags()
Get Array of tag key-value pairs
|
String |
getRollbackInstanceId()
Get ID of the instance to be rolled back
|
String |
getRollbackTime()
Get Rollback time
|
String |
getSecurityGroupId()
Get Security group ID
|
String[] |
getSecurityGroupIds()
Get Array of security group IDs (this parameter is compatible with the old parameter `SecurityGroupId`)
|
Long |
getShardCount()
Get The number of shards in the instance.
|
Long |
getShardCpu()
Get The number of CPU cores per shard, which can be obtained through the `DescribeShardSpec` API.
|
Long |
getShardMemory()
Get Shard memory in GB, which can be obtained through the `DescribeShardSpec` API.
|
Long |
getShardNodeCount()
Get The number of nodes per shard, which can be obtained through the `DescribeShardSpec` API.
|
Long |
getShardStorage()
Get Shard capacity in GB, which can be obtained through the `DescribeShardSpec` API.
|
String |
getSubnetId()
Get VPC subnet ID, which is required when `VpcId` is specified
|
String |
getVpcId()
Get VPC ID.
|
String[] |
getZones()
Get AZs to deploy shard nodes.
|
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 If you create a disaster recovery instance, you need to use this parameter to specify the ID of the associated source instance so that the disaster recovery instance can sync data with the source instance over the Data Communication Network (DCN).
|
void |
setDcnRegion(String DcnRegion)
Set If you create a disaster recovery instance, you need to use this parameter to specify the region of the associated source instance so that the disaster recovery instance can sync data with the source instance over the Data Communication Network (DCN).
|
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 |
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 |
setRollbackInstanceId(String RollbackInstanceId)
Set ID of the instance to be rolled back
|
void |
setRollbackTime(String RollbackTime)
Set Rollback time
|
void |
setSecurityGroupId(String SecurityGroupId)
Set Security group ID
|
void |
setSecurityGroupIds(String[] SecurityGroupIds)
Set Array of security group IDs (this parameter is compatible with the old parameter `SecurityGroupId`)
|
void |
setShardCount(Long ShardCount)
Set The number of shards in the instance.
|
void |
setShardCpu(Long ShardCpu)
Set The number of CPU cores per shard, which can be obtained through the `DescribeShardSpec` API.
|
void |
setShardMemory(Long ShardMemory)
Set Shard memory in GB, which can be obtained through the `DescribeShardSpec` API.
|
void |
setShardNodeCount(Long ShardNodeCount)
Set The number of nodes per shard, which can be obtained through the `DescribeShardSpec` API.
|
void |
setShardStorage(Long ShardStorage)
Set Shard capacity in GB, which can be obtained through the `DescribeShardSpec` API.
|
void |
setSubnetId(String SubnetId)
Set VPC subnet ID, which is required when `VpcId` is specified
|
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, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CreateHourDCDBInstanceRequest()
public CreateHourDCDBInstanceRequest(CreateHourDCDBInstanceRequest source)
public Long getShardMemory()
public void setShardMemory(Long ShardMemory)
ShardMemory
- Shard memory in GB, which can be obtained through the `DescribeShardSpec` API.public Long getShardStorage()
public void setShardStorage(Long ShardStorage)
ShardStorage
- Shard capacity in GB, which can be obtained through the `DescribeShardSpec` API.public Long getShardNodeCount()
public void setShardNodeCount(Long ShardNodeCount)
ShardNodeCount
- The number of nodes per shard, which can be obtained through the `DescribeShardSpec` API.public Long getShardCount()
public void setShardCount(Long ShardCount)
ShardCount
- The number of shards in the instance. Value range: 2-8. Upgrade your instance to have up to 64 shards if you require more.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 specifiedpublic Long getShardCpu()
public void setShardCpu(Long ShardCpu)
ShardCpu
- The number of CPU cores per shard, which can be obtained through the `DescribeShardSpec` API.public String getDbVersionId()
public void setDbVersionId(String DbVersionId)
DbVersionId
- Database engine version. Valid values: `5.7`, `8.0`, `10.0`, `10.1`.public String[] getZones()
public void setZones(String[] Zones)
Zones
- AZs to deploy shard nodes. You can specify up to two AZs.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 supportedpublic ResourceTag[] getResourceTags()
public void setResourceTags(ResourceTag[] ResourceTags)
ResourceTags
- Array of tag key-value pairspublic String getDcnRegion()
public void setDcnRegion(String DcnRegion)
DcnRegion
- If you create a disaster recovery instance, you need to use this parameter to specify the region of the associated source instance so that the disaster recovery instance can sync data with the source instance over the Data Communication Network (DCN).public String getDcnInstanceId()
public void setDcnInstanceId(String DcnInstanceId)
DcnInstanceId
- If you create a disaster recovery instance, you need to use this parameter to specify the ID of the associated source instance so that the disaster recovery instance can sync data with the source instance over the Data Communication Network (DCN).public 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 getRollbackInstanceId()
public void setRollbackInstanceId(String RollbackInstanceId)
RollbackInstanceId
- ID of the instance to be rolled backpublic String getRollbackTime()
public void setRollbackTime(String RollbackTime)
RollbackTime
- Rollback timepublic String[] getSecurityGroupIds()
public void setSecurityGroupIds(String[] SecurityGroupIds)
SecurityGroupIds
- Array of security group IDs (this parameter is compatible with the old parameter `SecurityGroupId`)Copyright © 2023. All rights reserved.