@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeSpotPriceHistoryRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<DescribeSpotPriceHistoryRequest>
Contains the parameters for DescribeSpotPriceHistory.
NOOP
Constructor and Description |
---|
DescribeSpotPriceHistoryRequest() |
Modifier and Type | Method and Description |
---|---|
DescribeSpotPriceHistoryRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
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, in UTC format
(for example, YYYY-MM-DDTHH:MM:SSZ).
|
List<Filter> |
getFilters()
The filters.
|
List<String> |
getInstanceTypes()
Filters the results by the specified instance types.
|
Integer |
getMaxResults()
The maximum number of items to return for this request.
|
String |
getNextToken()
The token returned from a previous paginated request.
|
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, 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)
The filters.
|
void |
setInstanceTypes(Collection<String> instanceTypes)
Filters the results by the specified instance types.
|
void |
setMaxResults(Integer maxResults)
The maximum number of items to return for this request.
|
void |
setNextToken(String nextToken)
The token returned from a previous paginated request.
|
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).
|
String |
toString()
Returns a string representation of this object.
|
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, in UTC format
(for example, YYYY-MM-DDTHH:MM:SSZ).
|
DescribeSpotPriceHistoryRequest |
withFilters(Collection<Filter> filters)
The filters.
|
DescribeSpotPriceHistoryRequest |
withFilters(Filter... filters)
The 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 items to return for this request.
|
DescribeSpotPriceHistoryRequest |
withNextToken(String nextToken)
The token returned from a previous paginated request.
|
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, in UTC format
(for example, YYYY-MM-DDTHH:MM:SSZ).
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public List<Filter> getFilters()
The 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
|
Red Hat Enterprise Linux
| SUSE Linux
| Windows
|
Linux/UNIX (Amazon VPC)
| Red Hat Enterprise Linux (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 time stamp of the Spot price history, in UTC format (for example, ddd MMM dd
HH:mm:ss UTC YYYY). 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
|
Red Hat Enterprise Linux
| SUSE Linux
| Windows
|
Linux/UNIX (Amazon VPC)
| Red Hat Enterprise Linux (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 time stamp of the Spot price history, in UTC format (for example, ddd MMM
dd HH:mm:ss UTC YYYY). You can use wildcards (*
and ?
). Greater than or less than comparison is not supported.
public void setFilters(Collection<Filter> filters)
The 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
|
Red Hat Enterprise Linux
| SUSE Linux
| Windows
|
Linux/UNIX (Amazon VPC)
| Red Hat Enterprise Linux (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 time stamp of the Spot price history, in UTC format (for example, ddd MMM dd
HH:mm:ss UTC YYYY). You can use wildcards (*
and ?
). Greater
than or less than comparison is not supported.
filters
- The 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
|
Red Hat Enterprise Linux
| SUSE Linux
| Windows
|
Linux/UNIX (Amazon VPC)
| Red Hat Enterprise Linux (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 time stamp of the Spot price history, in UTC format (for example, ddd MMM
dd HH:mm:ss UTC YYYY). You can use wildcards (*
and ?
).
Greater than or less than comparison is not supported.
public DescribeSpotPriceHistoryRequest withFilters(Filter... filters)
The 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
|
Red Hat Enterprise Linux
| SUSE Linux
| Windows
|
Linux/UNIX (Amazon VPC)
| Red Hat Enterprise Linux (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 time stamp of the Spot price history, in UTC format (for example, ddd MMM dd
HH:mm:ss UTC YYYY). 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
- The 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
|
Red Hat Enterprise Linux
| SUSE Linux
| Windows
|
Linux/UNIX (Amazon VPC)
| Red Hat Enterprise Linux (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 time stamp of the Spot price history, in UTC format (for example, ddd MMM
dd HH:mm:ss UTC YYYY). You can use wildcards (*
and ?
).
Greater than or less than comparison is not supported.
public DescribeSpotPriceHistoryRequest withFilters(Collection<Filter> filters)
The 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
|
Red Hat Enterprise Linux
| SUSE Linux
| Windows
|
Linux/UNIX (Amazon VPC)
| Red Hat Enterprise Linux (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 time stamp of the Spot price history, in UTC format (for example, ddd MMM dd
HH:mm:ss UTC YYYY). You can use wildcards (*
and ?
). Greater
than or less than comparison is not supported.
filters
- The 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
|
Red Hat Enterprise Linux
| SUSE Linux
| Windows
|
Linux/UNIX (Amazon VPC)
| Red Hat Enterprise Linux (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 time stamp of the Spot price history, in UTC format (for example, ddd MMM
dd HH:mm:ss UTC YYYY). You can use wildcards (*
and ?
).
Greater than or less than comparison is not supported.
public void setAvailabilityZone(String availabilityZone)
Filters the results by the specified Availability Zone.
availabilityZone
- Filters the results by the specified Availability Zone.public String getAvailabilityZone()
Filters the results by the specified Availability Zone.
public DescribeSpotPriceHistoryRequest withAvailabilityZone(String availabilityZone)
Filters the results by the specified Availability Zone.
availabilityZone
- Filters the results by the specified Availability Zone.public 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).
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 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(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 List<String> getInstanceTypes()
Filters the results by the specified instance types.
InstanceType
public void setInstanceTypes(Collection<String> instanceTypes)
Filters the results by the specified instance types.
instanceTypes
- Filters the results by the specified instance types.InstanceType
public DescribeSpotPriceHistoryRequest withInstanceTypes(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(Collection<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 void setMaxResults(Integer maxResults)
The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
maxResults
- The maximum number of items to return for this request. To get the next page of items, make another
request with the token returned in the output. For more information, see Pagination.public Integer getMaxResults()
The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
public DescribeSpotPriceHistoryRequest withMaxResults(Integer maxResults)
The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
maxResults
- The maximum number of items to return for this request. To get the next page of items, make another
request with the token returned in the output. For more information, see Pagination.public void setNextToken(String nextToken)
The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
nextToken
- The token returned from a previous paginated request. Pagination continues from the end of the items
returned by the previous request.public String getNextToken()
The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
public DescribeSpotPriceHistoryRequest withNextToken(String nextToken)
The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
nextToken
- The token returned from a previous paginated request. Pagination continues from the end of the items
returned by the previous request.public List<String> getProductDescriptions()
Filters the results by the specified basic product descriptions.
public void setProductDescriptions(Collection<String> productDescriptions)
Filters the results by the specified basic product descriptions.
productDescriptions
- Filters the results by the specified basic product descriptions.public DescribeSpotPriceHistoryRequest withProductDescriptions(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(Collection<String> productDescriptions)
Filters the results by the specified basic product descriptions.
productDescriptions
- Filters the results by the specified basic product descriptions.public 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).
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 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(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 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()