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 PurchaseReservedInstancesOfferingRequest
clone()
Creates a shallow clone of this request.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.-
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:
getDryRunRequest
in interfaceDryRunSupportedRequest<PurchaseReservedInstancesOfferingRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PurchaseReservedInstancesOfferingRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-