Class DescribeSpotPriceHistoryResult
- java.lang.Object
-
- com.amazonaws.services.ec2.model.DescribeSpotPriceHistoryResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class DescribeSpotPriceHistoryResult extends Object implements Serializable, Cloneable
Contains the output of DescribeSpotPriceHistory.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeSpotPriceHistoryResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeSpotPriceHistoryResultclone()booleanequals(Object obj)StringgetNextToken()The token required to retrieve the next set of results.List<SpotPrice>getSpotPriceHistory()The historical Spot prices.inthashCode()voidsetNextToken(String nextToken)The token required to retrieve the next set of results.voidsetSpotPriceHistory(Collection<SpotPrice> spotPriceHistory)The historical Spot prices.StringtoString()Returns a string representation of this object; useful for testing and debugging.DescribeSpotPriceHistoryResultwithNextToken(String nextToken)The token required to retrieve the next set of results.DescribeSpotPriceHistoryResultwithSpotPriceHistory(SpotPrice... spotPriceHistory)The historical Spot prices.DescribeSpotPriceHistoryResultwithSpotPriceHistory(Collection<SpotPrice> spotPriceHistory)The historical Spot prices.
-
-
-
Method Detail
-
getSpotPriceHistory
public List<SpotPrice> getSpotPriceHistory()
The historical Spot prices.
- Returns:
- The historical Spot prices.
-
setSpotPriceHistory
public void setSpotPriceHistory(Collection<SpotPrice> spotPriceHistory)
The historical Spot prices.
- Parameters:
spotPriceHistory- The historical Spot prices.
-
withSpotPriceHistory
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)orwithSpotPriceHistory(java.util.Collection)if you want to override the existing values.- Parameters:
spotPriceHistory- The historical Spot prices.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSpotPriceHistory
public DescribeSpotPriceHistoryResult withSpotPriceHistory(Collection<SpotPrice> spotPriceHistory)
The historical Spot prices.
- Parameters:
spotPriceHistory- The historical Spot prices.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
The token required to retrieve the next set of results. This value is
nullwhen there are no more results to return.- Parameters:
nextToken- The token required to retrieve the next set of results. This value isnullwhen there are no more results to return.
-
getNextToken
public String getNextToken()
The token required to retrieve the next set of results. This value is
nullwhen there are no more results to return.- Returns:
- The token required to retrieve the next set of results. This
value is
nullwhen there are no more results to return.
-
withNextToken
public DescribeSpotPriceHistoryResult withNextToken(String nextToken)
The token required to retrieve the next set of results. This value is
nullwhen there are no more results to return.- Parameters:
nextToken- The token required to retrieve the next set of results. This value isnullwhen there are no more results to return.- Returns:
- Returns a reference to this 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeSpotPriceHistoryResult clone()
-
-