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 instance replicas.
|
Long |
getRedisShardNum()
Get Number of instance shards.
|
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 ID of the AZ where the instance resides
|
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 instance replicas.
|
void |
setRedisShardNum(Long RedisShardNum)
Set Number of instance shards.
|
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 ID of the AZ where the instance resides
|
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
- ID of the AZ where the instance residespublic Long getTypeId()
public void setTypeId(Long TypeId)
TypeId
- Instance type. 2: Redis 2.8 master-slave edition; 3: Redis 3.2 master-slave edition (CKV master-slave edition); 4: Redis 3.2 cluster edition (CKV cluster edition); 5: Redis 2.8 standalone edition; 6: Redis 4.0 master-slave edition; 7: Redis 4.0 cluster editionpublic 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. Rules: 1. It can contain 8-16 characters; 2. It must contain at least two of the following three types of characters: letters, digits, and special characters !@^*(). (When creating a password-free instance, you can leave this field along and it will be ignored.)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 blank, 6379 will be used by defaultpublic Long getRedisShardNum()
public void setRedisShardNum(Long RedisShardNum)
RedisShardNum
- Number of instance shards. This parameter can be left blank for Redis 2.8 master-slave edition, CKV master-slave edition, Redis 2.8 standalone edition, and Redis 4.0 master-slave editionpublic Long getRedisReplicasNum()
public void setRedisReplicasNum(Long RedisReplicasNum)
RedisReplicasNum
- Number of instance replicas. This parameter can be left blank for Redis 2.8 master-slave edition, CKV master-slave edition, and Redis 2.8 standalone editionpublic Boolean getReplicasReadonly()
public void setReplicasReadonly(Boolean ReplicasReadonly)
ReplicasReadonly
- Whether to support read-only replicas. This parameter can be left blank for Redis 2.8 master-slave edition, CKV master-slave edition, and Redis 2.8 standalone edition |public String getInstanceName()
public void setInstanceName(String InstanceName)
InstanceName
- Instance namepublic Boolean getNoAuth()
public void setNoAuth(Boolean NoAuth)
NoAuth
- Whether to support the password-free feature. Value range: true (password-free instance); false (password-enabled instance). Default value: falseCopyright © 2020. All rights reserved.