Class PurchaseReservedInstancesOfferingRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.PurchaseReservedInstancesOfferingRequest
-
- All Implemented Interfaces:
ReadLimitInfo,DryRunSupportedRequest<PurchaseReservedInstancesOfferingRequest>,Serializable,Cloneable
public class PurchaseReservedInstancesOfferingRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<PurchaseReservedInstancesOfferingRequest>
Contains the parameters for PurchaseReservedInstancesOffering.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description PurchaseReservedInstancesOfferingRequest()Default constructor for PurchaseReservedInstancesOfferingRequest object.PurchaseReservedInstancesOfferingRequest(String reservedInstancesOfferingId, Integer instanceCount)Constructs a new PurchaseReservedInstancesOfferingRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PurchaseReservedInstancesOfferingRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)Request<PurchaseReservedInstancesOfferingRequest>getDryRunRequest()This method is intended for internal use only.IntegergetInstanceCount()The number of Reserved Instances to purchase.ReservedInstanceLimitPricegetLimitPrice()Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.StringgetReservedInstancesOfferingId()The ID of the Reserved Instance offering to purchase.inthashCode()voidsetInstanceCount(Integer instanceCount)The number of Reserved Instances to purchase.voidsetLimitPrice(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.voidsetReservedInstancesOfferingId(String reservedInstancesOfferingId)The ID of the Reserved Instance offering to purchase.StringtoString()Returns a string representation of this object; useful for testing and debugging.PurchaseReservedInstancesOfferingRequestwithInstanceCount(Integer instanceCount)The number of Reserved Instances to purchase.PurchaseReservedInstancesOfferingRequestwithLimitPrice(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.PurchaseReservedInstancesOfferingRequestwithReservedInstancesOfferingId(String reservedInstancesOfferingId)The ID of the Reserved Instance offering to purchase.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Constructor Detail
-
PurchaseReservedInstancesOfferingRequest
public PurchaseReservedInstancesOfferingRequest()
Default constructor for PurchaseReservedInstancesOfferingRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
PurchaseReservedInstancesOfferingRequest
public PurchaseReservedInstancesOfferingRequest(String reservedInstancesOfferingId, Integer instanceCount)
Constructs a new PurchaseReservedInstancesOfferingRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
reservedInstancesOfferingId- The ID of the Reserved Instance offering to purchase.instanceCount- The number of Reserved Instances to purchase.
-
-
Method Detail
-
setReservedInstancesOfferingId
public void setReservedInstancesOfferingId(String reservedInstancesOfferingId)
The ID of the Reserved Instance offering to purchase.
- Parameters:
reservedInstancesOfferingId- The ID of the Reserved Instance offering to purchase.
-
getReservedInstancesOfferingId
public String getReservedInstancesOfferingId()
The ID of the Reserved Instance offering to purchase.
- Returns:
- The ID of the Reserved Instance offering to purchase.
-
withReservedInstancesOfferingId
public PurchaseReservedInstancesOfferingRequest withReservedInstancesOfferingId(String reservedInstancesOfferingId)
The ID of the Reserved Instance offering to purchase.
- Parameters:
reservedInstancesOfferingId- The ID of the Reserved Instance offering to purchase.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceCount
public void setInstanceCount(Integer instanceCount)
The number of Reserved Instances to purchase.
- Parameters:
instanceCount- The number of Reserved Instances to purchase.
-
getInstanceCount
public Integer getInstanceCount()
The number of Reserved Instances to purchase.
- Returns:
- The number of Reserved Instances to purchase.
-
withInstanceCount
public PurchaseReservedInstancesOfferingRequest withInstanceCount(Integer instanceCount)
The number of Reserved Instances to purchase.
- Parameters:
instanceCount- The number of Reserved Instances to purchase.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLimitPrice
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.
- Parameters:
limitPrice- Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.
-
getLimitPrice
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.
- Returns:
- Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.
-
withLimitPrice
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.
- Parameters:
limitPrice- Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
public Request<PurchaseReservedInstancesOfferingRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequestin interfaceDryRunSupportedRequest<PurchaseReservedInstancesOfferingRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PurchaseReservedInstancesOfferingRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-