public class PurchaseReservedInstancesOfferingRequest extends AmazonWebServiceRequest implements Serializable, 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.
For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide .
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 |
---|---|
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.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, 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()
Copyright © 2014. All rights reserved.