@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeSpotInstanceRequestsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Contains the output of DescribeSpotInstanceRequests.
Constructor and Description |
---|
DescribeSpotInstanceRequestsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeSpotInstanceRequestsResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
The token to use to retrieve the next set of results.
|
List<SpotInstanceRequest> |
getSpotInstanceRequests()
One or more Spot Instance requests.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
The token to use to retrieve the next set of results.
|
void |
setSpotInstanceRequests(Collection<SpotInstanceRequest> spotInstanceRequests)
One or more Spot Instance requests.
|
String |
toString()
Returns a string representation of this object.
|
DescribeSpotInstanceRequestsResult |
withNextToken(String nextToken)
The token to use to retrieve the next set of results.
|
DescribeSpotInstanceRequestsResult |
withSpotInstanceRequests(Collection<SpotInstanceRequest> spotInstanceRequests)
One or more Spot Instance requests.
|
DescribeSpotInstanceRequestsResult |
withSpotInstanceRequests(SpotInstanceRequest... spotInstanceRequests)
One or more Spot Instance requests.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<SpotInstanceRequest> getSpotInstanceRequests()
One or more Spot Instance requests.
public void setSpotInstanceRequests(Collection<SpotInstanceRequest> spotInstanceRequests)
One or more Spot Instance requests.
spotInstanceRequests
- One or more Spot Instance requests.public DescribeSpotInstanceRequestsResult withSpotInstanceRequests(SpotInstanceRequest... spotInstanceRequests)
One or more Spot Instance requests.
NOTE: This method appends the values to the existing list (if any). Use
setSpotInstanceRequests(java.util.Collection)
or withSpotInstanceRequests(java.util.Collection)
if you want to override the existing values.
spotInstanceRequests
- One or more Spot Instance requests.public DescribeSpotInstanceRequestsResult withSpotInstanceRequests(Collection<SpotInstanceRequest> spotInstanceRequests)
One or more Spot Instance requests.
spotInstanceRequests
- One or more Spot Instance requests.public void setNextToken(String nextToken)
The token to use to retrieve the next set of results. This value is null
when there are no more
results to return.
nextToken
- The token to use to retrieve the next set of results. This value is null
when there are no
more results to return.public String getNextToken()
The token to use 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 DescribeSpotInstanceRequestsResult withNextToken(String nextToken)
The token to use to retrieve the next set of results. This value is null
when there are no more
results to return.
nextToken
- The token to use 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 DescribeSpotInstanceRequestsResult clone()