|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.model.ReservedInstances
public class ReservedInstances
A group of Amazon EC2 Reserved Instances purchased by this account.
Constructor Summary | |
---|---|
ReservedInstances()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getAvailabilityZone()
The Availability Zone in which the Reserved Instances can be used. |
String |
getCurrencyCode()
The currency of the reserved instance. |
Long |
getDuration()
The duration of the Reserved Instances, in seconds. |
Float |
getFixedPrice()
The purchase price of the Reserved Instances. |
Integer |
getInstanceCount()
The number of Reserved Instances purchased. |
String |
getInstanceTenancy()
The tenancy of the reserved instance (ex: default or dedicated). |
String |
getInstanceType()
The instance type on which the Reserved Instances can be used. |
String |
getOfferingType()
The Reserved Instance offering type. |
String |
getProductDescription()
The Reserved Instances product description (ex: Windows or Unix/Linux). |
List<RecurringCharge> |
getRecurringCharges()
The recurring charge tag assigned to the resource. |
String |
getReservedInstancesId()
The unique ID of the Reserved Instances purchase. |
Date |
getStart()
The date and time the Reserved Instances started. |
String |
getState()
The state of the Reserved Instances purchase. |
List<Tag> |
getTags()
A list of tags for the ReservedInstances. |
Float |
getUsagePrice()
The usage price of the Reserved Instances, per hour. |
int |
hashCode()
|
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone in which the Reserved Instances can be used. |
void |
setCurrencyCode(String currencyCode)
The currency of the reserved instance. |
void |
setDuration(Long duration)
The duration of the Reserved Instances, in seconds. |
void |
setFixedPrice(Float fixedPrice)
The purchase price of the Reserved Instances. |
void |
setInstanceCount(Integer instanceCount)
The number of Reserved Instances purchased. |
void |
setInstanceTenancy(String instanceTenancy)
The tenancy of the reserved instance (ex: default or dedicated). |
void |
setInstanceType(InstanceType instanceType)
The instance type on which the Reserved Instances can be used. |
void |
setInstanceType(String instanceType)
The instance type on which the Reserved Instances can be used. |
void |
setOfferingType(String offeringType)
The Reserved Instance offering type. |
void |
setProductDescription(String productDescription)
The Reserved Instances product description (ex: Windows or Unix/Linux). |
void |
setRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charge tag assigned to the resource. |
void |
setReservedInstancesId(String reservedInstancesId)
The unique ID of the Reserved Instances purchase. |
void |
setStart(Date start)
The date and time the Reserved Instances started. |
void |
setState(String state)
The state of the Reserved Instances purchase. |
void |
setTags(Collection<Tag> tags)
A list of tags for the ReservedInstances. |
void |
setUsagePrice(Float usagePrice)
The usage price of the Reserved Instances, 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 Instances can be used. |
ReservedInstances |
withCurrencyCode(String currencyCode)
The currency of the reserved instance. |
ReservedInstances |
withDuration(Long duration)
The duration of the Reserved Instances, in seconds. |
ReservedInstances |
withFixedPrice(Float fixedPrice)
The purchase price of the Reserved Instances. |
ReservedInstances |
withInstanceCount(Integer instanceCount)
The number of Reserved Instances purchased. |
ReservedInstances |
withInstanceTenancy(String instanceTenancy)
The tenancy of the reserved instance (ex: default or dedicated). |
ReservedInstances |
withInstanceType(InstanceType instanceType)
The instance type on which the Reserved Instances can be used. |
ReservedInstances |
withInstanceType(String instanceType)
The instance type on which the Reserved Instances can be used. |
ReservedInstances |
withOfferingType(String offeringType)
The Reserved Instance offering type. |
ReservedInstances |
withProductDescription(String productDescription)
The Reserved Instances product description (ex: Windows or Unix/Linux). |
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 unique ID of the Reserved Instances purchase. |
ReservedInstances |
withStart(Date start)
The date and time the Reserved Instances started. |
ReservedInstances |
withState(String state)
The state of the Reserved Instances purchase. |
ReservedInstances |
withTags(Collection<Tag> tags)
A list of tags for the ReservedInstances. |
ReservedInstances |
withTags(Tag... tags)
A list of tags for the ReservedInstances. |
ReservedInstances |
withUsagePrice(Float usagePrice)
The usage price of the Reserved Instances, per hour. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReservedInstances()
Method Detail |
---|
public String getReservedInstancesId()
public void setReservedInstancesId(String reservedInstancesId)
reservedInstancesId
- The unique ID of the Reserved Instances purchase.public ReservedInstances withReservedInstancesId(String reservedInstancesId)
Returns a reference to this object so that method calls can be chained together.
reservedInstancesId
- The unique ID of the Reserved Instances purchase.
public String getInstanceType()
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge
InstanceType
public void setInstanceType(String instanceType)
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge
instanceType
- The instance type on which the Reserved Instances 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, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge
instanceType
- The instance type on which the Reserved Instances can be used.
InstanceType
public void setInstanceType(InstanceType instanceType)
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge
instanceType
- The instance type on which the Reserved Instances 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, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge
instanceType
- The instance type on which the Reserved Instances can be used.
InstanceType
public String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
availabilityZone
- The Availability Zone in which the Reserved Instances 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 Instances can be used.
public Date getStart()
public void setStart(Date start)
start
- The date and time the Reserved Instances 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 Instances started.
public Long getDuration()
public void setDuration(Long duration)
duration
- The duration of the Reserved Instances, 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 Instances, in seconds.
public Float getUsagePrice()
public void setUsagePrice(Float usagePrice)
usagePrice
- The usage price of the Reserved Instances, 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 Instances, per hour.
public Float getFixedPrice()
public void setFixedPrice(Float fixedPrice)
fixedPrice
- The purchase price of the Reserved Instances.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 Instances.
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()
public void setProductDescription(String productDescription)
productDescription
- The Reserved Instances product description (ex: Windows or
Unix/Linux).public ReservedInstances withProductDescription(String productDescription)
Returns a reference to this object so that method calls can be chained together.
productDescription
- The Reserved Instances product description (ex: Windows or
Unix/Linux).
public String getState()
public void setState(String state)
state
- The state of the Reserved Instances purchase.public ReservedInstances withState(String state)
Returns a reference to this object so that method calls can be chained together.
state
- The state of the Reserved Instances purchase.
public List<Tag> getTags()
public void setTags(Collection<Tag> tags)
tags
- A list of tags for the ReservedInstances.public ReservedInstances withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tags for the ReservedInstances.
public ReservedInstances withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tags for the ReservedInstances.
public String getInstanceTenancy()
public void setInstanceTenancy(String instanceTenancy)
instanceTenancy
- The tenancy of the reserved instance (ex: default or dedicated).public ReservedInstances withInstanceTenancy(String instanceTenancy)
Returns a reference to this object so that method calls can be chained together.
instanceTenancy
- The tenancy of the reserved instance (ex: default or dedicated).
public String getCurrencyCode()
public void setCurrencyCode(String currencyCode)
currencyCode
- The currency of the reserved instance. Specified using ISO 4217
standard (e.g., USD, JPY).public ReservedInstances withCurrencyCode(String currencyCode)
Returns a reference to this object so that method calls can be chained together.
currencyCode
- The currency of the reserved instance. Specified using ISO 4217
standard (e.g., USD, JPY).
public String getOfferingType()
public void setOfferingType(String offeringType)
offeringType
- The Reserved Instance offering type.public ReservedInstances withOfferingType(String offeringType)
Returns a reference to this object so that method calls can be chained together.
offeringType
- The Reserved Instance offering type.
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()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |