public class DescribeSpotPriceHistoryRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<DescribeSpotPriceHistoryRequest>
DescribeSpotPriceHistory operation
.
Describes the Spot Price history. The prices returned are listed in chronological order, from the oldest to the most recent, for up to the past 90 days. For more information, see Spot Instance Pricing History in the Amazon Elastic Compute Cloud User Guide for Linux .
When you specify a start and end time, this operation returns the prices of the instance types within the time range that you specified and the time when the price changed. The price is valid within the time period that you specified; the response merely indicates the last time that the price changed.
NOOP
Constructor and Description |
---|
DescribeSpotPriceHistoryRequest() |
Modifier and Type | Method and Description |
---|---|
DescribeSpotPriceHistoryRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
Filters the results by the specified Availability Zone.
|
Request<DescribeSpotPriceHistoryRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Date |
getEndTime()
The date and time, up to the current date, from which to stop
retrieving the price history data.
|
List<Filter> |
getFilters()
One or more filters.
|
List<String> |
getInstanceTypes()
Filters the results by the specified instance types.
|
Integer |
getMaxResults()
The maximum number of results to return for the request in a single
page.
|
String |
getNextToken()
The token to retrieve the next page of results.
|
List<String> |
getProductDescriptions()
Filters the results by the specified basic product descriptions.
|
Date |
getStartTime()
The date and time, up to the past 90 days, from which to start
retrieving the price history data.
|
int |
hashCode() |
void |
setAvailabilityZone(String availabilityZone)
Filters the results by the specified Availability Zone.
|
void |
setEndTime(Date endTime)
The date and time, up to the current date, from which to stop
retrieving the price history data.
|
void |
setFilters(Collection<Filter> filters)
One or more filters.
|
void |
setInstanceTypes(Collection<String> instanceTypes)
Filters the results by the specified instance types.
|
void |
setMaxResults(Integer maxResults)
The maximum number of results to return for the request in a single
page.
|
void |
setNextToken(String nextToken)
The token to retrieve the next page of results.
|
void |
setProductDescriptions(Collection<String> productDescriptions)
Filters the results by the specified basic product descriptions.
|
void |
setStartTime(Date startTime)
The date and time, up to the past 90 days, from which to start
retrieving the price history data.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeSpotPriceHistoryRequest |
withAvailabilityZone(String availabilityZone)
Filters the results by the specified Availability Zone.
|
DescribeSpotPriceHistoryRequest |
withEndTime(Date endTime)
The date and time, up to the current date, from which to stop
retrieving the 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)
Filters the results by the specified instance types.
|
DescribeSpotPriceHistoryRequest |
withInstanceTypes(InstanceType... instanceTypes)
Filters the results by the specified instance types.
|
DescribeSpotPriceHistoryRequest |
withInstanceTypes(String... instanceTypes)
Filters the results by the specified instance types.
|
DescribeSpotPriceHistoryRequest |
withMaxResults(Integer maxResults)
The maximum number of results to return for the request in a single
page.
|
DescribeSpotPriceHistoryRequest |
withNextToken(String nextToken)
The token to retrieve the next page of results.
|
DescribeSpotPriceHistoryRequest |
withProductDescriptions(Collection<String> productDescriptions)
Filters the results by the specified basic product descriptions.
|
DescribeSpotPriceHistoryRequest |
withProductDescriptions(String... productDescriptions)
Filters the results by the specified basic product descriptions.
|
DescribeSpotPriceHistoryRequest |
withStartTime(Date startTime)
The date and time, up to the past 90 days, from which to start
retrieving the price history data.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public Date getStartTime()
public void setStartTime(Date startTime)
startTime
- The date and time, up to the past 90 days, from which to start
retrieving the price history data.public DescribeSpotPriceHistoryRequest withStartTime(Date startTime)
Returns a reference to this object so that method calls can be chained together.
startTime
- The date and time, up to the past 90 days, from which to start
retrieving the price history data.public Date getEndTime()
public void setEndTime(Date endTime)
endTime
- The date and time, up to the current date, from which to stop
retrieving the price history data.public DescribeSpotPriceHistoryRequest withEndTime(Date endTime)
Returns a reference to this object so that method calls can be chained together.
endTime
- The date and time, up to the current date, from which to stop
retrieving the price history data.public List<String> getInstanceTypes()
public void setInstanceTypes(Collection<String> instanceTypes)
instanceTypes
- Filters the results by the specified instance types.public DescribeSpotPriceHistoryRequest withInstanceTypes(String... instanceTypes)
Returns a reference to this object so that method calls can be chained together.
instanceTypes
- Filters the results by the specified instance types.public DescribeSpotPriceHistoryRequest withInstanceTypes(Collection<String> instanceTypes)
Returns a reference to this object so that method calls can be chained together.
instanceTypes
- Filters the results by the specified instance types.public DescribeSpotPriceHistoryRequest withInstanceTypes(InstanceType... instanceTypes)
Returns a reference to this object so that method calls can be chained together.
instanceTypes
- Filters the results by the specified instance types.public List<String> getProductDescriptions()
public void setProductDescriptions(Collection<String> productDescriptions)
productDescriptions
- Filters the results by the specified basic product descriptions.public DescribeSpotPriceHistoryRequest withProductDescriptions(String... productDescriptions)
Returns a reference to this object so that method calls can be chained together.
productDescriptions
- Filters the results by the specified basic product descriptions.public DescribeSpotPriceHistoryRequest withProductDescriptions(Collection<String> productDescriptions)
Returns a reference to this object so that method calls can be chained together.
productDescriptions
- Filters the results by the specified 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
- Filters the results by the specified Availability Zone.public DescribeSpotPriceHistoryRequest withAvailabilityZone(String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- Filters the results by the specified Availability Zone.public Integer getMaxResults()
NextToken
value. This value can be between 5 and 1000; if
MaxResults
is given a value larger than 1000, only 1000
results are returned.NextToken
value. This value can be between 5 and 1000; if
MaxResults
is given a value larger than 1000, only 1000
results are returned.public void setMaxResults(Integer maxResults)
NextToken
value. This value can be between 5 and 1000; if
MaxResults
is given a value larger than 1000, only 1000
results are returned.maxResults
- The maximum number of results to return for the request in a single
page. The remaining results of the initial request can be seen by
sending another request with the returned NextToken
value. This value can be between 5 and 1000; if
MaxResults
is given a value larger than 1000, only 1000
results are returned.public DescribeSpotPriceHistoryRequest withMaxResults(Integer maxResults)
NextToken
value. This value can be between 5 and 1000; if
MaxResults
is given a value larger than 1000, only 1000
results are returned.
Returns a reference to this object so that method calls can be chained together.
maxResults
- The maximum number of results to return for the request in a single
page. The remaining results of the initial request can be seen by
sending another request with the returned NextToken
value. This value can be between 5 and 1000; if
MaxResults
is given a value larger than 1000, only 1000
results are returned.public String getNextToken()
public void setNextToken(String nextToken)
nextToken
- The token to retrieve the next page of results.public DescribeSpotPriceHistoryRequest withNextToken(String nextToken)
Returns a reference to this object so that method calls can be chained together.
nextToken
- The token to retrieve the next page of results.public Request<DescribeSpotPriceHistoryRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DescribeSpotPriceHistoryRequest>
public String toString()
toString
in class Object
Object.toString()
public DescribeSpotPriceHistoryRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.