public class DescribeDBPriceRequest extends AbstractModel
Constructor and Description |
---|
DescribeDBPriceRequest() |
DescribeDBPriceRequest(DescribeDBPriceRequest 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 |
getCpu()
Get CPU core count of the price-queried instance.
|
String |
getDeviceType()
Get Instance isolation type.
|
Long |
getGoodsNum()
Get Number of instances.
|
String |
getInstanceId()
Get Instance ID for querying renewal price.
|
Long |
getInstanceNodes()
Get The number of the instance.
|
String |
getInstanceRole()
Get Instance type.
|
Long |
getLadder()
Get Tiered pay-as-you-go pricing, which is valid only when `PayType` is set to `HOUR_PAID`.
|
Long |
getMemory()
Get Instance memory size in MB.
|
String |
getPayType()
Get Billing mode.
|
Long |
getPeriod()
Get Instance validity period in months.
|
Long |
getProtectMode()
Get Data replication mode.
|
Long |
getVolume()
Get Instance disk size in GB.
|
String |
getZone()
Get AZ information in the format of "ap-guangzhou-2".
|
void |
setCpu(Long Cpu)
Set CPU core count of the price-queried instance.
|
void |
setDeviceType(String DeviceType)
Set Instance isolation type.
|
void |
setGoodsNum(Long GoodsNum)
Set Number of instances.
|
void |
setInstanceId(String InstanceId)
Set Instance ID for querying renewal price.
|
void |
setInstanceNodes(Long InstanceNodes)
Set The number of the instance.
|
void |
setInstanceRole(String InstanceRole)
Set Instance type.
|
void |
setLadder(Long Ladder)
Set Tiered pay-as-you-go pricing, which is valid only when `PayType` is set to `HOUR_PAID`.
|
void |
setMemory(Long Memory)
Set Instance memory size in MB.
|
void |
setPayType(String PayType)
Set Billing mode.
|
void |
setPeriod(Long Period)
Set Instance validity period in months.
|
void |
setProtectMode(Long ProtectMode)
Set Data replication mode.
|
void |
setVolume(Long Volume)
Set Instance disk size in GB.
|
void |
setZone(String Zone)
Set AZ information in the format of "ap-guangzhou-2".
|
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 DescribeDBPriceRequest()
public DescribeDBPriceRequest(DescribeDBPriceRequest source)
public Long getPeriod()
public void setPeriod(Long Period)
Period
- Instance validity period in months. Value range: 1-36. This field is invalid when querying the prices of pay-as-you-go instances.public String getZone()
public void setZone(String Zone)
Zone
- AZ information in the format of "ap-guangzhou-2". You can use the DescribeDBZoneConfig API to query the configurable values. This parameter is required when `InstanceId` is empty.public Long getGoodsNum()
public void setGoodsNum(Long GoodsNum)
GoodsNum
- Number of instances. Value range: 1-100. Default value: 1. This parameter is required when `InstanceId` is empty.public Long getMemory()
public void setMemory(Long Memory)
Memory
- Instance memory size in MB. This parameter is required when `InstanceId` is empty.public Long getVolume()
public void setVolume(Long Volume)
Volume
- Instance disk size in GB. This parameter is required when `InstanceId` is empty.public String getInstanceRole()
public void setInstanceRole(String InstanceRole)
InstanceRole
- Instance type. Valid values: `master` (source instance), `dr` (disaster recovery instance), `ro` (read-only instance). Default value: `master`. This parameter is required when `InstanceId` is empty.public String getPayType()
public void setPayType(String PayType)
PayType
- Billing mode. Valid values: `PRE_PAID` (monthly subscribed), `HOUR_PAID` (pay-as-you-go). This parameter is required when `InstanceId` is empty.public Long getProtectMode()
public void setProtectMode(Long ProtectMode)
ProtectMode
- Data replication mode. Valid values: `0` (async), 1 (semi-sync), `2` (strong sync). Default value: `0`.public String getDeviceType()
public void setDeviceType(String DeviceType)
DeviceType
- Instance isolation type. Valid values: `UNIVERSAL` (general instance), `EXCLUSIVE` (dedicated instance), `BASIC` (basic instance). Default value: `UNIVERSAL`.public Long getInstanceNodes()
public void setInstanceNodes(Long InstanceNodes)
InstanceNodes
- The number of the instance. Valid values: `1` (for read-only and basic instances), `2` (for other source instances). To query the price of a three-node instance, set this value to `3`.public Long getCpu()
public void setCpu(Long Cpu)
Cpu
- CPU core count of the price-queried instance. To ensure that the CPU value to be passed in is valid, use the [DescribeDBZoneConfig](https://www.tencentcloud.com/document/product/236/17229) API to query the number of purchasable cores. If this value is not specified, a default value based on memory size will be set.public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Instance ID for querying renewal price. To query the renewal price of the instance, pass in the values of `InstanceId` and `Period`.public Long getLadder()
public void setLadder(Long Ladder)
Ladder
- Tiered pay-as-you-go pricing, which is valid only when `PayType` is set to `HOUR_PAID`. Valid values: `1`, `2`, `3`. For more information on tiered duration, visit https://intl.cloud.tencent.com/document/product/236/18335.?from_cn_redirect=1Copyright © 2023. All rights reserved.