public class ItemPrice extends AbstractModel
header, skipSign| Constructor and Description |
|---|
ItemPrice() |
ItemPrice(ItemPrice 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 |
|---|---|
String |
getChargeUnit()
Get Pay-as-you-go billing unit.
|
Float |
getDiscount()
Get Discount, such as 20.0 representing 80% off.
|
Float |
getDiscountPrice()
Get Discount price of prepaid costs, unit: CNY.
|
Float |
getOriginalPrice()
Get Original price of pre-payment (in CNY).
|
Float |
getUnitPrice()
Get Postpaid unit price.
|
Float |
getUnitPriceDiscount()
Get Discounted unit price for pay-as-you-go.
|
void |
setChargeUnit(String ChargeUnit)
Set Pay-as-you-go billing unit.
|
void |
setDiscount(Float Discount)
Set Discount, such as 20.0 representing 80% off.
|
void |
setDiscountPrice(Float DiscountPrice)
Set Discount price of prepaid costs, unit: CNY.
|
void |
setOriginalPrice(Float OriginalPrice)
Set Original price of pre-payment (in CNY).
|
void |
setUnitPrice(Float UnitPrice)
Set Postpaid unit price.
|
void |
setUnitPriceDiscount(Float UnitPriceDiscount)
Set Discounted unit price for pay-as-you-go.
|
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, toJsonStringpublic ItemPrice()
public ItemPrice(ItemPrice source)
public Float getUnitPrice()
public void setUnitPrice(Float UnitPrice)
UnitPrice - Postpaid unit price. Unit: CNY.
Note: This field may return null, indicating that no valid value can be obtained.public String getChargeUnit()
public void setChargeUnit(String ChargeUnit)
ChargeUnit - Pay-as-you-go billing unit. Valid values: HOUR: indicates that the billing unit is calculated by hour. Current scenarios involving this billing unit include: postpaid by hour for instances (POSTPAID_BY_HOUR).Note: This field may return null, indicating that no valid value can be obtained.public Float getOriginalPrice()
public void setOriginalPrice(Float OriginalPrice)
OriginalPrice - Original price of pre-payment (in CNY).
Note: This field may return null, indicating that no valid value can be obtained.public Float getDiscountPrice()
public void setDiscountPrice(Float DiscountPrice)
DiscountPrice - Discount price of prepaid costs, unit: CNY.
Note: This field may return null, indicating that no valid value can be obtained.public Float getUnitPriceDiscount()
public void setUnitPriceDiscount(Float UnitPriceDiscount)
UnitPriceDiscount - Discounted unit price for pay-as-you-go. Unit: CNY.Note: This field may return null, indicating that no valid value can be obtained.public Float getDiscount()
public void setDiscount(Float Discount)
Discount - Discount, such as 20.0 representing 80% off.
Note: This field may return null, indicating that no valid value can be obtained.Copyright © 2025. All rights reserved.