public class DescribeSpotPriceHistoryRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<DescribeSpotPriceHistoryRequest>
Contains the parameters for DescribeSpotPriceHistory.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
availabilityZone
Filters the results by the specified Availability Zone.
|
private java.util.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).
|
private SdkInternalList<Filter> |
filters
One or more filters.
|
private SdkInternalList<java.lang.String> |
instanceTypes
Filters the results by the specified instance types.
|
private java.lang.Integer |
maxResults
The maximum number of results to return in a single call.
|
private java.lang.String |
nextToken
The token for the next set of results.
|
private SdkInternalList<java.lang.String> |
productDescriptions
Filters the results by the specified basic product descriptions.
|
private java.util.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).
|
NOOP
Constructor and Description |
---|
DescribeSpotPriceHistoryRequest() |
Modifier and Type | Method and Description |
---|---|
DescribeSpotPriceHistoryRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAvailabilityZone()
Filters the results by the specified Availability Zone.
|
Request<DescribeSpotPriceHistoryRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.util.Date |
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).
|
java.util.List<Filter> |
getFilters()
One or more filters.
|
java.util.List<java.lang.String> |
getInstanceTypes()
Filters the results by the specified instance types.
|
java.lang.Integer |
getMaxResults()
The maximum number of results to return in a single call.
|
java.lang.String |
getNextToken()
The token for the next set of results.
|
java.util.List<java.lang.String> |
getProductDescriptions()
Filters the results by the specified basic product descriptions.
|
java.util.Date |
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).
|
int |
hashCode() |
void |
setAvailabilityZone(java.lang.String availabilityZone)
Filters the results by the specified Availability Zone.
|
void |
setEndTime(java.util.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(java.util.Collection<Filter> filters)
One or more filters.
|
void |
setInstanceTypes(java.util.Collection<java.lang.String> instanceTypes)
Filters the results by the specified instance types.
|
void |
setMaxResults(java.lang.Integer maxResults)
The maximum number of results to return in a single call.
|
void |
setNextToken(java.lang.String nextToken)
The token for the next set of results.
|
void |
setProductDescriptions(java.util.Collection<java.lang.String> productDescriptions)
Filters the results by the specified basic product descriptions.
|
void |
setStartTime(java.util.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).
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeSpotPriceHistoryRequest |
withAvailabilityZone(java.lang.String availabilityZone)
Filters the results by the specified Availability Zone.
|
DescribeSpotPriceHistoryRequest |
withEndTime(java.util.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).
|
DescribeSpotPriceHistoryRequest |
withFilters(java.util.Collection<Filter> filters)
One or more filters.
|
DescribeSpotPriceHistoryRequest |
withFilters(Filter... filters)
One or more filters.
|
DescribeSpotPriceHistoryRequest |
withInstanceTypes(java.util.Collection<java.lang.String> instanceTypes)
Filters the results by the specified instance types.
|
DescribeSpotPriceHistoryRequest |
withInstanceTypes(InstanceType... instanceTypes)
Filters the results by the specified instance types.
|
DescribeSpotPriceHistoryRequest |
withInstanceTypes(java.lang.String... instanceTypes)
Filters the results by the specified instance types.
|
DescribeSpotPriceHistoryRequest |
withMaxResults(java.lang.Integer maxResults)
The maximum number of results to return in a single call.
|
DescribeSpotPriceHistoryRequest |
withNextToken(java.lang.String nextToken)
The token for the next set of results.
|
DescribeSpotPriceHistoryRequest |
withProductDescriptions(java.util.Collection<java.lang.String> productDescriptions)
Filters the results by the specified basic product descriptions.
|
DescribeSpotPriceHistoryRequest |
withProductDescriptions(java.lang.String... productDescriptions)
Filters the results by the specified basic product descriptions.
|
DescribeSpotPriceHistoryRequest |
withStartTime(java.util.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).
|
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
private java.util.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).
private java.util.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).
private SdkInternalList<java.lang.String> instanceTypes
Filters the results by the specified instance types.
private SdkInternalList<java.lang.String> productDescriptions
Filters the results by the specified basic product descriptions.
private SdkInternalList<Filter> 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.
private java.lang.String availabilityZone
Filters the results by the specified Availability Zone.
private java.lang.Integer 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 returned NextToken
value.
private java.lang.String nextToken
The token for the next set of results.
public void setStartTime(java.util.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).
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).public java.util.Date 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).
public DescribeSpotPriceHistoryRequest withStartTime(java.util.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).
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).public void setEndTime(java.util.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).
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).public java.util.Date 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).
public DescribeSpotPriceHistoryRequest withEndTime(java.util.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).
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).public java.util.List<java.lang.String> getInstanceTypes()
Filters the results by the specified instance types.
InstanceType
public void setInstanceTypes(java.util.Collection<java.lang.String> instanceTypes)
Filters the results by the specified instance types.
instanceTypes
- Filters the results by the specified instance types.InstanceType
public DescribeSpotPriceHistoryRequest withInstanceTypes(java.lang.String... instanceTypes)
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)
or
withInstanceTypes(java.util.Collection)
if you want to override
the existing values.
instanceTypes
- Filters the results by the specified instance types.InstanceType
public DescribeSpotPriceHistoryRequest withInstanceTypes(java.util.Collection<java.lang.String> instanceTypes)
Filters the results by the specified instance types.
instanceTypes
- Filters the results by the specified instance types.InstanceType
public DescribeSpotPriceHistoryRequest withInstanceTypes(InstanceType... instanceTypes)
Filters the results by the specified instance types.
instanceTypes
- Filters the results by the specified instance types.InstanceType
public java.util.List<java.lang.String> getProductDescriptions()
Filters the results by the specified basic product descriptions.
public void setProductDescriptions(java.util.Collection<java.lang.String> productDescriptions)
Filters the results by the specified basic product descriptions.
productDescriptions
- Filters the results by the specified basic product descriptions.public DescribeSpotPriceHistoryRequest withProductDescriptions(java.lang.String... productDescriptions)
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)
or
withProductDescriptions(java.util.Collection)
if you want to
override the existing values.
productDescriptions
- Filters the results by the specified basic product descriptions.public DescribeSpotPriceHistoryRequest withProductDescriptions(java.util.Collection<java.lang.String> productDescriptions)
Filters the results by the specified basic product descriptions.
productDescriptions
- Filters the results by the specified basic product descriptions.public java.util.List<Filter> 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.
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.
public void setFilters(java.util.Collection<Filter> 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.
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.
public DescribeSpotPriceHistoryRequest withFilters(Filter... 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.
NOTE: This method appends the values to the existing list (if
any). Use setFilters(java.util.Collection)
or
withFilters(java.util.Collection)
if you want to override the
existing values.
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.
public DescribeSpotPriceHistoryRequest withFilters(java.util.Collection<Filter> 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.
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.
public void setAvailabilityZone(java.lang.String availabilityZone)
Filters the results by the specified Availability Zone.
availabilityZone
- Filters the results by the specified Availability Zone.public java.lang.String getAvailabilityZone()
Filters the results by the specified Availability Zone.
public DescribeSpotPriceHistoryRequest withAvailabilityZone(java.lang.String availabilityZone)
Filters the results by the specified Availability Zone.
availabilityZone
- Filters the results by the specified Availability Zone.public void setMaxResults(java.lang.Integer 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 returned NextToken
value.
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 returned
NextToken
value.public java.lang.Integer 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.
NextToken
value.public DescribeSpotPriceHistoryRequest withMaxResults(java.lang.Integer 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 returned NextToken
value.
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 returned
NextToken
value.public void setNextToken(java.lang.String nextToken)
The token for the next set of results.
nextToken
- The token for the next set of results.public java.lang.String getNextToken()
The token for the next set of results.
public DescribeSpotPriceHistoryRequest withNextToken(java.lang.String nextToken)
The token for the next set of results.
nextToken
- The token for the next set of results.public Request<DescribeSpotPriceHistoryRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DescribeSpotPriceHistoryRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DescribeSpotPriceHistoryRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()