public class ItemPrice extends AbstractModel
| 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 Billing unit for pay-as-you-go mode. | 
| Float | getDiscount()Get Percentage of the original price. | 
| Float | getDiscountFiveYear()Get Discount for 5-year upfront payment. | 
| Float | getDiscountOneYear()Get Discount for 1-year upfront payment. | 
| Float | getDiscountPrice()Get Discount price of a prepaid instance, in USD. | 
| Float | getDiscountPriceFiveYear()Get Discounted 5-year upfront payment, in USD. | 
| Float | getDiscountPriceOneYear()Get Discounted 1-year payment, in USD. | 
| Float | getDiscountPriceThreeYear()Get Discounted 3-year upfront payment, in USD. | 
| Float | getDiscountThreeYear()Get Discount for 3-year upfront payment. | 
| Float | getOriginalPrice()Get The original price of a pay-in-advance instance, in USD. | 
| Float | getOriginalPriceFiveYear()Get Original 5-year payment, in USD. | 
| Float | getOriginalPriceOneYear()Get Original 1-year payment, in USD. | 
| Float | getOriginalPriceThreeYear()Get Original 3-year payment, in USD. | 
| Float | getUnitPrice()Get The original unit price for pay-as-you-go mode in USD. | 
| Float | getUnitPriceDiscount()Get The discounted unit price for pay-as-you-go mode in USD. | 
| Float | getUnitPriceDiscountSecondStep()Get Discounted unit price for the usage between 96 to 360 hours in USD. | 
| Float | getUnitPriceDiscountThirdStep()Get Discounted unit price for the usage after 360 hours in USD. | 
| Float | getUnitPriceSecondStep()Get Original unit price for the usage between 96 to 360 hours in USD. | 
| Float | getUnitPriceThirdStep()Get Original unit price for the usage after 360 hours in USD. | 
| void | setChargeUnit(String ChargeUnit)Set Billing unit for pay-as-you-go mode. | 
| void | setDiscount(Float Discount)Set Percentage of the original price. | 
| void | setDiscountFiveYear(Float DiscountFiveYear)Set Discount for 5-year upfront payment. | 
| void | setDiscountOneYear(Float DiscountOneYear)Set Discount for 1-year upfront payment. | 
| void | setDiscountPrice(Float DiscountPrice)Set Discount price of a prepaid instance, in USD. | 
| void | setDiscountPriceFiveYear(Float DiscountPriceFiveYear)Set Discounted 5-year upfront payment, in USD. | 
| void | setDiscountPriceOneYear(Float DiscountPriceOneYear)Set Discounted 1-year payment, in USD. | 
| void | setDiscountPriceThreeYear(Float DiscountPriceThreeYear)Set Discounted 3-year upfront payment, in USD. | 
| void | setDiscountThreeYear(Float DiscountThreeYear)Set Discount for 3-year upfront payment. | 
| void | setOriginalPrice(Float OriginalPrice)Set The original price of a pay-in-advance instance, in USD. | 
| void | setOriginalPriceFiveYear(Float OriginalPriceFiveYear)Set Original 5-year payment, in USD. | 
| void | setOriginalPriceOneYear(Float OriginalPriceOneYear)Set Original 1-year payment, in USD. | 
| void | setOriginalPriceThreeYear(Float OriginalPriceThreeYear)Set Original 3-year payment, in USD. | 
| void | setUnitPrice(Float UnitPrice)Set The original unit price for pay-as-you-go mode in USD. | 
| void | setUnitPriceDiscount(Float UnitPriceDiscount)Set The discounted unit price for pay-as-you-go mode in USD. | 
| void | setUnitPriceDiscountSecondStep(Float UnitPriceDiscountSecondStep)Set Discounted unit price for the usage between 96 to 360 hours in USD. | 
| void | setUnitPriceDiscountThirdStep(Float UnitPriceDiscountThirdStep)Set Discounted unit price for the usage after 360 hours in USD. | 
| void | setUnitPriceSecondStep(Float UnitPriceSecondStep)Set Original unit price for the usage between 96 to 360 hours in USD. | 
| void | setUnitPriceThirdStep(Float UnitPriceThirdStep)Set Original unit price for the usage after 360 hours in USD. | 
| 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 ItemPrice()
public ItemPrice(ItemPrice source)
public Float getUnitPrice()
public void setUnitPrice(Float UnitPrice)
UnitPrice - The original unit price for pay-as-you-go mode in USD. public String getChargeUnit()
public void setChargeUnit(String ChargeUnit)
ChargeUnit - Billing unit for pay-as-you-go mode. Valid values: public Float getOriginalPrice()
public void setOriginalPrice(Float OriginalPrice)
OriginalPrice - The original price of a pay-in-advance instance, in USD.
Note: this field may return null, indicating that no valid value is obtained.public Float getDiscountPrice()
public void setDiscountPrice(Float DiscountPrice)
DiscountPrice - Discount price of a prepaid instance, in USD.
Note: this field may return null, indicating that no valid value is obtained.public Float getDiscount()
public void setDiscount(Float Discount)
Discount - Percentage of the original price. For example, if you enter "20.0", the discounted price will be 20% of the original price.
Note: this field may return null, indicating that no valid values can be obtained.public Float getUnitPriceDiscount()
public void setUnitPriceDiscount(Float UnitPriceDiscount)
UnitPriceDiscount - The discounted unit price for pay-as-you-go mode in USD. public Float getUnitPriceSecondStep()
public void setUnitPriceSecondStep(Float UnitPriceSecondStep)
UnitPriceSecondStep - Original unit price for the usage between 96 to 360 hours in USD. It's applicable to pay-as-you-go mode.
Note: this field may return null, indicating that no valid value is obtained.public Float getUnitPriceDiscountSecondStep()
public void setUnitPriceDiscountSecondStep(Float UnitPriceDiscountSecondStep)
UnitPriceDiscountSecondStep - Discounted unit price for the usage between 96 to 360 hours in USD. It's applicable to pay-as-you-go mode.
Note: this field may return null, indicating that no valid value is obtained.public Float getUnitPriceThirdStep()
public void setUnitPriceThirdStep(Float UnitPriceThirdStep)
UnitPriceThirdStep - Original unit price for the usage after 360 hours in USD. It's applicable to pay-as-you-go mode.
Note: this field may return null, indicating that no valid value is obtained.public Float getUnitPriceDiscountThirdStep()
public void setUnitPriceDiscountThirdStep(Float UnitPriceDiscountThirdStep)
UnitPriceDiscountThirdStep - Discounted unit price for the usage after 360 hours in USD. It's applicable to pay-as-you-go mode.
Note: this field may return null, indicating that no valid value is obtained.public Float getOriginalPriceThreeYear()
public void setOriginalPriceThreeYear(Float OriginalPriceThreeYear)
OriginalPriceThreeYear - Original 3-year payment, in USD. This parameter is only available to upfront payment mode.
Note: this field may return `null`, indicating that no valid value was found.
Note: this field may return `null`, indicating that no valid value was found.public Float getDiscountPriceThreeYear()
public void setDiscountPriceThreeYear(Float DiscountPriceThreeYear)
DiscountPriceThreeYear - Discounted 3-year upfront payment, in USD. This parameter is only available to upfront payment mode.
Note: this field may return `null`, indicating that no valid value was found.
Note: this field may return `null`, indicating that no valid value was found.public Float getDiscountThreeYear()
public void setDiscountThreeYear(Float DiscountThreeYear)
DiscountThreeYear - Discount for 3-year upfront payment. For example, 20.0 indicates 80% off.
Note: this field may return `null`, indicating that no valid value was found.
Note: this field may return `null`, indicating that no valid value was found.public Float getOriginalPriceFiveYear()
public void setOriginalPriceFiveYear(Float OriginalPriceFiveYear)
OriginalPriceFiveYear - Original 5-year payment, in USD. This parameter is only available to upfront payment mode.
Note: this field may return `null`, indicating that no valid value was found.
Note: this field may return `null`, indicating that no valid value was found.public Float getDiscountPriceFiveYear()
public void setDiscountPriceFiveYear(Float DiscountPriceFiveYear)
DiscountPriceFiveYear - Discounted 5-year upfront payment, in USD. This parameter is only available to upfront payment mode.
Note: this field may return `null`, indicating that no valid value was found.
Note: this field may return `null`, indicating that no valid value was found.public Float getDiscountFiveYear()
public void setDiscountFiveYear(Float DiscountFiveYear)
DiscountFiveYear - Discount for 5-year upfront payment. For example, 20.0 indicates 80% off.
Note: this field may return `null`, indicating that no valid value was found.
Note: this field may return `null`, indicating that no valid value was found.public Float getOriginalPriceOneYear()
public void setOriginalPriceOneYear(Float OriginalPriceOneYear)
OriginalPriceOneYear - Original 1-year payment, in USD. This parameter is only available to upfront payment mode.
Note: this field may return `null`, indicating that no valid value was found.
Note: this field may return `null`, indicating that no valid value was found.public Float getDiscountPriceOneYear()
public void setDiscountPriceOneYear(Float DiscountPriceOneYear)
DiscountPriceOneYear - Discounted 1-year payment, in USD. This parameter is only available to upfront payment mode.
Note: this field may return `null`, indicating that no valid value was found.
Note: this field may return `null`, indicating that no valid value was found.public Float getDiscountOneYear()
public void setDiscountOneYear(Float DiscountOneYear)
DiscountOneYear - Discount for 1-year upfront payment. For example, 20.0 indicates 80% off.
Note: this field may return `null`, indicating that no valid value was found.
Note: this field may return `null`, indicating that no valid value was found.Copyright © 2022. All rights reserved.