@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PurchaseReservedInstancesOfferingRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<PurchaseReservedInstancesOfferingRequest>
Contains the parameters for PurchaseReservedInstancesOffering.
NOOP
Constructor and Description |
---|
PurchaseReservedInstancesOfferingRequest()
Default constructor for PurchaseReservedInstancesOfferingRequest object.
|
PurchaseReservedInstancesOfferingRequest(String reservedInstancesOfferingId,
Integer instanceCount)
Constructs a new PurchaseReservedInstancesOfferingRequest object.
|
Modifier and Type | Method and Description |
---|---|
PurchaseReservedInstancesOfferingRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
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.
|
Date |
getPurchaseTime()
The time at which to purchase the Reserved Instance, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
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 |
setPurchaseTime(Date purchaseTime)
The time at which to purchase the Reserved Instance, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
void |
setReservedInstancesOfferingId(String reservedInstancesOfferingId)
The ID of the Reserved Instance offering to purchase.
|
String |
toString()
Returns a string representation of this object.
|
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 |
withPurchaseTime(Date purchaseTime)
The time at which to purchase the Reserved Instance, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
PurchaseReservedInstancesOfferingRequest |
withReservedInstancesOfferingId(String reservedInstancesOfferingId)
The ID of the Reserved Instance offering to purchase.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
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 void setInstanceCount(Integer instanceCount)
The number of Reserved Instances to purchase.
instanceCount
- The number of Reserved Instances to purchase.public Integer getInstanceCount()
The number of Reserved Instances to purchase.
public PurchaseReservedInstancesOfferingRequest withInstanceCount(Integer instanceCount)
The number of Reserved Instances to purchase.
instanceCount
- The number of Reserved Instances to purchase.public void setReservedInstancesOfferingId(String reservedInstancesOfferingId)
The ID of the Reserved Instance offering to purchase.
reservedInstancesOfferingId
- The ID of the Reserved Instance offering to purchase.public String getReservedInstancesOfferingId()
The ID of the Reserved Instance offering to purchase.
public PurchaseReservedInstancesOfferingRequest withReservedInstancesOfferingId(String reservedInstancesOfferingId)
The ID of the Reserved Instance offering to purchase.
reservedInstancesOfferingId
- The ID of the Reserved Instance offering 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 void setPurchaseTime(Date purchaseTime)
The time at which to purchase the Reserved Instance, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
purchaseTime
- The time at which to purchase the Reserved Instance, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).public Date getPurchaseTime()
The time at which to purchase the Reserved Instance, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
public PurchaseReservedInstancesOfferingRequest withPurchaseTime(Date purchaseTime)
The time at which to purchase the Reserved Instance, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
purchaseTime
- The time at which to purchase the Reserved Instance, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).public Request<PurchaseReservedInstancesOfferingRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<PurchaseReservedInstancesOfferingRequest>
public String toString()
toString
in class Object
Object.toString()
public PurchaseReservedInstancesOfferingRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()