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

Container for the parameters to the PurchaseReservedInstancesOffering operation.

The PurchaseReservedInstancesOffering operation 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.

See Also:
AmazonEC2.purchaseReservedInstancesOffering(PurchaseReservedInstancesOfferingRequest)

Constructor Summary
PurchaseReservedInstancesOfferingRequest()
          Default constructor for a new PurchaseReservedInstancesOfferingRequest object.
PurchaseReservedInstancesOfferingRequest(String reservedInstancesOfferingId, Integer instanceCount)
          Constructs a new PurchaseReservedInstancesOfferingRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 Integer getInstanceCount()
          The number of Reserved Instances to purchase.
 ReservedInstanceLimitPrice getLimitPrice()
          Returns the value of the LimitPrice property for this object.
 String getReservedInstancesOfferingId()
          The unique ID of the Reserved Instances offering being purchased.
 int hashCode()
           
 void setInstanceCount(Integer instanceCount)
          The number of Reserved Instances to purchase.
 void setLimitPrice(ReservedInstanceLimitPrice limitPrice)
          Sets the value of the LimitPrice property for this object.
 void setReservedInstancesOfferingId(String reservedInstancesOfferingId)
          The unique ID of the Reserved Instances offering being purchased.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 PurchaseReservedInstancesOfferingRequest withInstanceCount(Integer instanceCount)
          The number of Reserved Instances to purchase.
 PurchaseReservedInstancesOfferingRequest withLimitPrice(ReservedInstanceLimitPrice limitPrice)
          Sets the value of the LimitPrice property for this object.
 PurchaseReservedInstancesOfferingRequest withReservedInstancesOfferingId(String reservedInstancesOfferingId)
          The unique ID of the Reserved Instances offering being purchased.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PurchaseReservedInstancesOfferingRequest

public PurchaseReservedInstancesOfferingRequest()
Default constructor for a new PurchaseReservedInstancesOfferingRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


PurchaseReservedInstancesOfferingRequest

public PurchaseReservedInstancesOfferingRequest(String reservedInstancesOfferingId,
                                                Integer instanceCount)
Constructs a new PurchaseReservedInstancesOfferingRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
reservedInstancesOfferingId - The unique ID of the Reserved Instances offering being purchased.
instanceCount - The number of Reserved Instances to purchase.
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()
The number of Reserved Instances to purchase.

Returns:
The number of Reserved Instances to purchase.

setInstanceCount

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

Parameters:
instanceCount - The number of Reserved Instances to purchase.

withInstanceCount

public PurchaseReservedInstancesOfferingRequest withInstanceCount(Integer instanceCount)
The number of Reserved Instances to purchase.

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

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

getLimitPrice

public ReservedInstanceLimitPrice getLimitPrice()
Returns the value of the LimitPrice property for this object.

Returns:
The value of the LimitPrice property for this object.

setLimitPrice

public void setLimitPrice(ReservedInstanceLimitPrice limitPrice)
Sets the value of the LimitPrice property for this object.

Parameters:
limitPrice - The new value for the LimitPrice property for this object.

withLimitPrice

public PurchaseReservedInstancesOfferingRequest withLimitPrice(ReservedInstanceLimitPrice limitPrice)
Sets the value of the LimitPrice property for this object.

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

Parameters:
limitPrice - The new value for the LimitPrice property for this object.
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.