public class PurchaseReservedInstancesOfferingRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<PurchaseReservedInstancesOfferingRequest>
Contains the parameters for PurchaseReservedInstancesOffering.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
instanceCount
The number of Reserved Instances to purchase.
|
private 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.
|
private java.lang.String |
reservedInstancesOfferingId
The ID of the Reserved Instance offering to purchase.
|
NOOP
Constructor and Description |
---|
PurchaseReservedInstancesOfferingRequest()
Default constructor for PurchaseReservedInstancesOfferingRequest object.
|
PurchaseReservedInstancesOfferingRequest(java.lang.String reservedInstancesOfferingId,
java.lang.Integer instanceCount)
Constructs a new PurchaseReservedInstancesOfferingRequest object.
|
Modifier and Type | Method and Description |
---|---|
PurchaseReservedInstancesOfferingRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
Request<PurchaseReservedInstancesOfferingRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.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.
|
java.lang.String |
getReservedInstancesOfferingId()
The ID of the Reserved Instance offering to purchase.
|
int |
hashCode() |
void |
setInstanceCount(java.lang.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(java.lang.String reservedInstancesOfferingId)
The ID of the Reserved Instance offering to purchase.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PurchaseReservedInstancesOfferingRequest |
withInstanceCount(java.lang.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(java.lang.String reservedInstancesOfferingId)
The ID of the Reserved Instance offering to purchase.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String reservedInstancesOfferingId
The ID of the Reserved Instance offering to purchase.
private java.lang.Integer instanceCount
The number of Reserved Instances to purchase.
private 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.
public PurchaseReservedInstancesOfferingRequest()
public PurchaseReservedInstancesOfferingRequest(java.lang.String reservedInstancesOfferingId, java.lang.Integer instanceCount)
reservedInstancesOfferingId
- The ID of the Reserved Instance offering to purchase.instanceCount
- The number of Reserved Instances to purchase.public void setReservedInstancesOfferingId(java.lang.String reservedInstancesOfferingId)
The ID of the Reserved Instance offering to purchase.
reservedInstancesOfferingId
- The ID of the Reserved Instance offering to purchase.public java.lang.String getReservedInstancesOfferingId()
The ID of the Reserved Instance offering to purchase.
public PurchaseReservedInstancesOfferingRequest withReservedInstancesOfferingId(java.lang.String reservedInstancesOfferingId)
The ID of the Reserved Instance offering to purchase.
reservedInstancesOfferingId
- The ID of the Reserved Instance offering to purchase.public void setInstanceCount(java.lang.Integer instanceCount)
The number of Reserved Instances to purchase.
instanceCount
- The number of Reserved Instances to purchase.public java.lang.Integer getInstanceCount()
The number of Reserved Instances to purchase.
public PurchaseReservedInstancesOfferingRequest withInstanceCount(java.lang.Integer instanceCount)
The number of Reserved Instances to purchase.
instanceCount
- The number of Reserved Instances to purchase.public 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.
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 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.
public 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.
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PurchaseReservedInstancesOfferingRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()