public class ReservedInstances extends AbstractModel
| Constructor and Description | 
|---|
| ReservedInstances() | 
| ReservedInstances(ReservedInstances 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 currency in which the reserved instance is billed. | 
| Long | getDuration()Get The **validity** of the reserved instance in seconds, which is the purchased usage period. | 
| String | getEndTime()Get End time of the reserved instance, taking the form of 2019-10-23 00:00:00 | 
| Long | getInstanceCount()Get The number of reserved instances that have been purchased. | 
| String | getInstanceFamily()Get Reserved instance type, such as `S3`. | 
| String | getInstanceType()Get Reserved instance specification, such as `S3.MEDIUM4`. | 
| String | getOfferingType()Get The payment method of the reserved instance. | 
| String | getProductDescription()Get The operating system of the reserved instance. | 
| String | getReservedInstancesId()Get The ID of the purchased reserved instance, taking the form 650c138f-ae7e-4750-952a-96841d6e9fc1. | 
| String | getStartTime()Get Start time of the reserved instance billing, taking the form of 2019-10-23 00:00:00. | 
| String | getState()Get The status of the reserved instance. | 
| String | getZone()Get Availability zones in which the reserved instance can be purchased. | 
| void | setCurrencyCode(String CurrencyCode)Set The currency in which the reserved instance is billed. | 
| void | setDuration(Long Duration)Set The **validity** of the reserved instance in seconds, which is the purchased usage period. | 
| void | setEndTime(String EndTime)Set End time of the reserved instance, taking the form of 2019-10-23 00:00:00 | 
| void | setInstanceCount(Long InstanceCount)Set The number of reserved instances that have been purchased. | 
| void | setInstanceFamily(String InstanceFamily)Set Reserved instance type, such as `S3`. | 
| void | setInstanceType(String InstanceType)Set Reserved instance specification, such as `S3.MEDIUM4`. | 
| void | setOfferingType(String OfferingType)Set The payment method of the reserved instance. | 
| void | setProductDescription(String ProductDescription)Set The operating system of the reserved instance. | 
| void | setReservedInstancesId(String ReservedInstancesId)Set The ID of the purchased reserved instance, taking the form 650c138f-ae7e-4750-952a-96841d6e9fc1. | 
| void | setStartTime(String StartTime)Set Start time of the reserved instance billing, taking the form of 2019-10-23 00:00:00. | 
| void | setState(String State)Set The status of the reserved instance. | 
| void | setZone(String Zone)Set Availability zones in which the reserved instance can be purchased. | 
| 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 ReservedInstances()
public ReservedInstances(ReservedInstances source)
public String getReservedInstancesId()
public void setReservedInstancesId(String ReservedInstancesId)
ReservedInstancesId - The ID of the purchased reserved instance, taking the form 650c138f-ae7e-4750-952a-96841d6e9fc1.public String getInstanceType()
public void setInstanceType(String InstanceType)
InstanceType - Reserved instance specification, such as `S3.MEDIUM4`.
Valid values: please see Reserved Instance Specificationspublic String getZone()
public void setZone(String Zone)
Zone - Availability zones in which the reserved instance can be purchased. For example, "ap-guangzhou-1".
Returned values: list of availability zonespublic String getStartTime()
public void setStartTime(String StartTime)
StartTime - Start time of the reserved instance billing, taking the form of 2019-10-23 00:00:00.public String getEndTime()
public void setEndTime(String EndTime)
EndTime - End time of the reserved instance, taking the form of 2019-10-23 00:00:00public 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.
Measurement unit: second.public Long getInstanceCount()
public void setInstanceCount(Long InstanceCount)
InstanceCount - The number of reserved instances that have been purchased. For example, 10.public String getProductDescription()
public void setProductDescription(String ProductDescription)
ProductDescription - The operating system of the reserved instance. For example, "linux".
Returned value: linux.public String getState()
public void setState(String State)
State - The status of the reserved instance. For example, "active".
Returned value: "active" (created) | "pending" (waiting to be created) | "retired" (expired).public String getCurrencyCode()
public void setCurrencyCode(String CurrencyCode)
CurrencyCode - The currency in which the reserved instance is billed. The ISO 4217 standard currency codes are used. For example, USD.
Returned value: USD.public String getOfferingType()
public void setOfferingType(String OfferingType)
OfferingType - The payment method of the reserved instance. For example, "All Upfront".
Returned value: All Upfront.public String getInstanceFamily()
public void setInstanceFamily(String InstanceFamily)
InstanceFamily - Reserved instance type, such as `S3`.
Valid values: please see Reserved Instance TypesCopyright © 2022. All rights reserved.