@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ReservedInstances extends Object implements Serializable, Cloneable
Describes a Reserved Instance.
| Constructor and Description |
|---|
ReservedInstances() |
| Modifier and Type | Method and Description |
|---|---|
ReservedInstances |
clone() |
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
The Availability Zone in which the Reserved Instance can be used.
|
String |
getCurrencyCode()
The currency of the Reserved Instance.
|
Long |
getDuration()
The duration of the Reserved Instance, in seconds.
|
Date |
getEnd()
The time when the Reserved Instance expires.
|
Float |
getFixedPrice()
The purchase price of the Reserved Instance.
|
Integer |
getInstanceCount()
The number of reservations purchased.
|
String |
getInstanceTenancy()
The tenancy of the instance.
|
String |
getInstanceType()
The instance type on which the Reserved Instance can be used.
|
String |
getOfferingClass()
The offering class of the Reserved Instance.
|
String |
getOfferingType()
The Reserved Instance offering type.
|
String |
getProductDescription()
The Reserved Instance product platform description.
|
List<RecurringCharge> |
getRecurringCharges()
The recurring charge tag assigned to the resource.
|
String |
getReservedInstancesId()
The ID of the Reserved Instance.
|
String |
getScope()
The scope of the Reserved Instance.
|
Date |
getStart()
The date and time the Reserved Instance started.
|
String |
getState()
The state of the Reserved Instance purchase.
|
List<Tag> |
getTags()
Any tags assigned to the resource.
|
Float |
getUsagePrice()
The usage price of the Reserved Instance, per hour.
|
int |
hashCode() |
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone in which the Reserved Instance can be used.
|
void |
setCurrencyCode(CurrencyCodeValues currencyCode)
The currency of the Reserved Instance.
|
void |
setCurrencyCode(String currencyCode)
The currency of the Reserved Instance.
|
void |
setDuration(Long duration)
The duration of the Reserved Instance, in seconds.
|
void |
setEnd(Date end)
The time when the Reserved Instance expires.
|
void |
setFixedPrice(Float fixedPrice)
The purchase price of the Reserved Instance.
|
void |
setInstanceCount(Integer instanceCount)
The number of reservations purchased.
|
void |
setInstanceTenancy(String instanceTenancy)
The tenancy of the instance.
|
void |
setInstanceTenancy(Tenancy instanceTenancy)
The tenancy of the instance.
|
void |
setInstanceType(InstanceType instanceType)
The instance type on which the Reserved Instance can be used.
|
void |
setInstanceType(String instanceType)
The instance type on which the Reserved Instance can be used.
|
void |
setOfferingClass(OfferingClassType offeringClass)
The offering class of the Reserved Instance.
|
void |
setOfferingClass(String offeringClass)
The offering class of the Reserved Instance.
|
void |
setOfferingType(OfferingTypeValues offeringType)
The Reserved Instance offering type.
|
void |
setOfferingType(String offeringType)
The Reserved Instance offering type.
|
void |
setProductDescription(RIProductDescription productDescription)
The Reserved Instance product platform description.
|
void |
setProductDescription(String productDescription)
The Reserved Instance product platform description.
|
void |
setRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charge tag assigned to the resource.
|
void |
setReservedInstancesId(String reservedInstancesId)
The ID of the Reserved Instance.
|
void |
setScope(Scope scope)
The scope of the Reserved Instance.
|
void |
setScope(String scope)
The scope of the Reserved Instance.
|
void |
setStart(Date start)
The date and time the Reserved Instance started.
|
void |
setState(ReservedInstanceState state)
The state of the Reserved Instance purchase.
|
void |
setState(String state)
The state of the Reserved Instance purchase.
|
void |
setTags(Collection<Tag> tags)
Any tags assigned to the resource.
|
void |
setUsagePrice(Float usagePrice)
The usage price of the Reserved Instance, per hour.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ReservedInstances |
withAvailabilityZone(String availabilityZone)
The Availability Zone in which the Reserved Instance can be used.
|
ReservedInstances |
withCurrencyCode(CurrencyCodeValues currencyCode)
The currency of the Reserved Instance.
|
ReservedInstances |
withCurrencyCode(String currencyCode)
The currency of the Reserved Instance.
|
ReservedInstances |
withDuration(Long duration)
The duration of the Reserved Instance, in seconds.
|
ReservedInstances |
withEnd(Date end)
The time when the Reserved Instance expires.
|
ReservedInstances |
withFixedPrice(Float fixedPrice)
The purchase price of the Reserved Instance.
|
ReservedInstances |
withInstanceCount(Integer instanceCount)
The number of reservations purchased.
|
ReservedInstances |
withInstanceTenancy(String instanceTenancy)
The tenancy of the instance.
|
ReservedInstances |
withInstanceTenancy(Tenancy instanceTenancy)
The tenancy of the instance.
|
ReservedInstances |
withInstanceType(InstanceType instanceType)
The instance type on which the Reserved Instance can be used.
|
ReservedInstances |
withInstanceType(String instanceType)
The instance type on which the Reserved Instance can be used.
|
ReservedInstances |
withOfferingClass(OfferingClassType offeringClass)
The offering class of the Reserved Instance.
|
ReservedInstances |
withOfferingClass(String offeringClass)
The offering class of the Reserved Instance.
|
ReservedInstances |
withOfferingType(OfferingTypeValues offeringType)
The Reserved Instance offering type.
|
ReservedInstances |
withOfferingType(String offeringType)
The Reserved Instance offering type.
|
ReservedInstances |
withProductDescription(RIProductDescription productDescription)
The Reserved Instance product platform description.
|
ReservedInstances |
withProductDescription(String productDescription)
The Reserved Instance product platform description.
|
ReservedInstances |
withRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charge tag assigned to the resource.
|
ReservedInstances |
withRecurringCharges(RecurringCharge... recurringCharges)
The recurring charge tag assigned to the resource.
|
ReservedInstances |
withReservedInstancesId(String reservedInstancesId)
The ID of the Reserved Instance.
|
ReservedInstances |
withScope(Scope scope)
The scope of the Reserved Instance.
|
ReservedInstances |
withScope(String scope)
The scope of the Reserved Instance.
|
ReservedInstances |
withStart(Date start)
The date and time the Reserved Instance started.
|
ReservedInstances |
withState(ReservedInstanceState state)
The state of the Reserved Instance purchase.
|
ReservedInstances |
withState(String state)
The state of the Reserved Instance purchase.
|
ReservedInstances |
withTags(Collection<Tag> tags)
Any tags assigned to the resource.
|
ReservedInstances |
withTags(Tag... tags)
Any tags assigned to the resource.
|
ReservedInstances |
withUsagePrice(Float usagePrice)
The usage price of the Reserved Instance, per hour.
|
public void setAvailabilityZone(String availabilityZone)
The Availability Zone in which the Reserved Instance can be used.
availabilityZone - The Availability Zone in which the Reserved Instance can be used.public String getAvailabilityZone()
The Availability Zone in which the Reserved Instance can be used.
public ReservedInstances withAvailabilityZone(String availabilityZone)
The Availability Zone in which the Reserved Instance can be used.
availabilityZone - The Availability Zone in which the Reserved Instance can be used.public void setDuration(Long duration)
The duration of the Reserved Instance, in seconds.
duration - The duration of the Reserved Instance, in seconds.public Long getDuration()
The duration of the Reserved Instance, in seconds.
public ReservedInstances withDuration(Long duration)
The duration of the Reserved Instance, in seconds.
duration - The duration of the Reserved Instance, in seconds.public void setEnd(Date end)
The time when the Reserved Instance expires.
end - The time when the Reserved Instance expires.public Date getEnd()
The time when the Reserved Instance expires.
public ReservedInstances withEnd(Date end)
The time when the Reserved Instance expires.
end - The time when the Reserved Instance expires.public void setFixedPrice(Float fixedPrice)
The purchase price of the Reserved Instance.
fixedPrice - The purchase price of the Reserved Instance.public Float getFixedPrice()
The purchase price of the Reserved Instance.
public ReservedInstances withFixedPrice(Float fixedPrice)
The purchase price of the Reserved Instance.
fixedPrice - The purchase price of the Reserved Instance.public void setInstanceCount(Integer instanceCount)
The number of reservations purchased.
instanceCount - The number of reservations purchased.public Integer getInstanceCount()
The number of reservations purchased.
public ReservedInstances withInstanceCount(Integer instanceCount)
The number of reservations purchased.
instanceCount - The number of reservations purchased.public void setInstanceType(String instanceType)
The instance type on which the Reserved Instance can be used.
instanceType - The instance type on which the Reserved Instance can be used.InstanceTypepublic String getInstanceType()
The instance type on which the Reserved Instance can be used.
InstanceTypepublic ReservedInstances withInstanceType(String instanceType)
The instance type on which the Reserved Instance can be used.
instanceType - The instance type on which the Reserved Instance can be used.InstanceTypepublic void setInstanceType(InstanceType instanceType)
The instance type on which the Reserved Instance can be used.
instanceType - The instance type on which the Reserved Instance can be used.InstanceTypepublic ReservedInstances withInstanceType(InstanceType instanceType)
The instance type on which the Reserved Instance can be used.
instanceType - The instance type on which the Reserved Instance can be used.InstanceTypepublic void setProductDescription(String productDescription)
The Reserved Instance product platform description.
productDescription - The Reserved Instance product platform description.RIProductDescriptionpublic String getProductDescription()
The Reserved Instance product platform description.
RIProductDescriptionpublic ReservedInstances withProductDescription(String productDescription)
The Reserved Instance product platform description.
productDescription - The Reserved Instance product platform description.RIProductDescriptionpublic void setProductDescription(RIProductDescription productDescription)
The Reserved Instance product platform description.
productDescription - The Reserved Instance product platform description.RIProductDescriptionpublic ReservedInstances withProductDescription(RIProductDescription productDescription)
The Reserved Instance product platform description.
productDescription - The Reserved Instance product platform description.RIProductDescriptionpublic void setReservedInstancesId(String reservedInstancesId)
The ID of the Reserved Instance.
reservedInstancesId - The ID of the Reserved Instance.public String getReservedInstancesId()
The ID of the Reserved Instance.
public ReservedInstances withReservedInstancesId(String reservedInstancesId)
The ID of the Reserved Instance.
reservedInstancesId - The ID of the Reserved Instance.public void setStart(Date start)
The date and time the Reserved Instance started.
start - The date and time the Reserved Instance started.public Date getStart()
The date and time the Reserved Instance started.
public ReservedInstances withStart(Date start)
The date and time the Reserved Instance started.
start - The date and time the Reserved Instance started.public void setState(String state)
The state of the Reserved Instance purchase.
state - The state of the Reserved Instance purchase.ReservedInstanceStatepublic String getState()
The state of the Reserved Instance purchase.
ReservedInstanceStatepublic ReservedInstances withState(String state)
The state of the Reserved Instance purchase.
state - The state of the Reserved Instance purchase.ReservedInstanceStatepublic void setState(ReservedInstanceState state)
The state of the Reserved Instance purchase.
state - The state of the Reserved Instance purchase.ReservedInstanceStatepublic ReservedInstances withState(ReservedInstanceState state)
The state of the Reserved Instance purchase.
state - The state of the Reserved Instance purchase.ReservedInstanceStatepublic void setUsagePrice(Float usagePrice)
The usage price of the Reserved Instance, per hour.
usagePrice - The usage price of the Reserved Instance, per hour.public Float getUsagePrice()
The usage price of the Reserved Instance, per hour.
public ReservedInstances withUsagePrice(Float usagePrice)
The usage price of the Reserved Instance, per hour.
usagePrice - The usage price of the Reserved Instance, per hour.public void setCurrencyCode(String currencyCode)
The currency of the Reserved Instance. It's specified using ISO 4217 standard currency codes. At this time, the
only supported currency is USD.
currencyCode - The currency of the Reserved Instance. It's specified using ISO 4217 standard currency codes. At this
time, the only supported currency is USD.CurrencyCodeValuespublic String getCurrencyCode()
The currency of the Reserved Instance. It's specified using ISO 4217 standard currency codes. At this time, the
only supported currency is USD.
USD.CurrencyCodeValuespublic ReservedInstances withCurrencyCode(String currencyCode)
The currency of the Reserved Instance. It's specified using ISO 4217 standard currency codes. At this time, the
only supported currency is USD.
currencyCode - The currency of the Reserved Instance. It's specified using ISO 4217 standard currency codes. At this
time, the only supported currency is USD.CurrencyCodeValuespublic void setCurrencyCode(CurrencyCodeValues currencyCode)
The currency of the Reserved Instance. It's specified using ISO 4217 standard currency codes. At this time, the
only supported currency is USD.
currencyCode - The currency of the Reserved Instance. It's specified using ISO 4217 standard currency codes. At this
time, the only supported currency is USD.CurrencyCodeValuespublic ReservedInstances withCurrencyCode(CurrencyCodeValues currencyCode)
The currency of the Reserved Instance. It's specified using ISO 4217 standard currency codes. At this time, the
only supported currency is USD.
currencyCode - The currency of the Reserved Instance. It's specified using ISO 4217 standard currency codes. At this
time, the only supported currency is USD.CurrencyCodeValuespublic void setInstanceTenancy(String instanceTenancy)
The tenancy of the instance.
instanceTenancy - The tenancy of the instance.Tenancypublic String getInstanceTenancy()
The tenancy of the instance.
Tenancypublic ReservedInstances withInstanceTenancy(String instanceTenancy)
The tenancy of the instance.
instanceTenancy - The tenancy of the instance.Tenancypublic void setInstanceTenancy(Tenancy instanceTenancy)
The tenancy of the instance.
instanceTenancy - The tenancy of the instance.Tenancypublic ReservedInstances withInstanceTenancy(Tenancy instanceTenancy)
The tenancy of the instance.
instanceTenancy - The tenancy of the instance.Tenancypublic void setOfferingClass(String offeringClass)
The offering class of the Reserved Instance.
offeringClass - The offering class of the Reserved Instance.OfferingClassTypepublic String getOfferingClass()
The offering class of the Reserved Instance.
OfferingClassTypepublic ReservedInstances withOfferingClass(String offeringClass)
The offering class of the Reserved Instance.
offeringClass - The offering class of the Reserved Instance.OfferingClassTypepublic void setOfferingClass(OfferingClassType offeringClass)
The offering class of the Reserved Instance.
offeringClass - The offering class of the Reserved Instance.OfferingClassTypepublic ReservedInstances withOfferingClass(OfferingClassType offeringClass)
The offering class of the Reserved Instance.
offeringClass - The offering class of the Reserved Instance.OfferingClassTypepublic void setOfferingType(String offeringType)
The Reserved Instance offering type.
offeringType - The Reserved Instance offering type.OfferingTypeValuespublic String getOfferingType()
The Reserved Instance offering type.
OfferingTypeValuespublic ReservedInstances withOfferingType(String offeringType)
The Reserved Instance offering type.
offeringType - The Reserved Instance offering type.OfferingTypeValuespublic void setOfferingType(OfferingTypeValues offeringType)
The Reserved Instance offering type.
offeringType - The Reserved Instance offering type.OfferingTypeValuespublic ReservedInstances withOfferingType(OfferingTypeValues offeringType)
The Reserved Instance offering type.
offeringType - The Reserved Instance offering type.OfferingTypeValuespublic List<RecurringCharge> getRecurringCharges()
The recurring charge tag assigned to the resource.
public void setRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charge tag assigned to the resource.
recurringCharges - The recurring charge tag assigned to the resource.public ReservedInstances withRecurringCharges(RecurringCharge... recurringCharges)
The recurring charge tag assigned to the resource.
NOTE: This method appends the values to the existing list (if any). Use
setRecurringCharges(java.util.Collection) or withRecurringCharges(java.util.Collection) if you
want to override the existing values.
recurringCharges - The recurring charge tag assigned to the resource.public ReservedInstances withRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charge tag assigned to the resource.
recurringCharges - The recurring charge tag assigned to the resource.public void setScope(String scope)
The scope of the Reserved Instance.
scope - The scope of the Reserved Instance.Scopepublic String getScope()
The scope of the Reserved Instance.
Scopepublic ReservedInstances withScope(String scope)
The scope of the Reserved Instance.
scope - The scope of the Reserved Instance.Scopepublic void setScope(Scope scope)
The scope of the Reserved Instance.
scope - The scope of the Reserved Instance.Scopepublic ReservedInstances withScope(Scope scope)
The scope of the Reserved Instance.
scope - The scope of the Reserved Instance.Scopepublic List<Tag> getTags()
Any tags assigned to the resource.
public void setTags(Collection<Tag> tags)
Any tags assigned to the resource.
tags - Any tags assigned to the resource.public ReservedInstances withTags(Tag... tags)
Any tags assigned to the resource.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the
existing values.
tags - Any tags assigned to the resource.public ReservedInstances withTags(Collection<Tag> tags)
Any tags assigned to the resource.
tags - Any tags assigned to the resource.public String toString()
toString in class ObjectObject.toString()public ReservedInstances clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.