public class DescribeSpotPriceHistoryRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<DescribeSpotPriceHistoryRequest>
DescribeSpotPriceHistory operation
.
Describes the Spot Price history. Spot Instances are instances that Amazon EC2 starts on your behalf when the maximum price that you specify exceeds the current Spot Price. Amazon EC2 periodically sets the Spot Price based on available Spot Instance capacity and current Spot Instance requests. For more information about Spot Instances, see Spot Instances in the Amazon Elastic Compute Cloud User Guide .
When you specify an Availability Zone, this operation describes the price history for the specified Availability Zone with the most recent set of prices listed first. If you don't specify an Availability Zone, you get the prices across all Availability Zones, starting with the most recent set. However, if you're using an API version earlier than 2011-05-15, you get the lowest price across the region for the specified time period. The prices returned are listed in chronological order, from the oldest to the most recent.
NOOP
Constructor and Description |
---|
DescribeSpotPriceHistoryRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
The Availability Zone.
|
Request<DescribeSpotPriceHistoryRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Date |
getEndTime()
The end date and time of the Spot Price history data.
|
List<Filter> |
getFilters()
One or more filters.
|
List<String> |
getInstanceTypes()
One or more instance types.
|
Integer |
getMaxResults()
The number of rows to return.
|
String |
getNextToken()
The next set of rows to return.
|
List<String> |
getProductDescriptions()
One or more basic product descriptions.
|
Date |
getStartTime()
The start date and time of the Spot Price history data.
|
int |
hashCode() |
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone.
|
void |
setEndTime(Date endTime)
The end date and time of the Spot Price history data.
|
void |
setFilters(Collection<Filter> filters)
One or more filters.
|
void |
setInstanceTypes(Collection<String> instanceTypes)
One or more instance types.
|
void |
setMaxResults(Integer maxResults)
The number of rows to return.
|
void |
setNextToken(String nextToken)
The next set of rows to return.
|
void |
setProductDescriptions(Collection<String> productDescriptions)
One or more basic product descriptions.
|
void |
setStartTime(Date startTime)
The start date and time of the Spot Price history data.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeSpotPriceHistoryRequest |
withAvailabilityZone(String availabilityZone)
The Availability Zone.
|
DescribeSpotPriceHistoryRequest |
withEndTime(Date endTime)
The end date and time of the Spot Price history data.
|
DescribeSpotPriceHistoryRequest |
withFilters(Collection<Filter> filters)
One or more filters.
|
DescribeSpotPriceHistoryRequest |
withFilters(Filter... filters)
One or more filters.
|
DescribeSpotPriceHistoryRequest |
withInstanceTypes(Collection<String> instanceTypes)
One or more instance types.
|
DescribeSpotPriceHistoryRequest |
withInstanceTypes(InstanceType... instanceTypes)
One or more instance types.
|
DescribeSpotPriceHistoryRequest |
withInstanceTypes(String... instanceTypes)
One or more instance types.
|
DescribeSpotPriceHistoryRequest |
withMaxResults(Integer maxResults)
The number of rows to return.
|
DescribeSpotPriceHistoryRequest |
withNextToken(String nextToken)
The next set of rows to return.
|
DescribeSpotPriceHistoryRequest |
withProductDescriptions(Collection<String> productDescriptions)
One or more basic product descriptions.
|
DescribeSpotPriceHistoryRequest |
withProductDescriptions(String... productDescriptions)
One or more basic product descriptions.
|
DescribeSpotPriceHistoryRequest |
withStartTime(Date startTime)
The start date and time of the Spot Price history data.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public Date getStartTime()
public void setStartTime(Date startTime)
startTime
- The start date and time of the Spot Price history data.public DescribeSpotPriceHistoryRequest withStartTime(Date startTime)
Returns a reference to this object so that method calls can be chained together.
startTime
- The start date and time of the Spot Price history data.public Date getEndTime()
public void setEndTime(Date endTime)
endTime
- The end date and time of the Spot Price history data.public DescribeSpotPriceHistoryRequest withEndTime(Date endTime)
Returns a reference to this object so that method calls can be chained together.
endTime
- The end date and time of the Spot Price history data.public List<String> getInstanceTypes()
public void setInstanceTypes(Collection<String> instanceTypes)
instanceTypes
- One or more instance types.public DescribeSpotPriceHistoryRequest withInstanceTypes(String... instanceTypes)
Returns a reference to this object so that method calls can be chained together.
instanceTypes
- One or more instance types.public DescribeSpotPriceHistoryRequest withInstanceTypes(Collection<String> instanceTypes)
Returns a reference to this object so that method calls can be chained together.
instanceTypes
- One or more instance types.public DescribeSpotPriceHistoryRequest withInstanceTypes(InstanceType... instanceTypes)
Returns a reference to this object so that method calls can be chained together.
instanceTypes
- One or more instance types.public List<String> getProductDescriptions()
public void setProductDescriptions(Collection<String> productDescriptions)
productDescriptions
- One or more basic product descriptions.public DescribeSpotPriceHistoryRequest withProductDescriptions(String... productDescriptions)
Returns a reference to this object so that method calls can be chained together.
productDescriptions
- One or more basic product descriptions.public DescribeSpotPriceHistoryRequest withProductDescriptions(Collection<String> productDescriptions)
Returns a reference to this object so that method calls can be chained together.
productDescriptions
- One or more basic product descriptions.public List<Filter> getFilters()
availability-zone
- The
Availability Zone for which prices should be returned.
instance-type
- The type of instance (for example,
m1.small
).
product-description
- The product description for the Spot Price (Linux/UNIX
| SUSE Linux
| Windows
| Linux/UNIX
(Amazon VPC)
| SUSE Linux (Amazon VPC)
|
Windows (Amazon VPC)
).
spot-price
- The Spot Price. The value must match
exactly (or use wildcards; greater than or less than comparison is not
supported).
timestamp
- The timestamp of
the Spot Price history (for example, 2010-08-16T05:06:11.000Z). You
can use wildcards (* and ?). Greater than or less than comparison is
not supported.
availability-zone
- The
Availability Zone for which prices should be returned.
instance-type
- The type of instance (for example,
m1.small
).
product-description
- The product description for the Spot Price (Linux/UNIX
| SUSE Linux
| Windows
| Linux/UNIX
(Amazon VPC)
| SUSE Linux (Amazon VPC)
|
Windows (Amazon VPC)
).
spot-price
- The Spot Price. The value must match
exactly (or use wildcards; greater than or less than comparison is not
supported).
timestamp
- The timestamp of
the Spot Price history (for example, 2010-08-16T05:06:11.000Z). You
can use wildcards (* and ?). Greater than or less than comparison is
not supported.
public void setFilters(Collection<Filter> filters)
availability-zone
- The
Availability Zone for which prices should be returned.
instance-type
- The type of instance (for example,
m1.small
).
product-description
- The product description for the Spot Price (Linux/UNIX
| SUSE Linux
| Windows
| Linux/UNIX
(Amazon VPC)
| SUSE Linux (Amazon VPC)
|
Windows (Amazon VPC)
).
spot-price
- The Spot Price. The value must match
exactly (or use wildcards; greater than or less than comparison is not
supported).
timestamp
- The timestamp of
the Spot Price history (for example, 2010-08-16T05:06:11.000Z). You
can use wildcards (* and ?). Greater than or less than comparison is
not supported.
filters
- One or more filters. availability-zone
- The
Availability Zone for which prices should be returned.
instance-type
- The type of instance (for example,
m1.small
).
product-description
- The product description for the Spot Price (Linux/UNIX
| SUSE Linux
| Windows
| Linux/UNIX
(Amazon VPC)
| SUSE Linux (Amazon VPC)
|
Windows (Amazon VPC)
).
spot-price
- The Spot Price. The value must match
exactly (or use wildcards; greater than or less than comparison is not
supported).
timestamp
- The timestamp of
the Spot Price history (for example, 2010-08-16T05:06:11.000Z). You
can use wildcards (* and ?). Greater than or less than comparison is
not supported.
public DescribeSpotPriceHistoryRequest withFilters(Filter... filters)
availability-zone
- The
Availability Zone for which prices should be returned.
instance-type
- The type of instance (for example,
m1.small
).
product-description
- The product description for the Spot Price (Linux/UNIX
| SUSE Linux
| Windows
| Linux/UNIX
(Amazon VPC)
| SUSE Linux (Amazon VPC)
|
Windows (Amazon VPC)
).
spot-price
- The Spot Price. The value must match
exactly (or use wildcards; greater than or less than comparison is not
supported).
timestamp
- The timestamp of
the Spot Price history (for example, 2010-08-16T05:06:11.000Z). You
can use wildcards (* and ?). Greater than or less than comparison is
not supported.
Returns a reference to this object so that method calls can be chained together.
filters
- One or more filters. availability-zone
- The
Availability Zone for which prices should be returned.
instance-type
- The type of instance (for example,
m1.small
).
product-description
- The product description for the Spot Price (Linux/UNIX
| SUSE Linux
| Windows
| Linux/UNIX
(Amazon VPC)
| SUSE Linux (Amazon VPC)
|
Windows (Amazon VPC)
).
spot-price
- The Spot Price. The value must match
exactly (or use wildcards; greater than or less than comparison is not
supported).
timestamp
- The timestamp of
the Spot Price history (for example, 2010-08-16T05:06:11.000Z). You
can use wildcards (* and ?). Greater than or less than comparison is
not supported.
public DescribeSpotPriceHistoryRequest withFilters(Collection<Filter> filters)
availability-zone
- The
Availability Zone for which prices should be returned.
instance-type
- The type of instance (for example,
m1.small
).
product-description
- The product description for the Spot Price (Linux/UNIX
| SUSE Linux
| Windows
| Linux/UNIX
(Amazon VPC)
| SUSE Linux (Amazon VPC)
|
Windows (Amazon VPC)
).
spot-price
- The Spot Price. The value must match
exactly (or use wildcards; greater than or less than comparison is not
supported).
timestamp
- The timestamp of
the Spot Price history (for example, 2010-08-16T05:06:11.000Z). You
can use wildcards (* and ?). Greater than or less than comparison is
not supported.
Returns a reference to this object so that method calls can be chained together.
filters
- One or more filters. availability-zone
- The
Availability Zone for which prices should be returned.
instance-type
- The type of instance (for example,
m1.small
).
product-description
- The product description for the Spot Price (Linux/UNIX
| SUSE Linux
| Windows
| Linux/UNIX
(Amazon VPC)
| SUSE Linux (Amazon VPC)
|
Windows (Amazon VPC)
).
spot-price
- The Spot Price. The value must match
exactly (or use wildcards; greater than or less than comparison is not
supported).
timestamp
- The timestamp of
the Spot Price history (for example, 2010-08-16T05:06:11.000Z). You
can use wildcards (* and ?). Greater than or less than comparison is
not supported.
public String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
availabilityZone
- The Availability Zone.public DescribeSpotPriceHistoryRequest withAvailabilityZone(String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- The Availability Zone.public Integer getMaxResults()
public void setMaxResults(Integer maxResults)
maxResults
- The number of rows to return.public DescribeSpotPriceHistoryRequest withMaxResults(Integer maxResults)
Returns a reference to this object so that method calls can be chained together.
maxResults
- The number of rows to return.public String getNextToken()
public void setNextToken(String nextToken)
nextToken
- The next set of rows to return.public DescribeSpotPriceHistoryRequest withNextToken(String nextToken)
Returns a reference to this object so that method calls can be chained together.
nextToken
- The next set of rows to return.public Request<DescribeSpotPriceHistoryRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DescribeSpotPriceHistoryRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.