public class CreateInstancesRequest extends AbstractModel
Constructor and Description |
---|
CreateInstancesRequest() |
Modifier and Type | Method and Description |
---|---|
Long |
getAutoRenew()
Get Auto-renewal flag.
|
Long |
getBillingMode()
Get Billing method.
|
Long |
getGoodsNum()
Get Number of instances.
|
String |
getInstanceName()
Get Instance name.
|
Long |
getMemSize()
Get Memory capacity in MB, which must be a multiple of 1,024.
|
Boolean |
getNoAuth()
Get Whether to support the password-free feature.
|
RedisNodeInfo[] |
getNodeSet()
Get
|
String |
getPassword()
Get Instance password.
|
Long |
getPeriod()
Get Purchased usage period in months.
|
Long |
getProjectId()
Get Project ID.
|
Long |
getRedisReplicasNum()
Get Number of replicas in an instance.
|
Long |
getRedisShardNum()
Get Number of shards in an instance.
|
Boolean |
getReplicasReadonly()
Get Whether to support read-only replicas.
|
String[] |
getSecurityGroupIdList()
Get Array of security group IDs
|
String |
getSubnetId()
Get In a classic network, `subnetId` is invalid.
|
Long |
getTypeId()
Get Instance type.
|
String |
getVpcId()
Get VPC ID, such as "vpc-sad23jfdfk".
|
Long |
getVPort()
Get User-defined port.
|
Long |
getZoneId()
Get Availability zone ID of the instance.
|
void |
setAutoRenew(Long AutoRenew)
Set Auto-renewal flag.
|
void |
setBillingMode(Long BillingMode)
Set Billing method.
|
void |
setGoodsNum(Long GoodsNum)
Set Number of instances.
|
void |
setInstanceName(String InstanceName)
Set Instance name.
|
void |
setMemSize(Long MemSize)
Set Memory capacity in MB, which must be a multiple of 1,024.
|
void |
setNoAuth(Boolean NoAuth)
Set Whether to support the password-free feature.
|
void |
setNodeSet(RedisNodeInfo[] NodeSet)
Set
|
void |
setPassword(String Password)
Set Instance password.
|
void |
setPeriod(Long Period)
Set Purchased usage period in months.
|
void |
setProjectId(Long ProjectId)
Set Project ID.
|
void |
setRedisReplicasNum(Long RedisReplicasNum)
Set Number of replicas in an instance.
|
void |
setRedisShardNum(Long RedisShardNum)
Set Number of shards in an instance.
|
void |
setReplicasReadonly(Boolean ReplicasReadonly)
Set Whether to support read-only replicas.
|
void |
setSecurityGroupIdList(String[] SecurityGroupIdList)
Set Array of security group IDs
|
void |
setSubnetId(String SubnetId)
Set In a classic network, `subnetId` is invalid.
|
void |
setTypeId(Long TypeId)
Set Instance type.
|
void |
setVpcId(String VpcId)
Set VPC ID, such as "vpc-sad23jfdfk".
|
void |
setVPort(Long VPort)
Set User-defined port.
|
void |
setZoneId(Long ZoneId)
Set Availability zone ID of the instance.
|
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 Long getZoneId()
public void setZoneId(Long ZoneId)
ZoneId
- Availability zone ID of the instance. For more information, please see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1).public Long getTypeId()
public void setTypeId(Long TypeId)
TypeId
- Instance type. Valid values: `2` (Redis 2.8 Memory Edition in standard architecture), `3` (CKV 3.2 Memory Edition in standard architecture), `4` (CKV 3.2 Memory Edition in cluster architecture), `6` (Redis 4.0 Memory Edition in standard architecture), `7` (Redis 4.0 Memory Edition in cluster architecture), `8` (Redis 5.0 Memory Edition in standard architecture), `9` (Redis 5.0 Memory Edition in cluster architecture).public Long getMemSize()
public void setMemSize(Long MemSize)
MemSize
- Memory capacity in MB, which must be a multiple of 1,024. It is subject to the purchasable specifications returned by the [DescribeProductInfo API](https://intl.cloud.tencent.com/document/api/239/30600?from_cn_redirect=1).
If `TypeId` indicates the standard architecture, `MemSize` indicates the total memory capacity of an instance; if `TypeId` indicates the cluster architecture, `MemSize` indicates the memory capacity per shard.public Long getGoodsNum()
public void setGoodsNum(Long GoodsNum)
GoodsNum
- Number of instances. The actual quantity purchasable at a time is subject to the specifications returned by the [DescribeProductInfo](https://intl.cloud.tencent.com/document/api/239/30600?from_cn_redirect=1) API.public Long getPeriod()
public void setPeriod(Long Period)
Period
- Purchased usage period in months. which is required when creating an instance. For pay-as-you-go instances, the valid value is 1; for monthly subscription instances, the value range is [1,2,3,4,5,6,7,8,9,10,11,12,24,36].public Long getBillingMode()
public void setBillingMode(Long BillingMode)
BillingMode
- Billing method. 0: pay as you gopublic String getPassword()
public void setPassword(String Password)
Password
- Instance password. If the input parameter `NoAuth` is `true` and a VPC is used, the `Password` is optional; otherwise, it is required.
If the instance type parameter `TypeId` indicates Redis 2.8, 4.0, or 5.0, the password cannot start with "/" and must contain 8-30 characters which are comprised of at least two of the following: lowercase letters, uppercase letters, digits, and special symbols (()`~!@#$%^&*-+=_|{}[]:;<>,.?/).
If the instance type parameter `TypeId` indicates CKV 3.2, the password contains 8-30 characters which must be comprised of only letters and digits.public String getVpcId()
public void setVpcId(String VpcId)
VpcId
- VPC ID, such as "vpc-sad23jfdfk". If this parameter is not passed in, the classic network will be selected by default. The parameter value can be queried by the `DescribeVpcs` API.public String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId
- In a classic network, `subnetId` is invalid. In a VPC subnet, the value can be queried by the `DescribeSubnets` API, such as "subnet-fdj24n34j2".public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- Project ID. The value is subject to the `projectId` returned by the `DescribeProject` API.public Long getAutoRenew()
public void setAutoRenew(Long AutoRenew)
AutoRenew
- Auto-renewal flag. Valid values: 0 (default status, indicating manual renewal), 1 (auto-renewal enabled), 2 (auto-renewal disabled)public String[] getSecurityGroupIdList()
public void setSecurityGroupIdList(String[] SecurityGroupIdList)
SecurityGroupIdList
- Array of security group IDspublic Long getVPort()
public void setVPort(Long VPort)
VPort
- User-defined port. If this parameter is left empty, 6379 will be used by default. Value range: [1024, 65535].public Long getRedisShardNum()
public void setRedisShardNum(Long RedisShardNum)
RedisShardNum
- Number of shards in an instance. This parameter is required for instances in cluster architecture. Value range: [3,5,8,12,16,24,32,64,96,128].public Long getRedisReplicasNum()
public void setRedisReplicasNum(Long RedisReplicasNum)
RedisReplicasNum
- Number of replicas in an instance. Redis 2.8 standard edition and CKV standard edition support 1 replica. Standard/cluster edition 4.0 and 5.0 support 1-5 replicas.public Boolean getReplicasReadonly()
public void setReplicasReadonly(Boolean ReplicasReadonly)
ReplicasReadonly
- Whether to support read-only replicas. Neither Redis 2.8 in standard architecture nor CKV in standard architecture supports read-only replicas. Read/write separation will be automatically enabled for an instance after it enables read-only replicas. Write requests will be directed to the master node and read requests will be distributed on the replica nodes. To enable read-only replicas, we recommend that you create 2 or more replicas.public String getInstanceName()
public void setInstanceName(String InstanceName)
InstanceName
- Instance name. It contains only letters, digits, and symbols (-_) with a length of up to 60 characters.public Boolean getNoAuth()
public void setNoAuth(Boolean NoAuth)
NoAuth
- Whether to support the password-free feature. Valid values: true (password-free instance), false (password-enabled instance). Default value: false. Only instances in a VPC support the password-free access.public RedisNodeInfo[] getNodeSet()
public void setNodeSet(RedisNodeInfo[] NodeSet)
NodeSet
- Copyright © 2020. All rights reserved.