com.amazonaws.services.ec2.model
Class ReservedInstances

java.lang.Object
  extended by com.amazonaws.services.ec2.model.ReservedInstances

public class ReservedInstances
extends Object

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

ReservedInstances

public ReservedInstances()
Method Detail

getReservedInstancesId

public String getReservedInstancesId()
The unique ID of the Reserved Instances purchase.

Returns:
The unique ID of the Reserved Instances purchase.

setReservedInstancesId

public void setReservedInstancesId(String reservedInstancesId)
The unique ID of the Reserved Instances purchase.

Parameters:
reservedInstancesId - The unique ID of the Reserved Instances purchase.

withReservedInstancesId

public ReservedInstances withReservedInstancesId(String reservedInstancesId)
The unique ID of the Reserved Instances purchase.

Returns a reference to this object so that method calls can be chained together.

Parameters:
reservedInstancesId - The unique ID of the Reserved Instances purchase.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceType

public String getInstanceType()
The instance type on which the Reserved Instances can be used.

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

Returns:
The instance type on which the Reserved Instances can be used.
See Also:
InstanceType

setInstanceType

public void setInstanceType(String instanceType)
The instance type on which the Reserved Instances can be used.

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

Parameters:
instanceType - The instance type on which the Reserved Instances can be used.
See Also:
InstanceType

withInstanceType

public ReservedInstances withInstanceType(String instanceType)
The instance type on which the Reserved Instances can be used.

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

Parameters:
instanceType - The instance type on which the Reserved Instances can be used.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
InstanceType

setInstanceType

public void setInstanceType(InstanceType instanceType)
The instance type on which the Reserved Instances can be used.

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

Parameters:
instanceType - The instance type on which the Reserved Instances can be used.
See Also:
InstanceType

withInstanceType

public ReservedInstances withInstanceType(InstanceType instanceType)
The instance type on which the Reserved Instances can be used.

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

Parameters:
instanceType - The instance type on which the Reserved Instances can be used.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
InstanceType

getAvailabilityZone

public String getAvailabilityZone()
The Availability Zone in which the Reserved Instances can be used.

Returns:
The Availability Zone in which the Reserved Instances can be used.

setAvailabilityZone

public void setAvailabilityZone(String availabilityZone)
The Availability Zone in which the Reserved Instances can be used.

Parameters:
availabilityZone - The Availability Zone in which the Reserved Instances can be used.

withAvailabilityZone

public ReservedInstances withAvailabilityZone(String availabilityZone)
The Availability Zone in which the Reserved Instances can be used.

Returns a reference to this object so that method calls can be chained together.

Parameters:
availabilityZone - The Availability Zone in which the Reserved Instances can be used.
Returns:
A reference to this updated object so that method calls can be chained together.

getStart

public Date getStart()
The date and time the Reserved Instances started.

Returns:
The date and time the Reserved Instances started.

setStart

public void setStart(Date start)
The date and time the Reserved Instances started.

Parameters:
start - The date and time the Reserved Instances started.

withStart

public ReservedInstances withStart(Date start)
The date and time the Reserved Instances started.

Returns a reference to this object so that method calls can be chained together.

Parameters:
start - The date and time the Reserved Instances started.
Returns:
A reference to this updated object so that method calls can be chained together.

getDuration

public Long getDuration()
The duration of the Reserved Instances, in seconds.

Returns:
The duration of the Reserved Instances, in seconds.

setDuration

public void setDuration(Long duration)
The duration of the Reserved Instances, in seconds.

Parameters:
duration - The duration of the Reserved Instances, in seconds.

withDuration

public ReservedInstances withDuration(Long duration)
The duration of the Reserved Instances, in seconds.

Returns a reference to this object so that method calls can be chained together.

Parameters:
duration - The duration of the Reserved Instances, in seconds.
Returns:
A reference to this updated object so that method calls can be chained together.

getUsagePrice

public Float getUsagePrice()
The usage price of the Reserved Instances, per hour.

Returns:
The usage price of the Reserved Instances, per hour.

setUsagePrice

public void setUsagePrice(Float usagePrice)
The usage price of the Reserved Instances, per hour.

Parameters:
usagePrice - The usage price of the Reserved Instances, per hour.

withUsagePrice

public ReservedInstances withUsagePrice(Float usagePrice)
The usage price of the Reserved Instances, per hour.

Returns a reference to this object so that method calls can be chained together.

Parameters:
usagePrice - The usage price of the Reserved Instances, per hour.
Returns:
A reference to this updated object so that method calls can be chained together.

getFixedPrice

public Float getFixedPrice()
The purchase price of the Reserved Instances.

Returns:
The purchase price of the Reserved Instances.

setFixedPrice

public void setFixedPrice(Float fixedPrice)
The purchase price of the Reserved Instances.

Parameters:
fixedPrice - The purchase price of the Reserved Instances.

withFixedPrice

public ReservedInstances withFixedPrice(Float fixedPrice)
The purchase price of the Reserved Instances.

Returns a reference to this object so that method calls can be chained together.

Parameters:
fixedPrice - The purchase price of the Reserved Instances.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceCount

public Integer getInstanceCount()
The number of Reserved Instances purchased.

Returns:
The number of Reserved Instances purchased.

setInstanceCount

public void setInstanceCount(Integer instanceCount)
The number of Reserved Instances purchased.

