public class ReservedInstancesOffering extends AbstractModel
Constructor and Description |
---|
ReservedInstancesOffering() |
ReservedInstancesOffering(ReservedInstancesOffering 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 |
getCurrencyCode()
Get The billing currency of the Reserved Instance you are purchasing.
|
Long |
getDuration()
Get The **validity** 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 model of the Reserved Instance, such as S3.MEDIUM4.
|
String |
getOfferingType()
Get The payment term of the Reserved Instance, such as **All Upfront**.
|
String |
getProductDescription()
Get The 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 billing currency of the Reserved Instance you are purchasing.
|
void |
setDuration(Long Duration)
Set The **validity** 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 model of the Reserved Instance, 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 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 ReservedInstancesOffering()
public ReservedInstancesOffering(ReservedInstancesOffering source)
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 billing currency of the Reserved Instance you are purchasing. It's specified using ISO 4217 standard currency.
Value: USD.public Long getDuration()
public void setDuration(Long Duration)
Duration
- The **validity** 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 model of the Reserved Instance, such as S3.MEDIUM4.
Valid values: please see Reserved 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 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 mode 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 © 2023. All rights reserved.