public class ReservedInstances extends AbstractModel
header, skipSign| 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 Billing currencies of purchasable reserved instances.
|
Long |
getDuration()
Get Validity periods of reserved instances, which is the purchase duration of reserved instances.
|
String |
getEndTime()
Get Billing end time of reserved instances.
|
Long |
getInstanceCount()
Get Number of purchased reserved instances.
|
String |
getInstanceFamily()
Get Types of reserved instances.
|
String |
getInstanceType()
Get Specifications of reserved instances.
|
String |
getOfferingType()
Get Payment types of reserved instances.
|
String |
getProductDescription()
Get Platform descriptions (operating systems) of reserved instances.
|
String |
getReservedInstanceId()
Get IDs of purchased reserved instances.
|
String |
getReservedInstanceName()
Get Display names of reserved instances.
|
String |
getReservedInstancesId()
Deprecated.
|
String |
getStartTime()
Get Billing start time of reserved instances.
|
String |
getState()
Get Statuses of purchased reserved instances.
|
String |
getZone()
Get Availability zones in which reserved instances can be purchased.
|
void |
setCurrencyCode(String CurrencyCode)
Set Billing currencies of purchasable reserved instances.
|
void |
setDuration(Long Duration)
Set Validity periods of reserved instances, which is the purchase duration of reserved instances.
|
void |
setEndTime(String EndTime)
Set Billing end time of reserved instances.
|
void |
setInstanceCount(Long InstanceCount)
Set Number of purchased reserved instances.
|
void |
setInstanceFamily(String InstanceFamily)
Set Types of reserved instances.
|
void |
setInstanceType(String InstanceType)
Set Specifications of reserved instances.
|
void |
setOfferingType(String OfferingType)
Set Payment types of reserved instances.
|
void |
setProductDescription(String ProductDescription)
Set Platform descriptions (operating systems) of reserved instances.
|
void |
setReservedInstanceId(String ReservedInstanceId)
Set IDs of purchased reserved instances.
|
void |
setReservedInstanceName(String ReservedInstanceName)
Set Display names of reserved instances.
|
void |
setReservedInstancesId(String ReservedInstancesId)
Deprecated.
|
void |
setStartTime(String StartTime)
Set Billing start time of reserved instances.
|
void |
setState(String State)
Set Statuses of purchased reserved instances.
|
void |
setZone(String Zone)
Set Availability zones in which reserved instances can be purchased.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic ReservedInstances()
public ReservedInstances(ReservedInstances source)
@Deprecated public String getReservedInstancesId()
@Deprecated public void setReservedInstancesId(String ReservedInstancesId)
ReservedInstancesId - (This field has been deprecated. ReservedInstanceId is recommended.) IDs of purchased reserved instances. For example, ri-rtbh4han.public String getInstanceType()
public void setInstanceType(String InstanceType)
InstanceType - Specifications of reserved instances. For example, S3.MEDIUM4.
Return values: Reserved instance specification list.public String getZone()
public void setZone(String Zone)
Zone - Availability zones in which reserved instances can be purchased. For example, ap-guangzhou-1.
Return values: Availability zone list.public String getStartTime()
public void setStartTime(String StartTime)
StartTime - Billing start time of reserved instances. For example, 1949-10-01 00:00:00.public String getEndTime()
public void setEndTime(String EndTime)
EndTime - Billing end time of reserved instances. For example, 1949-10-01 00:00:00.public Long getDuration()
public void setDuration(Long Duration)
Duration - Validity periods of reserved instances, which is the purchase duration of reserved instances. For example, 31536000.
Unit: second.public Long getInstanceCount()
public void setInstanceCount(Long InstanceCount)
InstanceCount - Number of purchased reserved instances. For example, 10.public String getProductDescription()
public void setProductDescription(String ProductDescription)
ProductDescription - Platform descriptions (operating systems) of reserved instances. For example, linux.
Return value: linux.public String getState()
public void setState(String State)
State - Statuses of purchased reserved instances. For example: active.
Return values: active (created) | pending (waiting to be created) | retired (expired).public String getCurrencyCode()
public void setCurrencyCode(String CurrencyCode)
CurrencyCode - Billing currencies of purchasable reserved instances. Use standard currency codes defined in ISO 4217. For example, USD.
Return value: USD.public String getOfferingType()
public void setOfferingType(String OfferingType)
OfferingType - Payment types of reserved instances. For example, All Upfront.
Return value: All Upfront (fully prepaid).public String getInstanceFamily()
public void setInstanceFamily(String InstanceFamily)
InstanceFamily - Types of reserved instances. For example, S3.
Return values: Reserved instance type list.public String getReservedInstanceId()
public void setReservedInstanceId(String ReservedInstanceId)
ReservedInstanceId - IDs of purchased reserved instances. For example, ri-rtbh4han.public String getReservedInstanceName()
public void setReservedInstanceName(String ReservedInstanceName)
ReservedInstanceName - Display names of reserved instances. For example, riname-01.Copyright © 2025. All rights reserved.