public class PurchaseReservedInstancesOfferingRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<PurchaseReservedInstancesOfferingRequest>
PurchaseReservedInstancesOffering operation
.
Purchases a Reserved Instance for use with your account. With Amazon EC2 Reserved Instances, you obtain a capacity reservation for a certain instance configuration over a specified period of time. You pay a lower usage rate than with On-Demand instances for the time that you actually use the capacity reservation.
Use DescribeReservedInstancesOfferings to get a list of Reserved Instance offerings that match your specifications. After you've purchased a Reserved Instance, you can check for your new Reserved Instance with DescribeReservedInstances.
For more information, see Reserved Instances and Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide for Linux .
NOOP
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 |
---|---|
PurchaseReservedInstancesOfferingRequest |
clone() |
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()
Specified for Reserved Instance Marketplace offerings to limit the
total order and ensure that the Reserved Instances are not purchased
at unexpected prices.
|
String |
getReservedInstancesOfferingId()
The ID of the Reserved Instance offering to purchase.
|
int |
hashCode() |
void |
setInstanceCount(Integer instanceCount)
The number of Reserved Instances to purchase.
|
void |
setLimitPrice(ReservedInstanceLimitPrice limitPrice)
Specified for Reserved Instance Marketplace offerings to limit the
total order and ensure that the Reserved Instances are not purchased
at unexpected prices.
|
void |
setReservedInstancesOfferingId(String reservedInstancesOfferingId)
The ID of the Reserved Instance offering to purchase.
|
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)
Specified for Reserved Instance Marketplace offerings to limit the
total order and ensure that the Reserved Instances are not purchased
at unexpected prices.
|
PurchaseReservedInstancesOfferingRequest |
withReservedInstancesOfferingId(String reservedInstancesOfferingId)
The ID of the Reserved Instance offering to purchase.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public PurchaseReservedInstancesOfferingRequest()
public PurchaseReservedInstancesOfferingRequest(String reservedInstancesOfferingId, Integer instanceCount)
reservedInstancesOfferingId
- The ID of the Reserved Instance
offering to purchase.instanceCount
- The number of Reserved Instances to purchase.public String getReservedInstancesOfferingId()
public void setReservedInstancesOfferingId(String reservedInstancesOfferingId)
reservedInstancesOfferingId
- The ID of the Reserved Instance offering to purchase.public PurchaseReservedInstancesOfferingRequest withReservedInstancesOfferingId(String reservedInstancesOfferingId)
Returns a reference to this object so that method calls can be chained together.
reservedInstancesOfferingId
- The ID of the Reserved Instance offering to purchase.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
- Specified for Reserved Instance Marketplace offerings to limit the
total order and ensure that the Reserved Instances are not purchased
at unexpected prices.public PurchaseReservedInstancesOfferingRequest withLimitPrice(ReservedInstanceLimitPrice limitPrice)
Returns a reference to this object so that method calls can be chained together.
limitPrice
- Specified for Reserved Instance Marketplace offerings to limit the
total order and ensure that the Reserved Instances are not purchased
at unexpected prices.public Request<PurchaseReservedInstancesOfferingRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<PurchaseReservedInstancesOfferingRequest>
public String toString()
toString
in class Object
Object.toString()
public PurchaseReservedInstancesOfferingRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2015. All rights reserved.