public class VoucherInfos extends AbstractModel
skipSign
Constructor and Description |
---|
VoucherInfos() |
VoucherInfos(VoucherInfos 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 |
---|---|
ApplicableProducts |
getApplicableProducts()
Get The products that are applicable.
|
Long |
getBalance()
Get The balance left.
|
String |
getBeginTime()
Get The start time of the validity period.
|
String |
getEndTime()
Get The end time of the validity period.
|
ExcludedProducts[] |
getExcludedProducts()
Get The products that are not applicable.
|
Long |
getNominalValue()
Get The value of the voucher.
|
String |
getOwnerUin()
Get The owner of the voucher.
|
String |
getPayMode()
Get `postPay`: pay-as-you-go; `prePay`: prepaid; `riPay`: reserved instance; empty or `*`: all.
|
String |
getPayScene()
Get If `PayMode` is `postPay`, this parameter may be `spotpay` (spot instance) or `settle account` (regular pay-as-you-go).
|
String |
getStatus()
Get The status of the voucher: `unUsed`, `used`, `delivered`, `cancel`, `overdue`
|
String |
getVoucherId()
Get The voucher ID.
|
void |
setApplicableProducts(ApplicableProducts ApplicableProducts)
Set The products that are applicable.
|
void |
setBalance(Long Balance)
Set The balance left.
|
void |
setBeginTime(String BeginTime)
Set The start time of the validity period.
|
void |
setEndTime(String EndTime)
Set The end time of the validity period.
|
void |
setExcludedProducts(ExcludedProducts[] ExcludedProducts)
Set The products that are not applicable.
|
void |
setNominalValue(Long NominalValue)
Set The value of the voucher.
|
void |
setOwnerUin(String OwnerUin)
Set The owner of the voucher.
|
void |
setPayMode(String PayMode)
Set `postPay`: pay-as-you-go; `prePay`: prepaid; `riPay`: reserved instance; empty or `*`: all.
|
void |
setPayScene(String PayScene)
Set If `PayMode` is `postPay`, this parameter may be `spotpay` (spot instance) or `settle account` (regular pay-as-you-go).
|
void |
setStatus(String Status)
Set The status of the voucher: `unUsed`, `used`, `delivered`, `cancel`, `overdue`
|
void |
setVoucherId(String VoucherId)
Set The voucher ID.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, getSkipSign, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public VoucherInfos()
public VoucherInfos(VoucherInfos source)
public String getOwnerUin()
public void setOwnerUin(String OwnerUin)
OwnerUin
- The owner of the voucher.public String getStatus()
public void setStatus(String Status)
Status
- The status of the voucher: `unUsed`, `used`, `delivered`, `cancel`, `overdue`public Long getNominalValue()
public void setNominalValue(Long NominalValue)
NominalValue
- The value of the voucher. The value of this parameter is the voucher value (USD, rounded to 8 decimal places) multiplied by 100,000,000.public Long getBalance()
public void setBalance(Long Balance)
Balance
- The balance left. The value of this parameter is the balance left (USD, rounded to 8 decimal places) multiplied by 100,000,000.public String getVoucherId()
public void setVoucherId(String VoucherId)
VoucherId
- The voucher ID.public String getPayMode()
public void setPayMode(String PayMode)
PayMode
- `postPay`: pay-as-you-go; `prePay`: prepaid; `riPay`: reserved instance; empty or `*`: all.public String getPayScene()
public void setPayScene(String PayScene)
PayScene
- If `PayMode` is `postPay`, this parameter may be `spotpay` (spot instance) or `settle account` (regular pay-as-you-go). If `PayMode` is `prePay`, this parameter may be `purchase`, `renew`, or `modify` (downgrade/upgrade). If `PayMode` is `riPay`, this parameter may be `oneOffFee` (prepayment of reserved instance) or `hourlyFee` (hourly billing of reserved instance). `*` means to query vouchers that support all billing scenarios.public String getBeginTime()
public void setBeginTime(String BeginTime)
BeginTime
- The start time of the validity period.public String getEndTime()
public void setEndTime(String EndTime)
EndTime
- The end time of the validity period.public ApplicableProducts getApplicableProducts()
public void setApplicableProducts(ApplicableProducts ApplicableProducts)
ApplicableProducts
- The products that are applicable.
Note: This field may return `null`, indicating that no valid value was found.public ExcludedProducts[] getExcludedProducts()
public void setExcludedProducts(ExcludedProducts[] ExcludedProducts)
ExcludedProducts
- The products that are not applicable.
Note: This field may return `null`, indicating that no valid value was found.Copyright © 2023. All rights reserved.