public class ReservedInstances
extends java.lang.Object
implements java.io.Serializable
Describes a Reserved Instance.
Constructor and Description |
---|
ReservedInstances() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.lang.String getReservedInstancesId()
public void setReservedInstancesId(java.lang.String reservedInstancesId)
reservedInstancesId
- The ID of the Reserved Instance.public ReservedInstances withReservedInstancesId(java.lang.String reservedInstancesId)
Returns a reference to this object so that method calls can be chained together.
reservedInstancesId
- The ID of the Reserved Instance.public java.lang.String getInstanceType()
Constraints:
Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
InstanceType
public void setInstanceType(java.lang.String instanceType)
Constraints:
Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
instanceType
- The instance type on which the Reserved Instance can be used.InstanceType
public ReservedInstances withInstanceType(java.lang.String instanceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
instanceType
- The instance type on which the Reserved Instance can be used.InstanceType
public void setInstanceType(InstanceType instanceType)
Constraints:
Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
instanceType
- The instance type on which the Reserved Instance can be used.InstanceType
public ReservedInstances withInstanceType(InstanceType instanceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
instanceType
- The instance type on which the Reserved Instance can be used.InstanceType
public java.lang.String getAvailabilityZone()
public void setAvailabilityZone(java.lang.String availabilityZone)
availabilityZone
- The Availability Zone in which the Reserved Instance can be used.public ReservedInstances withAvailabilityZone(java.lang.String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- The Availability Zone in which the Reserved Instance can be used.public java.util.Date getStart()
public void setStart(java.util.Date start)
start
- The date and time the Reserved Instance started.public ReservedInstances withStart(java.util.Date start)
Returns a reference to this object so that method calls can be chained together.
start
- The date and time the Reserved Instance started.public java.util.Date getEnd()
public void setEnd(java.util.Date end)
end
- The time when the Reserved Instance expires.public ReservedInstances withEnd(java.util.Date end)
Returns a reference to this object so that method calls can be chained together.
end
- The time when the Reserved Instance expires.public java.lang.Long getDuration()
public void setDuration(java.lang.Long duration)
duration
- The duration of the Reserved Instance, in seconds.public ReservedInstances withDuration(java.lang.Long duration)
Returns a reference to this object so that method calls can be chained together.
duration
- The duration of the Reserved Instance, in seconds.public java.lang.Float getUsagePrice()
public void setUsagePrice(java.lang.Float usagePrice)
usagePrice
- The usage price of the Reserved Instance, per hour.public ReservedInstances withUsagePrice(java.lang.Float usagePrice)
Returns a reference to this object so that method calls can be chained together.
usagePrice
- The usage price of the Reserved Instance, per hour.public java.lang.Float getFixedPrice()
public void setFixedPrice(java.lang.Float fixedPrice)
fixedPrice
- The purchase price of the Reserved Instance.public ReservedInstances withFixedPrice(java.lang.Float fixedPrice)
Returns a reference to this object so that method calls can be chained together.
fixedPrice
- The purchase price of the Reserved Instance.public java.lang.Integer getInstanceCount()
public void setInstanceCount(java.lang.Integer instanceCount)
instanceCount
- The number of reservations purchased.public ReservedInstances withInstanceCount(java.lang.Integer instanceCount)
Returns a reference to this object so that method calls can be chained together.
instanceCount
- The number of reservations purchased.public java.lang.String getProductDescription()
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
RIProductDescription
public void setProductDescription(java.lang.String productDescription)
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
productDescription
- The Reserved Instance product platform description.RIProductDescription
public ReservedInstances withProductDescription(java.lang.String productDescription)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
productDescription
- The Reserved Instance product platform description.RIProductDescription
public void setProductDescription(RIProductDescription productDescription)
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
productDescription
- The Reserved Instance product platform description.RIProductDescription
public ReservedInstances withProductDescription(RIProductDescription productDescription)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
productDescription
- The Reserved Instance product platform description.RIProductDescription
public java.lang.String getState()
Constraints:
Allowed Values: payment-pending, active, payment-failed, retired
ReservedInstanceState
public void setState(java.lang.String state)
Constraints:
Allowed Values: payment-pending, active, payment-failed, retired
state
- The state of the Reserved Instance purchase.ReservedInstanceState
public ReservedInstances withState(java.lang.String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: payment-pending, active, payment-failed, retired
state
- The state of the Reserved Instance purchase.ReservedInstanceState
public void setState(ReservedInstanceState state)
Constraints:
Allowed Values: payment-pending, active, payment-failed, retired
state
- The state of the Reserved Instance purchase.ReservedInstanceState
public ReservedInstances withState(ReservedInstanceState state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: payment-pending, active, payment-failed, retired
state
- The state of the Reserved Instance purchase.ReservedInstanceState
public java.util.List<Tag> getTags()
public void setTags(java.util.Collection<Tag> tags)
tags
- Any tags assigned to the resource.public ReservedInstances withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags
- Any tags assigned to the resource.public ReservedInstances withTags(java.util.Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- Any tags assigned to the resource.public java.lang.String getInstanceTenancy()
Constraints:
Allowed Values: default, dedicated, host
Tenancy
public void setInstanceTenancy(java.lang.String instanceTenancy)
Constraints:
Allowed Values: default, dedicated, host
instanceTenancy
- The tenancy of the instance.Tenancy
public ReservedInstances withInstanceTenancy(java.lang.String instanceTenancy)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: default, dedicated, host
instanceTenancy
- The tenancy of the instance.Tenancy
public void setInstanceTenancy(Tenancy instanceTenancy)
Constraints:
Allowed Values: default, dedicated, host
instanceTenancy
- The tenancy of the instance.Tenancy
public ReservedInstances withInstanceTenancy(Tenancy instanceTenancy)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: default, dedicated, host
instanceTenancy
- The tenancy of the instance.Tenancy
public java.lang.String getCurrencyCode()
USD
.
Constraints:
Allowed Values: USD
USD
.CurrencyCodeValues
public void setCurrencyCode(java.lang.String currencyCode)
USD
.
Constraints:
Allowed Values: 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(java.lang.String currencyCode)
USD
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: 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)
USD
.
Constraints:
Allowed Values: 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)
USD
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: 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 getOfferingType()
Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization, No Upfront, Partial Upfront, All Upfront
OfferingTypeValues
public void setOfferingType(java.lang.String offeringType)
Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization, No Upfront, Partial Upfront, All Upfront
offeringType
- The Reserved Instance offering type.OfferingTypeValues
public ReservedInstances withOfferingType(java.lang.String offeringType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization, No Upfront, Partial Upfront, All Upfront
offeringType
- The Reserved Instance offering type.OfferingTypeValues
public void setOfferingType(OfferingTypeValues offeringType)
Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization, No Upfront, Partial Upfront, All Upfront
offeringType
- The Reserved Instance offering type.OfferingTypeValues
public ReservedInstances withOfferingType(OfferingTypeValues offeringType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization, No Upfront, Partial Upfront, All Upfront
offeringType
- The Reserved Instance offering type.OfferingTypeValues
public java.util.List<RecurringCharge> getRecurringCharges()
public void setRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
recurringCharges
- The recurring charge tag assigned to the resource.public ReservedInstances withRecurringCharges(RecurringCharge... recurringCharges)
Returns a reference to this object so that method calls can be chained together.
recurringCharges
- The recurring charge tag assigned to the resource.public ReservedInstances withRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
Returns a reference to this object so that method calls can be chained together.
recurringCharges
- The recurring charge tag assigned to the resource.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.