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 Instance capacity in MB.
|
Boolean |
getNoAuth()
Get Whether to support the password-free feature.
|
String |
getPassword()
Get Instance password.
|
Long |
getPeriod()
Get Length of purchase in months, which is required when creating a monthly subscribed instances.
|
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 basic 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 AZ ID of 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 Instance capacity in MB.
|
void |
setNoAuth(Boolean NoAuth)
Set Whether to support the password-free feature.
|
void |
setPassword(String Password)
Set Instance password.
|
void |
setPeriod(Long Period)
Set Length of purchase in months, which is required when creating a monthly subscribed instances.
|
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 basic 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 AZ ID of 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
- AZ ID of instancepublic Long getTypeId()
public void setTypeId(Long TypeId)
TypeId
- Instance type. Valid values: 2 (Redis 2.8 memory edition in standard architecture), 3 (Redis 3.2 memory edition in standard architecture), 4 (CKV 3.2 memory edition in standard 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
- Instance capacity in MB. The actual value is subject to the specifications returned by the purchasable specification querying API |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 purchasable specification querying APIpublic Long getPeriod()
public void setPeriod(Long Period)
Period
- Length of purchase in months, which is required when creating a monthly subscribed instances. Value range: [1,2,3,4,5,6,7,8,9,10,11,12,24,36]. For pay-as-you-go instances, enter 1public 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. It can contain 8-30 characters and must contain at least two of the following types of characters: lowercase letters, uppercase letters, digits, and special symbols (()`~!@#$%^&*-+=_|{}[]:;<>,.?/). It cannot stat with the symbol (/).public String getVpcId()
public void setVpcId(String VpcId)
VpcId
- VPC ID such as vpc-sad23jfdfk. If this parameter is not passed in, the basic network will be selected by default. Please use the VPC list querying API to query.public String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId
- In a basic network, subnetId is invalid. In a VPC subnet, the value is the subnet ID, such as subnet-fdj24n34j2public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- Project ID. The value is subject to the projectId returned by user account > user account-related querying APIs > project listpublic Long getAutoRenew()
public void setAutoRenew(Long AutoRenew)
AutoRenew
- Auto-renewal flag. 0: default status (manual renewal); 1: auto-renewal enabled; 2: auto-renewal disabledpublic 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 cluster edition instances. Valid values: 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 standard edition nor CKV standard edition 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 primary node and read requests will be distributed on secondary nodes. To enable read-only replicas, we recommend you create 2 or more replicas.public String getInstanceName()
public void setInstanceName(String InstanceName)
InstanceName
- Instance name. It contains only letters, digits, underscores, and dashes 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.Copyright © 2020. All rights reserved.