com.amazonaws.services.ec2.model
Class PurchaseReservedInstancesOfferingRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.PurchaseReservedInstancesOfferingRequest

public class PurchaseReservedInstancesOfferingRequest
extends AmazonWebServiceRequest

Purchases a Reserved Instance for use with your account.

With Amazon EC2 Reserved Instances, you purchase the right to launch Amazon EC2 instances for a period of time (without getting insufficient capacity errors) and pay a lower usage rate for the actual time used.


Constructor Summary
PurchaseReservedInstancesOfferingRequest()
           
 
Method Summary
 Integer getInstanceCount()
           
 String getReservedInstancesOfferingId()
          The unique ID of the Reserved Instances offering being purchased.
 void setInstanceCount(Integer instanceCount)
           
 void setReservedInstancesOfferingId(String reservedInstancesOfferingId)
          The unique ID of the Reserved Instances offering being purchased.
 PurchaseReservedInstancesOfferingRequest withInstanceCount(Integer instanceCount)
           Returns a reference to this object so that method calls can be chained together.
 PurchaseReservedInstancesOfferingRequest withReservedInstancesOfferingId(String reservedInstancesOfferingId)
          The unique ID of the Reserved Instances offering being purchased.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PurchaseReservedInstancesOfferingRequest

public PurchaseReservedInstancesOfferingRequest()
Method Detail

getReservedInstancesOfferingId

public String getReservedInstancesOfferingId()
The unique ID of the Reserved Instances offering being purchased.

Returns:
The unique ID of the Reserved Instances offering being purchased.

setReservedInstancesOfferingId

public void setReservedInstancesOfferingId(String reservedInstancesOfferingId)
The unique ID of the Reserved Instances offering being purchased.

Parameters:
reservedInstancesOfferingId - The unique ID of the Reserved Instances offering being purchased.

withReservedInstancesOfferingId

public PurchaseReservedInstancesOfferingRequest withReservedInstancesOfferingId(String reservedInstancesOfferingId)
The unique ID of the Reserved Instances offering being purchased.

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

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

getInstanceCount

public Integer getInstanceCount()
Returns:

setInstanceCount

public void setInstanceCount(Integer instanceCount)
Parameters:
instanceCount -

withInstanceCount

public PurchaseReservedInstancesOfferingRequest withInstanceCount(Integer instanceCount)

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

Parameters:
instanceCount -
Returns:
A reference to this updated object so that method calls can be chained together.


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