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 |
getGoodsNum()
Get Number of instances.
|
String |
getInstanceRole()
Get Instance type.
|
Long |
getMemory()
Get Instance memory size in MB.
|
String |
getPayType()
Get Billing method.
|
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 |
setGoodsNum(Long GoodsNum)
Set Number of instances.
|
void |
setInstanceRole(String InstanceRole)
Set Instance type.
|
void |
setMemory(Long Memory)
Set Instance memory size in MB.
|
void |
setPayType(String PayType)
Set Billing method.
|
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, toJsonStringpublic DescribeDBPriceRequest()
public DescribeDBPriceRequest(DescribeDBPriceRequest source)
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 values that can be set.public Long getGoodsNum()
public void setGoodsNum(Long GoodsNum)
GoodsNum - Number of instances. Value range: 1-100. Default value: 1.public Long getMemory()
public void setMemory(Long Memory)
Memory - Instance memory size in MB.public Long getVolume()
public void setVolume(Long Volume)
Volume - Instance disk size in GB.public String getPayType()
public void setPayType(String PayType)
PayType - Billing method. Value range: PRE_PAID (monthly subscribed), HOUR_PAID (pay-as-you-go).public Long getPeriod()
public void setPeriod(Long Period)
Period - Instance validity period in months. Value range: 1-36. This field is invalid when querying prices of pay-as-you-go instances.public String getInstanceRole()
public void setInstanceRole(String InstanceRole)
InstanceRole - Instance type. Value range: master (master instance), dr (disaster recovery instance), ro (read-only instance). Default value: master.public Long getProtectMode()
public void setProtectMode(Long ProtectMode)
ProtectMode - Data replication mode. Value range: 0 (async), 1 (semi-sync), 2 (strong sync). Default value: 0.Copyright © 2022. All rights reserved.