|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.PurchaseReservedInstancesOfferingRequest
public class PurchaseReservedInstancesOfferingRequest
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.
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 |
---|
public PurchaseReservedInstancesOfferingRequest()
public PurchaseReservedInstancesOfferingRequest(String reservedInstancesOfferingId, Integer instanceCount)
reservedInstancesOfferingId
- The unique ID of the Reserved
Instances offering being purchased.instanceCount
- The number of Reserved Instances to purchase.Method Detail |
---|
public String getReservedInstancesOfferingId()
public void setReservedInstancesOfferingId(String reservedInstancesOfferingId)
reservedInstancesOfferingId
- The unique ID of the Reserved Instances offering being purchased.public PurchaseReservedInstancesOfferingRequest withReservedInstancesOfferingId(String reservedInstancesOfferingId)
Returns a reference to this object so that method calls can be chained together.
reservedInstancesOfferingId
- The unique ID of the Reserved Instances offering being purchased.
public Integer getInstanceCount()
public void setInstanceCount(Integer instanceCount)
instanceCount
- The number of Reserved Instances to purchase.public PurchaseReservedInstancesOfferingRequest withInstanceCount(Integer instanceCount)
Returns a reference to this object so that method calls can be chained together.
instanceCount
- The number of Reserved Instances to purchase.
public ReservedInstanceLimitPrice getLimitPrice()
public void setLimitPrice(ReservedInstanceLimitPrice limitPrice)
limitPrice
- The new value for the LimitPrice property for this object.public PurchaseReservedInstancesOfferingRequest withLimitPrice(ReservedInstanceLimitPrice limitPrice)
Returns a reference to this object so that method calls can be chained together.
limitPrice
- The new value for the LimitPrice property for this object.
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 |