public class DescribeSpotPriceHistoryResult extends Object implements Serializable, Cloneable
Contains the output of DescribeSpotPriceHistory.
Constructor and Description |
---|
DescribeSpotPriceHistoryResult() |
Modifier and Type | Method and Description |
---|---|
DescribeSpotPriceHistoryResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
The token required to retrieve the next set of results.
|
List<SpotPrice> |
getSpotPriceHistory()
The historical Spot prices.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
The token required to retrieve the next set of results.
|
void |
setSpotPriceHistory(Collection<SpotPrice> spotPriceHistory)
The historical Spot prices.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeSpotPriceHistoryResult |
withNextToken(String nextToken)
The token required to retrieve the next set of results.
|
DescribeSpotPriceHistoryResult |
withSpotPriceHistory(Collection<SpotPrice> spotPriceHistory)
The historical Spot prices.
|
DescribeSpotPriceHistoryResult |
withSpotPriceHistory(SpotPrice... spotPriceHistory)
The historical Spot prices.
|
public List<SpotPrice> getSpotPriceHistory()
The historical Spot prices.
public void setSpotPriceHistory(Collection<SpotPrice> spotPriceHistory)
The historical Spot prices.
spotPriceHistory
- The historical Spot prices.public DescribeSpotPriceHistoryResult withSpotPriceHistory(SpotPrice... spotPriceHistory)
The historical Spot prices.
NOTE: This method appends the values to the existing list (if
any). Use setSpotPriceHistory(java.util.Collection)
or
withSpotPriceHistory(java.util.Collection)
if you want to
override the existing values.
spotPriceHistory
- The historical Spot prices.public DescribeSpotPriceHistoryResult withSpotPriceHistory(Collection<SpotPrice> spotPriceHistory)
The historical Spot prices.
spotPriceHistory
- The historical Spot prices.public void setNextToken(String nextToken)
The token required to retrieve the next set of results. This value is
null
when there are no more results to return.
nextToken
- The token required to retrieve the next set of results. This value
is null
when there are no more results to return.public String getNextToken()
The token required to retrieve the next set of results. This value is
null
when there are no more results to return.
null
when there are no more results to
return.public DescribeSpotPriceHistoryResult withNextToken(String nextToken)
The token required to retrieve the next set of results. This value is
null
when there are no more results to return.
nextToken
- The token required to retrieve the next set of results. This value
is null
when there are no more results to return.public String toString()
toString
in class Object
Object.toString()
public DescribeSpotPriceHistoryResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.