@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.
|
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.InstanceType
public String getInstanceType()
The instance type on which the Reserved Instance can be used.
InstanceType
public 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.InstanceType
public 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.InstanceType
public 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.InstanceType
public void setProductDescription(String productDescription)
The Reserved Instance product platform description.
productDescription
- The Reserved Instance product platform description.RIProductDescription
public String getProductDescription()
The Reserved Instance product platform description.
RIProductDescription
public ReservedInstances withProductDescription(String productDescription)
The Reserved Instance product platform description.
productDescription
- The Reserved Instance product platform description.RIProductDescription
public void setProductDescription(RIProductDescription productDescription)
The Reserved Instance product platform description.
productDescription
- The Reserved Instance product platform description.RIProductDescription
public ReservedInstances withProductDescription(RIProductDescription productDescription)
The Reserved Instance product platform description.
productDescription
- The Reserved Instance product platform description.RIProductDescription
public 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.ReservedInstanceState
public String getState()
The state of the Reserved Instance purchase.
ReservedInstanceState
public ReservedInstances withState(String state)
The state of the Reserved Instance purchase.
state
- The state of the Reserved Instance purchase.ReservedInstanceState
public void setState(ReservedInstanceState state)
The state of the Reserved Instance purchase.
state
- The state of the Reserved Instance purchase.ReservedInstanceState
public ReservedInstances withState(ReservedInstanceState state)
The state of the Reserved Instance purchase.
state
- The state of the Reserved Instance purchase.ReservedInstanceState
public 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
.CurrencyCodeValues
public 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
.CurrencyCodeValues
public 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
.CurrencyCodeValues
public 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
.CurrencyCodeValues
public 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
.CurrencyCodeValues
public void setInstanceTenancy(String instanceTenancy)
The tenancy of the instance.
instanceTenancy
- The tenancy of the instance.Tenancy
public String getInstanceTenancy()
The tenancy of the instance.
Tenancy
public ReservedInstances withInstanceTenancy(String instanceTenancy)
The tenancy of the instance.
instanceTenancy
- The tenancy of the instance.Tenancy
public void setInstanceTenancy(Tenancy instanceTenancy)
The tenancy of the instance.
instanceTenancy
- The tenancy of the instance.Tenancy
public ReservedInstances withInstanceTenancy(Tenancy instanceTenancy)
The tenancy of the instance.
instanceTenancy
- The tenancy of the instance.Tenancy
public void setOfferingClass(String offeringClass)
The offering class of the Reserved Instance.
offeringClass
- The offering class of the Reserved Instance.OfferingClassType
public String getOfferingClass()
The offering class of the Reserved Instance.
OfferingClassType
public ReservedInstances withOfferingClass(String offeringClass)
The offering class of the Reserved Instance.
offeringClass
- The offering class of the Reserved Instance.OfferingClassType
public void setOfferingClass(OfferingClassType offeringClass)
The offering class of the Reserved Instance.
offeringClass
- The offering class of the Reserved Instance.OfferingClassType
public ReservedInstances withOfferingClass(OfferingClassType offeringClass)
The offering class of the Reserved Instance.
offeringClass
- The offering class of the Reserved Instance.OfferingClassType
public void setOfferingType(String offeringType)
The Reserved Instance offering type.
offeringType
- The Reserved Instance offering type.OfferingTypeValues
public String getOfferingType()
The Reserved Instance offering type.
OfferingTypeValues
public ReservedInstances withOfferingType(String offeringType)
The Reserved Instance offering type.
offeringType
- The Reserved Instance offering type.OfferingTypeValues
public void setOfferingType(OfferingTypeValues offeringType)
The Reserved Instance offering type.
offeringType
- The Reserved Instance offering type.OfferingTypeValues
public ReservedInstances withOfferingType(OfferingTypeValues offeringType)
The Reserved Instance offering type.
offeringType
- The Reserved Instance offering type.OfferingTypeValues
public 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.Scope
public String getScope()
The scope of the Reserved Instance.
Scope
public ReservedInstances withScope(String scope)
The scope of the Reserved Instance.
scope
- The scope of the Reserved Instance.Scope
public void setScope(Scope scope)
The scope of the Reserved Instance.
scope
- The scope of the Reserved Instance.Scope
public ReservedInstances withScope(Scope scope)
The scope of the Reserved Instance.
scope
- The scope of the Reserved Instance.Scope
public 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 Object
Object.toString()
public ReservedInstances clone()