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
 String getAvailabilityZone()
          The Availability Zone in which the Reserved Instances can be used.
 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 getInstanceType()
          The instance type on which the Reserved Instances can be used.
 String getProductDescription()
          The Reserved Instances product description (ex: Windows or Unix/Linux).
 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.
 Float getUsagePrice()
          The usage price of the Reserved Instances, per hour.
 void setAvailabilityZone(String availabilityZone)
          The Availability Zone in which the Reserved Instances can be used.
 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 setInstanceType(String instanceType)
          The instance type on which the Reserved Instances can be used.
 void setProductDescription(String productDescription)
          The Reserved Instances product description (ex: Windows or Unix/Linux).
 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 setUsagePrice(Float usagePrice)
          The usage price of the Reserved Instances, per hour.
 String toString()
           
 ReservedInstances withAvailabilityZone(String availabilityZone)
          The Availability Zone in which the Reserved Instances can be used.
 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 withInstanceType(String instanceType)
          The instance type on which the Reserved Instances can be used.
 ReservedInstances withProductDescription(String productDescription)
          The Reserved Instances product description (ex: Windows or Unix/Linux).
 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 withUsagePrice(Float usagePrice)
          The usage price of the Reserved Instances, per hour.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, 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: m1.small, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge

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: m1.small, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge

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: m1.small, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge

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.

toString

public String toString()
Overrides:
toString in class Object


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