public class ReservedInstances extends AbstractModel
Constructor and Description |
---|
ReservedInstances() |
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 |
getInstanceType()
Get The type of the reserved instance.
|
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 |
setInstanceType(String InstanceType)
Set The type of the reserved instance.
|
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, toJsonString
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
- The type of the reserved instance. For example, S3.MEDIUM4.
Returned value: list of reserved instance typespublic 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.Copyright © 2020. All rights reserved.