Parameters:
instanceCount - The number of Reserved Instances purchased.

withInstanceCount

public ReservedInstances withInstanceCount(Integer instanceCount)
The number of Reserved Instances purchased.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceCount - The number of Reserved Instances purchased.
Returns:
A reference to this updated object so that method calls can be chained together.

getProductDescription

public String getProductDescription()
The Reserved Instances product description (ex: Windows or Unix/Linux).

Returns:
The Reserved Instances product description (ex: Windows or Unix/Linux).

setProductDescription

public void setProductDescription(String productDescription)
The Reserved Instances product description (ex: Windows or Unix/Linux).

Parameters:
productDescription - The Reserved Instances product description (ex: Windows or Unix/Linux).

withProductDescription

public ReservedInstances withProductDescription(String productDescription)
The Reserved Instances product description (ex: Windows or Unix/Linux).

Returns a reference to this object so that method calls can be chained together.

Parameters:
productDescription - The Reserved Instances product description (ex: Windows or Unix/Linux).
Returns:
A reference to this updated object so that method calls can be chained together.

getState

public String getState()
The state of the Reserved Instances purchase.

Returns:
The state of the Reserved Instances purchase.

setState

public void setState(String state)
The state of the Reserved Instances purchase.

Parameters:
state - The state of the Reserved Instances purchase.

withState

public ReservedInstances withState(String state)
The state of the Reserved Instances purchase.

Returns a reference to this object so that method calls can be chained together.

Parameters:
state - The state of the Reserved Instances purchase.
Returns:
A reference to this updated object so that method calls can be chained together.

getTags

public List<Tag> getTags()
A list of tags for the ReservedInstances.

Returns:
A list of tags for the ReservedInstances.

setTags

public void setTags(Collection<Tag> tags)
A list of tags for the ReservedInstances.

Parameters:
tags - A list of tags for the ReservedInstances.

withTags

public ReservedInstances withTags(Tag... tags)
A list of tags for the ReservedInstances.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tags - A list of tags for the ReservedInstances.
Returns:
A reference to this updated object so that method calls can be chained together.

withTags

public ReservedInstances withTags(Collection<Tag> tags)
A list of tags for the ReservedInstances.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tags - A list of tags for the ReservedInstances.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceTenancy

public String getInstanceTenancy()
The tenancy of the reserved instance (ex: default or dedicated).

Returns:
The tenancy of the reserved instance (ex: default or dedicated).

setInstanceTenancy

public void setInstanceTenancy(String instanceTenancy)
The tenancy of the reserved instance (ex: default or dedicated).

Parameters:
instanceTenancy - The tenancy of the reserved instance (ex: default or dedicated).

withInstanceTenancy

public ReservedInstances withInstanceTenancy(String instanceTenancy)
The tenancy of the reserved instance (ex: default or dedicated).

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceTenancy - The tenancy of the reserved instance (ex: default or dedicated).
Returns:
A reference to this updated object so that method calls can be chained together.

getCurrencyCode

public String getCurrencyCode()
The currency of the reserved instance. Specified using ISO 4217 standard (e.g., USD, JPY).

Returns:
The currency of the reserved instance. Specified using ISO 4217 standard (e.g., USD, JPY).

setCurrencyCode

public void setCurrencyCode(String currencyCode)
The currency of the reserved instance. Specified using ISO 4217 standard (e.g., USD, JPY).

Parameters:
currencyCode - The currency of the reserved instance. Specified using ISO 4217 standard (e.g., USD, JPY).

withCurrencyCode

public ReservedInstances withCurrencyCode(String currencyCode)
The currency of the reserved instance. Specified using ISO 4217 standard (e.g., USD, JPY).

Returns a reference to this object so that method calls can be chained together.

Parameters:
currencyCode - The currency of the reserved instance. Specified using ISO 4217 standard (e.g., USD, JPY).
Returns:
A reference to this updated object so that method calls can be chained together.

getOfferingType

public String getOfferingType()
The Reserved Instance offering type.

Returns:
The Reserved Instance offering type.

setOfferingType

public void setOfferingType(String offeringType)
The Reserved Instance offering type.

Parameters:
offeringType - The Reserved Instance offering type.

withOfferingType

public ReservedInstances withOfferingType(String offeringType)
The Reserved Instance offering type.

Returns a reference to this object so that method calls can be chained together.

Parameters:
offeringType - The Reserved Instance offering type.
Returns:
A reference to this updated object so that method calls can be chained together.

getRecurringCharges

public List<RecurringCharge> getRecurringCharges()
The recurring charge tag assigned to the resource.

Returns:
The recurring charge tag assigned to the resource.

setRecurringCharges

public void setRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charge tag assigned to the resource.

Parameters:
recurringCharges - The recurring charge tag assigned to the resource.

withRecurringCharges

public ReservedInstances withRecurringCharges(RecurringCharge... recurringCharges)
The recurring charge tag assigned to the resource.

Returns a reference to this object so that method calls can be chained together.

Parameters:
recurringCharges - The recurring charge tag assigned to the resource.
Returns:
A reference to this updated object so that method calls can be chained together.

withRecurringCharges

public ReservedInstances withRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charge tag assigned to the resource.

Returns a reference to this object so that method calls can be chained together.

Parameters:
recurringCharges - The recurring charge tag assigned to the resource.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.