com.amazonaws.services.ec2.model
Class DescribeSpotPriceHistoryRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.DescribeSpotPriceHistoryRequest

public class DescribeSpotPriceHistoryRequest
extends AmazonWebServiceRequest

Container for the parameters to the 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 conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon Elastic Compute Cloud User Guide .

See Also:
AmazonEC2.describeSpotPriceHistory(DescribeSpotPriceHistoryRequest)

Constructor Summary
DescribeSpotPriceHistoryRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getAvailabilityZone()
          Filters the results by availability zone (ex: 'us-east-1a').
 Date getEndTime()
          The end date and time of the Spot Instance price history data.
 List<Filter> getFilters()
          A list of filters used to match properties for SpotPriceHistory.
 List<String> getInstanceTypes()
          Specifies the instance type to return.
 Integer getMaxResults()
          Specifies the number of rows to return.
 String getNextToken()
          Specifies the next set of rows to return.
 List<String> getProductDescriptions()
          The description of the AMI.
 Date getStartTime()
          The start date and time of the Spot Instance price history data.
 int hashCode()
           
 void setAvailabilityZone(String availabilityZone)
          Filters the results by availability zone (ex: 'us-east-1a').
 void setEndTime(Date endTime)
          The end date and time of the Spot Instance price history data.
 void setFilters(Collection<Filter> filters)
          A list of filters used to match properties for SpotPriceHistory.
 void setInstanceTypes(Collection<String> instanceTypes)
          Specifies the instance type to return.
 void setMaxResults(Integer maxResults)
          Specifies the number of rows to return.
 void setNextToken(String nextToken)
          Specifies the next set of rows to return.
 void setProductDescriptions(Collection<String> productDescriptions)
          The description of the AMI.
 void setStartTime(Date startTime)
          The start date and time of the Spot Instance 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 availability zone (ex: 'us-east-1a').
 DescribeSpotPriceHistoryRequest withEndTime(Date endTime)
          The end date and time of the Spot Instance price history data.
 DescribeSpotPriceHistoryRequest withFilters(Collection<Filter> filters)
          A list of filters used to match properties for SpotPriceHistory.
 DescribeSpotPriceHistoryRequest withFilters(Filter... filters)
          A list of filters used to match properties for SpotPriceHistory.
 DescribeSpotPriceHistoryRequest withInstanceTypes(Collection<String> instanceTypes)
          Specifies the instance type to return.
 DescribeSpotPriceHistoryRequest withInstanceTypes(String... instanceTypes)
          Specifies the instance type to return.
 DescribeSpotPriceHistoryRequest withMaxResults(Integer maxResults)
          Specifies the number of rows to return.
 DescribeSpotPriceHistoryRequest withNextToken(String nextToken)
          Specifies the next set of rows to return.
 DescribeSpotPriceHistoryRequest withProductDescriptions(Collection<String> productDescriptions)
          The description of the AMI.
 DescribeSpotPriceHistoryRequest withProductDescriptions(String... productDescriptions)
          The description of the AMI.
 DescribeSpotPriceHistoryRequest withStartTime(Date startTime)
          The start date and time of the Spot Instance price history data.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DescribeSpotPriceHistoryRequest

public DescribeSpotPriceHistoryRequest()
Method Detail

getStartTime

public Date getStartTime()
The start date and time of the Spot Instance price history data.

Returns:
The start date and time of the Spot Instance price history data.

setStartTime

public void setStartTime(Date startTime)
The start date and time of the Spot Instance price history data.

Parameters:
startTime - The start date and time of the Spot Instance price history data.

withStartTime

public DescribeSpotPriceHistoryRequest withStartTime(Date startTime)
The start date and time of the Spot Instance price history data.

Returns a reference to this object so that method calls can be chained together.

Parameters:
startTime - The start date and time of the Spot Instance price history data.
Returns:
A reference to this updated object so that method calls can be chained together.

getEndTime

public Date getEndTime()
The end date and time of the Spot Instance price history data.

Returns:
The end date and time of the Spot Instance price history data.

setEndTime

public void setEndTime(Date endTime)
The end date and time of the Spot Instance price history data.

Parameters:
endTime - The end date and time of the Spot Instance price history data.

withEndTime

public DescribeSpotPriceHistoryRequest withEndTime(Date endTime)
The end date and time of the Spot Instance price history data.

Returns a reference to this object so that method calls can be chained together.

Parameters:
endTime - The end date and time of the Spot Instance price history data.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceTypes

public List<String> getInstanceTypes()
Specifies the instance type to return.

Returns:
Specifies the instance type to return.

setInstanceTypes

