public class CreateHourDBInstanceRequest extends AbstractModel
Constructor and Description |
---|
CreateHourDBInstanceRequest() |
CreateHourDBInstanceRequest(CreateHourDBInstanceRequest 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 Number of instances to purchase.
|
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 primary instance so that the disaster recovery instance can sync data with the primary 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 primary instance so that the disaster recovery instance can sync data with the primary 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 |
getMemory()
Get Memory size in GB.
|
Long |
getNodeCount()
Get Number of nodes.
|
Long |
getProjectId()
Get Project ID.
|
ResourceTag[] |
getResourceTags()
Get Array of tag key-value pairs.
|
String |
getRollbackInstanceId()
Get ID of the instance whose backup data will be rolled back to the new instance you create.
|
String |
getRollbackTime()
Get Rollback time.
|
String[] |
getSecurityGroupIds()
Get Security group ID.
|
Long |
getStorage()
Get Storage size in GB.
|
String |
getSubnetId()
Get Unique ID of the subnet.
|
String |
getVpcId()
Get Unique ID of the network.
|
String[] |
getZones()
Get AZs to deploy instance nodes.
|
void |
setCount(Long Count)
Set Number of instances to purchase.
|
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 primary instance so that the disaster recovery instance can sync data with the primary 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 primary instance so that the disaster recovery instance can sync data with the primary 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 |
setMemory(Long Memory)
Set Memory size in GB.
|
void |
setNodeCount(Long NodeCount)
Set Number of nodes.
|
void |
setProjectId(Long ProjectId)
Set Project ID.
|
void |
setResourceTags(ResourceTag[] ResourceTags)
Set Array of tag key-value pairs.
|
void |
setRollbackInstanceId(String RollbackInstanceId)
Set ID of the instance whose backup data will be rolled back to the new instance you create.
|
void |
setRollbackTime(String RollbackTime)
Set Rollback time.
|
void |
setSecurityGroupIds(String[] SecurityGroupIds)
Set Security group ID.
|
void |
setStorage(Long Storage)
Set Storage size in GB.
|
void |
setSubnetId(String SubnetId)
Set Unique ID of the subnet.
|
void |
setVpcId(String VpcId)
Set Unique ID of the network.
|
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 CreateHourDBInstanceRequest()
public CreateHourDBInstanceRequest(CreateHourDBInstanceRequest source)
public String[] getZones()
public void setZones(String[] Zones)
Zones
- AZs to deploy instance nodes. You can specify up to two AZs.public Long getNodeCount()
public void setNodeCount(Long NodeCount)
NodeCount
- Number of nodes.public Long getMemory()
public void setMemory(Long Memory)
Memory
- Memory size in GB.public Long getStorage()
public void setStorage(Long Storage)
Storage
- Storage size in GB.public Long getCount()
public void setCount(Long Count)
Count
- Number of instances to purchase.public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- Project ID. If this parameter is not passed in, the default project will be used.public String getVpcId()
public void setVpcId(String VpcId)
VpcId
- Unique ID of the network. If this parameter is not passed in, the classic network will be used.public String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId
- Unique ID of the subnet. If `VpcId` is specified, this parameter is required.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
- Custom name of the instance.public String[] getSecurityGroupIds()
public void setSecurityGroupIds(String[] SecurityGroupIds)
SecurityGroupIds
- Security group ID. If this parameter is not passed in, no security groups will be associated when the instance is created.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 pairs.public 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 primary instance so that the disaster recovery instance can sync data with the primary 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 primary instance so that the disaster recovery instance can sync data with the primary 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 whose backup data will be rolled back to the new instance you create.public String getRollbackTime()
public void setRollbackTime(String RollbackTime)
RollbackTime
- Rollback time.Copyright © 2023. All rights reserved.