public class InquiryPriceCreateInstanceRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
InquiryPriceCreateInstanceRequest() |
InquiryPriceCreateInstanceRequest(InquiryPriceCreateInstanceRequest 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 |
getBillingMode()
Get Billing mode.
|
Long |
getGoodsNum()
Get Number of instances.
|
Long |
getMemSize()
Get Memory capacity in MB, which must be a multiple of 1,024.
|
Long |
getPeriod()
Get Length of purchase in months, which is required when creating a monthly-subscribed instance.
|
String |
getProductVersion()
Get Deployment mode.
|
Long |
getRedisReplicasNum()
Get Number of instance replicas.
|
Long |
getRedisShardNum()
Get Number of instance shards.
|
Boolean |
getReplicasReadonly()
Get Whether replica read-only is supported.
|
Long |
getTypeId()
Get Instance type.
|
Long |
getZoneId()
Get ID of the AZ where the instance resides.
|
String |
getZoneName()
Get Name of the AZ where the instance resides.
|
void |
setBillingMode(Long BillingMode)
Set Billing mode.
|
void |
setGoodsNum(Long GoodsNum)
Set Number of instances.
|
void |
setMemSize(Long MemSize)
Set Memory capacity in MB, which must be a multiple of 1,024.
|
void |
setPeriod(Long Period)
Set Length of purchase in months, which is required when creating a monthly-subscribed instance.
|
void |
setProductVersion(String ProductVersion)
Set Deployment mode.
|
void |
setRedisReplicasNum(Long RedisReplicasNum)
Set Number of instance replicas.
|
void |
setRedisShardNum(Long RedisShardNum)
Set Number of instance shards.
|
void |
setReplicasReadonly(Boolean ReplicasReadonly)
Set Whether replica read-only is supported.
|
void |
setTypeId(Long TypeId)
Set Instance type.
|
void |
setZoneId(Long ZoneId)
Set ID of the AZ where the instance resides.
|
void |
setZoneName(String ZoneName)
Set Name 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, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public InquiryPriceCreateInstanceRequest()
public InquiryPriceCreateInstanceRequest(InquiryPriceCreateInstanceRequest source)
public Long getTypeId()
public void setTypeId(Long TypeId)
TypeId
- Instance type.
- 2: Redis 2.8 Memory Edition (standard architecture).
- 6: Redis 4.0 Memory Edition (standard architecture).
- 7: Redis 4.0 Memory Edition (cluster architecture).
- 8: Redis 5.0 Memory Edition (standard architecture).
- 9: Redis 5.0 Memory Edition (cluster architecture).
- 15: Redis 6.2 Memory Edition (standard architecture).
- 16: Redis 6.2 Memory Edition (cluster architecture).
- 17: Redis 7.0 Memory Edition (standard architecture).
- 18: Redis 7.0 Memory Edition (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 API](https://intl.cloud.tencent.com/document/api/239/30600?from_cn_redirect=1).public Long getPeriod()
public void setPeriod(Long Period)
Period
- Length of purchase in months, which is required when creating a monthly-subscribed instance. Value range: [1,2,3,4,5,6,7,8,9,10,11,12,24,36]. For pay-as-you-go instances, set the parameter to `1`.public Long getBillingMode()
public void setBillingMode(Long BillingMode)
BillingMode
- Billing mode.
- 0: pay-as-you-go.
- 1: monthly subscription.public Long getZoneId()
public void setZoneId(Long ZoneId)
ZoneId
- ID of the AZ where the instance resides. For more information, see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1).public Long getRedisShardNum()
public void setRedisShardNum(Long RedisShardNum)
RedisShardNum
- Number of instance shards. For the standard architecture of 2.8, the number of shards does not need to be configured. For the standard architecture of other versions, the number of shards should be set to 1. For the cluster architecture, the number of shards to be purchased needs to be specified.public Long getRedisReplicasNum()
public void setRedisReplicasNum(Long RedisReplicasNum)
RedisReplicasNum
- Number of instance replicas. For the standard architecture of 2.8, the number of replicas does not need to be configured.public Boolean getReplicasReadonly()
public void setReplicasReadonly(Boolean ReplicasReadonly)
ReplicasReadonly
- Whether replica read-only is supported. For the standard architecture of Redis 2.8 and CKV, this parameter does not need to be configured.
- true: Replica read-only is not required.
- false: Replica read-only is required.public String getZoneName()
public void setZoneName(String ZoneName)
ZoneName
- Name of the AZ where the instance resides. For more information, see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1).public String getProductVersion()
public void setProductVersion(String ProductVersion)
ProductVersion
- Deployment mode.
- local: local disk. This is the default value.
- cloud: cloud disk.
- cdc: CDC.Copyright © 2024. All rights reserved.