public void setInstanceTypes(Collection<String> instanceTypes)
Specifies the instance type to return.

Parameters:
instanceTypes - Specifies the instance type to return.

withInstanceTypes

public DescribeSpotPriceHistoryRequest withInstanceTypes(String... instanceTypes)
Specifies the instance type to return.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceTypes - Specifies the instance type to return.
Returns:
A reference to this updated object so that method calls can be chained together.

withInstanceTypes

public DescribeSpotPriceHistoryRequest withInstanceTypes(Collection<String> instanceTypes)
Specifies the instance type to return.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceTypes - Specifies the instance type to return.
Returns:
A reference to this updated object so that method calls can be chained together.

getProductDescriptions

public List<String> getProductDescriptions()
The description of the AMI.

Returns:
The description of the AMI.

setProductDescriptions

public void setProductDescriptions(Collection<String> productDescriptions)
The description of the AMI.

Parameters:
productDescriptions - The description of the AMI.

withProductDescriptions

public DescribeSpotPriceHistoryRequest withProductDescriptions(String... productDescriptions)
The description of the AMI.

Returns a reference to this object so that method calls can be chained together.

Parameters:
productDescriptions - The description of the AMI.
Returns:
A reference to this updated object so that method calls can be chained together.

withProductDescriptions

public DescribeSpotPriceHistoryRequest withProductDescriptions(Collection<String> productDescriptions)
The description of the AMI.

Returns a reference to this object so that method calls can be chained together.

Parameters:
productDescriptions - The description of the AMI.
Returns:
A reference to this updated object so that method calls can be chained together.

getFilters

public List<Filter> getFilters()
A list of filters used to match properties for SpotPriceHistory. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference.

Returns:
A list of filters used to match properties for SpotPriceHistory. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference.

setFilters

public void setFilters(Collection<Filter> filters)
A list of filters used to match properties for SpotPriceHistory. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference.

Parameters:
filters - A list of filters used to match properties for SpotPriceHistory. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference.

withFilters

public DescribeSpotPriceHistoryRequest withFilters(Filter... filters)
A list of filters used to match properties for SpotPriceHistory. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference.

Returns a reference to this object so that method calls can be chained together.

Parameters:
filters - A list of filters used to match properties for SpotPriceHistory. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference.
Returns:
A reference to this updated object so that method calls can be chained together.

withFilters

public DescribeSpotPriceHistoryRequest withFilters(Collection<Filter> filters)
A list of filters used to match properties for SpotPriceHistory. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference.

Returns a reference to this object so that method calls can be chained together.

Parameters:
filters - A list of filters used to match properties for SpotPriceHistory. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference.
Returns:
A reference to this updated object so that method calls can be chained together.

getAvailabilityZone

public String getAvailabilityZone()
Filters the results by availability zone (ex: 'us-east-1a').

Returns:
Filters the results by availability zone (ex: 'us-east-1a').

setAvailabilityZone

public void setAvailabilityZone(String availabilityZone)
Filters the results by availability zone (ex: 'us-east-1a').

Parameters:
availabilityZone - Filters the results by availability zone (ex: 'us-east-1a').

withAvailabilityZone

public DescribeSpotPriceHistoryRequest withAvailabilityZone(String availabilityZone)
Filters the results by availability zone (ex: 'us-east-1a').

Returns a reference to this object so that method calls can be chained together.

Parameters:
availabilityZone - Filters the results by availability zone (ex: 'us-east-1a').
Returns:
A reference to this updated object so that method calls can be chained together.

getMaxResults

public Integer getMaxResults()
Specifies the number of rows to return.

Returns:
Specifies the number of rows to return.

setMaxResults

public void setMaxResults(Integer maxResults)
Specifies the number of rows to return.

Parameters:
maxResults - Specifies the number of rows to return.

withMaxResults

public DescribeSpotPriceHistoryRequest withMaxResults(Integer maxResults)
Specifies the number of rows to return.

Returns a reference to this object so that method calls can be chained together.

Parameters:
maxResults - Specifies the number of rows to return.
Returns:
A reference to this updated object so that method calls can be chained together.

getNextToken

public String getNextToken()
Specifies the next set of rows to return.

Returns:
Specifies the next set of rows to return.

setNextToken

public void setNextToken(String nextToken)
Specifies the next set of rows to return.

Parameters:
nextToken - Specifies the next set of rows to return.

withNextToken

public DescribeSpotPriceHistoryRequest withNextToken(String nextToken)
Specifies the next set of rows to return.

Returns a reference to this object so that method calls can be chained together.

Parameters:
nextToken - Specifies the next set of rows to return.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.