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