@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeSpotPriceHistoryResult extends AmazonWebServiceResult<ResponseMetadata> 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 to include in another request to get the next page of items.
|
List<SpotPrice> |
getSpotPriceHistory()
The historical Spot prices.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
The token to include in another request to get the next page of items.
|
void |
setSpotPriceHistory(Collection<SpotPrice> spotPriceHistory)
The historical Spot prices.
|
String |
toString()
Returns a string representation of this object.
|
DescribeSpotPriceHistoryResult |
withNextToken(String nextToken)
The token to include in another request to get the next page of items.
|
DescribeSpotPriceHistoryResult |
withSpotPriceHistory(Collection<SpotPrice> spotPriceHistory)
The historical Spot prices.
|
DescribeSpotPriceHistoryResult |
withSpotPriceHistory(SpotPrice... spotPriceHistory)
The historical Spot prices.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setNextToken(String nextToken)
The token to include in another request to get the next page of items. This value is an empty string (
""
) or null
when there are no more items to return.
nextToken
- The token to include in another request to get the next page of items. This value is an empty string (
""
) or null
when there are no more items to return.public String getNextToken()
The token to include in another request to get the next page of items. This value is an empty string (
""
) or null
when there are no more items to return.
""
) or null
when there are no more items to return.public DescribeSpotPriceHistoryResult withNextToken(String nextToken)
The token to include in another request to get the next page of items. This value is an empty string (
""
) or null
when there are no more items to return.
nextToken
- The token to include in another request to get the next page of items. This value is an empty string (
""
) or null
when there are no more items to return.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 String toString()
toString
in class Object
Object.toString()
public DescribeSpotPriceHistoryResult clone()