Class PurchaseReservedInstancesOfferingRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<PurchaseReservedInstancesOfferingRequest>
,Serializable
,Cloneable
Contains the parameters for PurchaseReservedInstancesOffering.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for PurchaseReservedInstancesOfferingRequest object.PurchaseReservedInstancesOfferingRequest
(String reservedInstancesOfferingId, Integer instanceCount) Constructs a new PurchaseReservedInstancesOfferingRequest object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
This method is intended for internal use only.The number of Reserved Instances to purchase.Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.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.toString()
Returns a string representation of this object; useful for testing and debugging.withInstanceCount
(Integer instanceCount) The number of Reserved Instances to purchase.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.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 Details
-
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 Details
-
setReservedInstancesOfferingId
The ID of the Reserved Instance offering to purchase.
- Parameters:
reservedInstancesOfferingId
- The ID of the Reserved Instance offering to purchase.
-
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
The number of Reserved Instances to purchase.
- Parameters:
instanceCount
- The number of Reserved Instances to purchase.
-
getInstanceCount
The number of Reserved Instances to purchase.
- Returns:
- The number of Reserved Instances to purchase.
-
withInstanceCount
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
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:
-