public class ReservedInstancesOffering extends AbstractModel
Constructor and Description |
---|
ReservedInstancesOffering() |
Modifier and Type | Method and Description |
---|---|
String |
getCurrencyCode()
Get The currency of the Reserved Instance you are purchasing.
|
Long |
getDuration()
Get The **duration** of the Reserved Instance in seconds, which is the purchased usage period.
|
Float |
getFixedPrice()
Get The purchase price of the Reserved Instance, such as 4000.0.
|
String |
getInstanceType()
Get The instance type on which the Reserved Instance can be used, such as S3.MEDIUM4.
|
String |
getOfferingType()
Get The payment term of the Reserved Instance, such as All Upfront.
|
String |
getProductDescription()
Get The platform description (operating system) of the Reserved Instance, such as linux.
|
String |
getReservedInstancesOfferingId()
Get The ID of the Reserved Instance offering, such as 650c138f-ae7e-4750-952a-96841d6e9fc1.
|
Float |
getUsagePrice()
Get The hourly usage price of the Reserved Instance, such as 0.0.
|
String |
getZone()
Get The availability zones in which the Reserved Instance can be purchased, such as ap-guangzhou-1.
|
void |
setCurrencyCode(String CurrencyCode)
Set The currency of the Reserved Instance you are purchasing.
|
void |
setDuration(Long Duration)
Set The **duration** of the Reserved Instance in seconds, which is the purchased usage period.
|
void |
setFixedPrice(Float FixedPrice)
Set The purchase price of the Reserved Instance, such as 4000.0.
|
void |
setInstanceType(String InstanceType)
Set The instance type on which the Reserved Instance can be used, such as S3.MEDIUM4.
|
void |
setOfferingType(String OfferingType)
Set The payment term of the Reserved Instance, such as All Upfront.
|
void |
setProductDescription(String ProductDescription)
Set The platform description (operating system) of the Reserved Instance, such as linux.
|
void |
setReservedInstancesOfferingId(String ReservedInstancesOfferingId)
Set The ID of the Reserved Instance offering, such as 650c138f-ae7e-4750-952a-96841d6e9fc1.
|
void |
setUsagePrice(Float UsagePrice)
Set The hourly usage price of the Reserved Instance, such as 0.0.
|
void |
setZone(String Zone)
Set The availability zones in which the Reserved Instance can be purchased, such as ap-guangzhou-1.
|
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 String getZone()
public void setZone(String Zone)
Zone
- The availability zones in which the Reserved Instance can be purchased, such as ap-guangzhou-1.
Valid value: Availability Zonespublic String getCurrencyCode()
public void setCurrencyCode(String CurrencyCode)
CurrencyCode
- The currency of the Reserved Instance you are purchasing. It's specified using ISO 4217 standard currency.
Valid value: USD.public Long getDuration()
public void setDuration(Long Duration)
Duration
- The **duration** of the Reserved Instance in seconds, which is the purchased usage period. For example, 31536000.
Unit: secondpublic Float getFixedPrice()
public void setFixedPrice(Float FixedPrice)
FixedPrice
- The purchase price of the Reserved Instance, such as 4000.0.
Unit: this field uses the currency code specified in `currencyCode`, and only supports “USD” at this time.public String getInstanceType()
public void setInstanceType(String InstanceType)
InstanceType
- The instance type on which the Reserved Instance can be used, such as S3.MEDIUM4.
Valid value: Instance Typespublic String getOfferingType()
public void setOfferingType(String OfferingType)
OfferingType
- The payment term of the Reserved Instance, such as All Upfront.
Valid value: All Upfront.public String getReservedInstancesOfferingId()
public void setReservedInstancesOfferingId(String ReservedInstancesOfferingId)
ReservedInstancesOfferingId
- The ID of the Reserved Instance offering, such as 650c138f-ae7e-4750-952a-96841d6e9fc1.public String getProductDescription()
public void setProductDescription(String ProductDescription)
ProductDescription
- The platform description (operating system) of the Reserved Instance, such as linux.
Valid value: linux.public Float getUsagePrice()
public void setUsagePrice(Float UsagePrice)
UsagePrice
- The hourly usage price of the Reserved Instance, such as 0.0.
Currently, the only supported payment is “All Upfront”, so the default value of `UsagePrice` is 0 USD/hr.
Unit: USD/hr. This field uses the currency code specified in `currencyCode`, and only supports “USD” at this time.Copyright © 2020. All rights reserved.