Class DescribeSpotPriceHistoryRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<DescribeSpotPriceHistoryRequest>
,Serializable
,Cloneable
Contains the parameters for DescribeSpotPriceHistory.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
Filters the results by the specified Availability Zone.This method is intended for internal use only.The date and time, up to the current date, from which to stop retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).One or more filters.Filters the results by the specified instance types.The maximum number of results to return in a single call.The token for the next set of results.Filters the results by the specified basic product descriptions.The date and time, up to the past 90 days, from which to start retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).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, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).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 in a single call.void
setNextToken
(String nextToken) The token for the next set 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, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).toString()
Returns a string representation of this object; useful for testing and debugging.withAvailabilityZone
(String availabilityZone) Filters the results by the specified Availability Zone.withEndTime
(Date endTime) The date and time, up to the current date, from which to stop retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).withFilters
(Filter... filters) One or more filters.withFilters
(Collection<Filter> filters) One or more filters.withInstanceTypes
(InstanceType... instanceTypes) Filters the results by the specified instance types.withInstanceTypes
(String... instanceTypes) Filters the results by the specified instance types.withInstanceTypes
(Collection<String> instanceTypes) Filters the results by the specified instance types.withMaxResults
(Integer maxResults) The maximum number of results to return in a single call.withNextToken
(String nextToken) The token for the next set of results.withProductDescriptions
(String... productDescriptions) Filters the results by the specified basic product descriptions.withProductDescriptions
(Collection<String> productDescriptions) Filters the results by the specified basic product descriptions.withStartTime
(Date startTime) The date and time, up to the past 90 days, from which to start retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).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
-
DescribeSpotPriceHistoryRequest
public DescribeSpotPriceHistoryRequest()
-
-
Method Details
-
setStartTime
The date and time, up to the past 90 days, from which to start retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- Parameters:
startTime
- The date and time, up to the past 90 days, from which to start retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
getStartTime
The date and time, up to the past 90 days, from which to start retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- Returns:
- The date and time, up to the past 90 days, from which to start retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
withStartTime
The date and time, up to the past 90 days, from which to start retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- Parameters:
startTime
- The date and time, up to the past 90 days, from which to start retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEndTime
The date and time, up to the current date, from which to stop retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- Parameters:
endTime
- The date and time, up to the current date, from which to stop retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
getEndTime
The date and time, up to the current date, from which to stop retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- Returns:
- The date and time, up to the current date, from which to stop retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
withEndTime
The date and time, up to the current date, from which to stop retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- Parameters:
endTime
- The date and time, up to the current date, from which to stop retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getInstanceTypes
Filters the results by the specified instance types.
- Returns:
- Filters the results by the specified instance types.
- See Also:
-
setInstanceTypes
Filters the results by the specified instance types.
- Parameters:
instanceTypes
- Filters the results by the specified instance types.- See Also:
-
withInstanceTypes
Filters the results by the specified instance types.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceTypes(java.util.Collection)
orwithInstanceTypes(java.util.Collection)
if you want to override the existing values.- Parameters:
instanceTypes
- Filters the results by the specified instance types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
withInstanceTypes
Filters the results by the specified instance types.
- Parameters:
instanceTypes
- Filters the results by the specified instance types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
withInstanceTypes
Filters the results by the specified instance types.
- Parameters:
instanceTypes
- Filters the results by the specified instance types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
getProductDescriptions
Filters the results by the specified basic product descriptions.
- Returns:
- Filters the results by the specified basic product descriptions.
-
setProductDescriptions
Filters the results by the specified basic product descriptions.
- Parameters:
productDescriptions
- Filters the results by the specified basic product descriptions.
-
withProductDescriptions
Filters the results by the specified basic product descriptions.
NOTE: This method appends the values to the existing list (if any). Use
setProductDescriptions(java.util.Collection)
orwithProductDescriptions(java.util.Collection)
if you want to override the existing values.- Parameters:
productDescriptions
- Filters the results by the specified basic product descriptions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withProductDescriptions
public DescribeSpotPriceHistoryRequest withProductDescriptions(Collection<String> productDescriptions) Filters the results by the specified basic product descriptions.
- Parameters:
productDescriptions
- Filters the results by the specified basic product descriptions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getFilters
One or more filters.
-
availability-zone
- The Availability Zone for which prices should be returned. -
instance-type
- The type of instance (for example,m3.medium
). -
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, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater than or less than comparison is not supported.
- Returns:
- One or more filters.
-
availability-zone
- The Availability Zone for which prices should be returned. -
instance-type
- The type of instance (for example,m3.medium
). -
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, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater than or less than comparison is not supported.
-
-
-
setFilters
One or more filters.
-
availability-zone
- The Availability Zone for which prices should be returned. -
instance-type
- The type of instance (for example,m3.medium
). -
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, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater than or less than comparison is not supported.
- Parameters:
filters
- One or more filters.-
availability-zone
- The Availability Zone for which prices should be returned. -
instance-type
- The type of instance (for example,m3.medium
). -
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, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater than or less than comparison is not supported.
-
-
-
withFilters
One or more filters.
-
availability-zone
- The Availability Zone for which prices should be returned. -
instance-type
- The type of instance (for example,m3.medium
). -
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, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater than or less than comparison is not supported.
NOTE: This method appends the values to the existing list (if any). Use
setFilters(java.util.Collection)
orwithFilters(java.util.Collection)
if you want to override the existing values.- Parameters:
filters
- One or more filters.-
availability-zone
- The Availability Zone for which prices should be returned. -
instance-type
- The type of instance (for example,m3.medium
). -
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, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater than or less than comparison is not supported.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
withFilters
One or more filters.
-
availability-zone
- The Availability Zone for which prices should be returned. -
instance-type
- The type of instance (for example,m3.medium
). -
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, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater than or less than comparison is not supported.
- Parameters:
filters
- One or more filters.-
availability-zone
- The Availability Zone for which prices should be returned. -
instance-type
- The type of instance (for example,m3.medium
). -
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, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater than or less than comparison is not supported.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
setAvailabilityZone
Filters the results by the specified Availability Zone.
- Parameters:
availabilityZone
- Filters the results by the specified Availability Zone.
-
getAvailabilityZone
Filters the results by the specified Availability Zone.
- Returns:
- Filters the results by the specified Availability Zone.
-
withAvailabilityZone
Filters the results by the specified Availability Zone.
- Parameters:
availabilityZone
- Filters the results by the specified Availability Zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMaxResults
The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned
NextToken
value.- Parameters:
maxResults
- The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returnedNextToken
value.
-
getMaxResults
The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned
NextToken
value.- Returns:
- The maximum number of results to return in a single call. Specify
a value between 1 and 1000. The default value is 1000. To
retrieve the remaining results, make another call with the
returned
NextToken
value.
-
withMaxResults
The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned
NextToken
value.- Parameters:
maxResults
- The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returnedNextToken
value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
The token for the next set of results.
- Parameters:
nextToken
- The token for the next set of results.
-
getNextToken
The token for the next set of results.
- Returns:
- The token for the next set of results.
-
withNextToken
The token for the next set of results.
- Parameters:
nextToken
- The token for the next set of results.- 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<DescribeSpotPriceHistoryRequest>
-
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:
-