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 to which the instance belongs.
|
String |
getZoneName()
Get Name of the AZ to which the instance belongs.
|
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 to which the instance belongs.
|
void |
setZoneName(String ZoneName)
Set Name of the AZ to which the instance belongs.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, 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).
- 200: Memcached 1.6 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 to which the instance belongs. See [Regions and AZs](https://www.tencentcloud.comom/document/product/239/4106?from_cn_redirect=1).
Note**: Specify at least one parameter from **ZoneId** and **ZoneName**.public Long getRedisShardNum()
public void setRedisShardNum(Long RedisShardNum)
RedisShardNum
- Number of instance shards.
- The number of shards is required to be set to 1 for the standard architecture.
- The number of shards can be set to 1, 3, 5, 8, 12, 16, 24, 32, 40, 48, 64, 80, 96, or 128 for the cluster architecture.public Long getRedisReplicasNum()
public void setRedisReplicasNum(Long RedisReplicasNum)
RedisReplicasNum
- Number of instance replicas. Valid values: 1, 2, 3, 4, and 5.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 to which the instance belongs. See [Regions and AZs](https://www.tencentcloud.comom/document/product/239/4106?from_cn_redirect=1).
Note**: Specify at least one parameter from **ZoneId** and **ZoneName**.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 © 2025. All rights reserved.