public class PurchaseReservedInstancesOfferingRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<PurchaseReservedInstancesOfferingRequest>
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.
Constructor and Description |
---|
PurchaseReservedInstancesOfferingRequest()
Default constructor for a new PurchaseReservedInstancesOfferingRequest object.
|
PurchaseReservedInstancesOfferingRequest(String reservedInstancesOfferingId,
Integer instanceCount)
Constructs a new PurchaseReservedInstancesOfferingRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Request<PurchaseReservedInstancesOfferingRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
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.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
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.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 Request<PurchaseReservedInstancesOfferingRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<PurchaseReservedInstancesOfferingRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.