public class ReservedInstances
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a Reserved Instance.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
availabilityZone
The Availability Zone in which the Reserved Instance can be used.
|
private java.lang.String |
currencyCode
The currency of the Reserved Instance.
|
private java.lang.Long |
duration
The duration of the Reserved Instance, in seconds.
|
private java.util.Date |
end
The time when the Reserved Instance expires.
|
private java.lang.Float |
fixedPrice
The purchase price of the Reserved Instance.
|
private java.lang.Integer |
instanceCount
The number of reservations purchased.
|
private java.lang.String |
instanceTenancy
The tenancy of the instance.
|
private java.lang.String |
instanceType
The instance type on which the Reserved Instance can be used.
|
private java.lang.String |
offeringType
The Reserved Instance offering type.
|
private java.lang.String |
productDescription
The Reserved Instance product platform description.
|
private SdkInternalList<RecurringCharge> |
recurringCharges
The recurring charge tag assigned to the resource.
|
private java.lang.String |
reservedInstancesId
The ID of the Reserved Instance.
|
private java.util.Date |
start
The date and time the Reserved Instance started.
|
private java.lang.String |
state
The state of the Reserved Instance purchase.
|
private SdkInternalList<Tag> |
tags
Any tags assigned to the resource.
|
private java.lang.Float |
usagePrice
The usage price of the Reserved Instance, per hour.
|
Constructor and Description |
---|
ReservedInstances() |
Modifier and Type | Method and Description |
---|---|
ReservedInstances |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAvailabilityZone()
The Availability Zone in which the Reserved Instance can be used.
|
java.lang.String |
getCurrencyCode()
The currency of the Reserved Instance.
|
java.lang.Long |
getDuration()
The duration of the Reserved Instance, in seconds.
|
java.util.Date |
getEnd()
The time when the Reserved Instance expires.
|
java.lang.Float |
getFixedPrice()
The purchase price of the Reserved Instance.
|
java.lang.Integer |
getInstanceCount()
The number of reservations purchased.
|
java.lang.String |
getInstanceTenancy()
The tenancy of the instance.
|
java.lang.String |
getInstanceType()
The instance type on which the Reserved Instance can be used.
|
java.lang.String |
getOfferingType()
The Reserved Instance offering type.
|
java.lang.String |
getProductDescription()
The Reserved Instance product platform description.
|
java.util.List<RecurringCharge> |
getRecurringCharges()
The recurring charge tag assigned to the resource.
|
java.lang.String |
getReservedInstancesId()
The ID of the Reserved Instance.
|
java.util.Date |
getStart()
The date and time the Reserved Instance started.
|
java.lang.String |
getState()
The state of the Reserved Instance purchase.
|
java.util.List<Tag> |
getTags()
Any tags assigned to the resource.
|
java.lang.Float |
getUsagePrice()
The usage price of the Reserved Instance, per hour.
|
int |
hashCode() |
void |
setAvailabilityZone(java.lang.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(java.lang.String currencyCode)
The currency of the Reserved Instance.
|
void |
setDuration(java.lang.Long duration)
The duration of the Reserved Instance, in seconds.
|
void |
setEnd(java.util.Date end)
The time when the Reserved Instance expires.
|
void |
setFixedPrice(java.lang.Float fixedPrice)
The purchase price of the Reserved Instance.
|
void |
setInstanceCount(java.lang.Integer instanceCount)
The number of reservations purchased.
|
void |
setInstanceTenancy(java.lang.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(java.lang.String instanceType)
The instance type on which the Reserved Instance can be used.
|
void |
setOfferingType(OfferingTypeValues offeringType)
The Reserved Instance offering type.
|
void |
setOfferingType(java.lang.String offeringType)
The Reserved Instance offering type.
|
void |
setProductDescription(RIProductDescription productDescription)
The Reserved Instance product platform description.
|
void |
setProductDescription(java.lang.String productDescription)
The Reserved Instance product platform description.
|
void |
setRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
The recurring charge tag assigned to the resource.
|
void |
setReservedInstancesId(java.lang.String reservedInstancesId)
The ID of the Reserved Instance.
|
void |
setStart(java.util.Date start)
The date and time the Reserved Instance started.
|
void |
setState(ReservedInstanceState state)
The state of the Reserved Instance purchase.
|
void |
setState(java.lang.String state)
The state of the Reserved Instance purchase.
|
void |
setTags(java.util.Collection<Tag> tags)
Any tags assigned to the resource.
|
void |
setUsagePrice(java.lang.Float usagePrice)
The usage price of the Reserved Instance, per hour.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReservedInstances |
withAvailabilityZone(java.lang.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(java.lang.String currencyCode)
The currency of the Reserved Instance.
|
ReservedInstances |
withDuration(java.lang.Long duration)
The duration of the Reserved Instance, in seconds.
|
ReservedInstances |
withEnd(java.util.Date end)
The time when the Reserved Instance expires.
|
ReservedInstances |
withFixedPrice(java.lang.Float fixedPrice)
The purchase price of the Reserved Instance.
|
ReservedInstances |
withInstanceCount(java.lang.Integer instanceCount)
The number of reservations purchased.
|
ReservedInstances |
withInstanceTenancy(java.lang.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(java.lang.String instanceType)
The instance type on which the Reserved Instance can be used.
|
ReservedInstances |
withOfferingType(OfferingTypeValues offeringType)
The Reserved Instance offering type.
|
ReservedInstances |
withOfferingType(java.lang.String offeringType)
The Reserved Instance offering type.
|
ReservedInstances |
withProductDescription(RIProductDescription productDescription)
The Reserved Instance product platform description.
|
ReservedInstances |
withProductDescription(java.lang.String productDescription)
The Reserved Instance product platform description.
|
ReservedInstances |
withRecurringCharges(java.util.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(java.lang.String reservedInstancesId)
The ID of the Reserved Instance.
|
ReservedInstances |
withStart(java.util.Date start)
The date and time the Reserved Instance started.
|
ReservedInstances |
withState(ReservedInstanceState state)
The state of the Reserved Instance purchase.
|
ReservedInstances |
withState(java.lang.String state)
The state of the Reserved Instance purchase.
|
ReservedInstances |
withTags(java.util.Collection<Tag> tags)
Any tags assigned to the resource.
|
ReservedInstances |
withTags(Tag... tags)
Any tags assigned to the resource.
|
ReservedInstances |
withUsagePrice(java.lang.Float usagePrice)
The usage price of the Reserved Instance, per hour.
|
private java.lang.String reservedInstancesId
The ID of the Reserved Instance.
private java.lang.String instanceType
The instance type on which the Reserved Instance can be used.
private java.lang.String availabilityZone
The Availability Zone in which the Reserved Instance can be used.
private java.util.Date start
The date and time the Reserved Instance started.
private java.util.Date end
The time when the Reserved Instance expires.
private java.lang.Long duration
The duration of the Reserved Instance, in seconds.
private java.lang.Float usagePrice
The usage price of the Reserved Instance, per hour.
private java.lang.Float fixedPrice
The purchase price of the Reserved Instance.
private java.lang.Integer instanceCount
The number of reservations purchased.
private java.lang.String productDescription
The Reserved Instance product platform description.
private java.lang.String state
The state of the Reserved Instance purchase.
private SdkInternalList<Tag> tags
Any tags assigned to the resource.
private java.lang.String instanceTenancy
The tenancy of the instance.
private java.lang.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
.
private java.lang.String offeringType
The Reserved Instance offering type.
private SdkInternalList<RecurringCharge> recurringCharges
The recurring charge tag assigned to the resource.
public void setReservedInstancesId(java.lang.String reservedInstancesId)
The ID of the Reserved Instance.
reservedInstancesId
- The ID of the Reserved Instance.public java.lang.String getReservedInstancesId()
The ID of the Reserved Instance.
public ReservedInstances withReservedInstancesId(java.lang.String reservedInstancesId)
The ID of the Reserved Instance.
reservedInstancesId
- The ID of the Reserved Instance.public void setInstanceType(java.lang.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 java.lang.String getInstanceType()
The instance type on which the Reserved Instance can be used.
InstanceType
public ReservedInstances withInstanceType(java.lang.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 setAvailabilityZone(java.lang.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 java.lang.String getAvailabilityZone()
The Availability Zone in which the Reserved Instance can be used.
public ReservedInstances withAvailabilityZone(java.lang.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 setStart(java.util.Date start)
The date and time the Reserved Instance started.
start
- The date and time the Reserved Instance started.public java.util.Date getStart()
The date and time the Reserved Instance started.
public ReservedInstances withStart(java.util.Date start)
The date and time the Reserved Instance started.
start
- The date and time the Reserved Instance started.public void setEnd(java.util.Date end)
The time when the Reserved Instance expires.
end
- The time when the Reserved Instance expires.public java.util.Date getEnd()
The time when the Reserved Instance expires.
public ReservedInstances withEnd(java.util.Date end)
The time when the Reserved Instance expires.
end
- The time when the Reserved Instance expires.public void setDuration(java.lang.Long duration)
The duration of the Reserved Instance, in seconds.
duration
- The duration of the Reserved Instance, in seconds.public java.lang.Long getDuration()
The duration of the Reserved Instance, in seconds.
public ReservedInstances withDuration(java.lang.Long duration)
The duration of the Reserved Instance, in seconds.
duration
- The duration of the Reserved Instance, in seconds.public void setUsagePrice(java.lang.Float usagePrice)
The usage price of the Reserved Instance, per hour.
usagePrice
- The usage price of the Reserved Instance, per hour.public java.lang.Float getUsagePrice()
The usage price of the Reserved Instance, per hour.
public ReservedInstances withUsagePrice(java.lang.Float usagePrice)
The usage price of the Reserved Instance, per hour.
usagePrice
- The usage price of the Reserved Instance, per hour.public void setFixedPrice(java.lang.Float fixedPrice)
The purchase price of the Reserved Instance.
fixedPrice
- The purchase price of the Reserved Instance.public java.lang.Float getFixedPrice()
The purchase price of the Reserved Instance.
public ReservedInstances withFixedPrice(java.lang.Float fixedPrice)
The purchase price of the Reserved Instance.
fixedPrice
- The purchase price of the Reserved Instance.public void setInstanceCount(java.lang.Integer instanceCount)
The number of reservations purchased.
instanceCount
- The number of reservations purchased.public java.lang.Integer getInstanceCount()
The number of reservations purchased.
public ReservedInstances withInstanceCount(java.lang.Integer instanceCount)
The number of reservations purchased.
instanceCount
- The number of reservations purchased.public void setProductDescription(java.lang.String productDescription)
The Reserved Instance product platform description.
productDescription
- The Reserved Instance product platform description.RIProductDescription
public java.lang.String getProductDescription()
The Reserved Instance product platform description.
RIProductDescription
public ReservedInstances withProductDescription(java.lang.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 setState(java.lang.String state)
The state of the Reserved Instance purchase.
state
- The state of the Reserved Instance purchase.ReservedInstanceState
public java.lang.String getState()
The state of the Reserved Instance purchase.
ReservedInstanceState
public ReservedInstances withState(java.lang.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 java.util.List<Tag> getTags()
Any tags assigned to the resource.
public void setTags(java.util.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(java.util.Collection<Tag> tags)
Any tags assigned to the resource.
tags
- Any tags assigned to the resource.public void setInstanceTenancy(java.lang.String instanceTenancy)
The tenancy of the instance.
instanceTenancy
- The tenancy of the instance.Tenancy
public java.lang.String getInstanceTenancy()
The tenancy of the instance.
Tenancy
public ReservedInstances withInstanceTenancy(java.lang.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 setCurrencyCode(java.lang.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 java.lang.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(java.lang.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 setOfferingType(java.lang.String offeringType)
The Reserved Instance offering type.
offeringType
- The Reserved Instance offering type.OfferingTypeValues
public java.lang.String getOfferingType()
The Reserved Instance offering type.
OfferingTypeValues
public ReservedInstances withOfferingType(java.lang.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 java.util.List<RecurringCharge> getRecurringCharges()
The recurring charge tag assigned to the resource.
public void setRecurringCharges(java.util.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(java.util.Collection<RecurringCharge> recurringCharges)
The recurring charge tag assigned to the resource.
recurringCharges
- The recurring charge tag assigned to the resource.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ReservedInstances clone()
clone
in class java.lang.Object