public class DescribeSpotFleetInstancesResult extends Object implements Serializable, Cloneable
Contains the output of DescribeSpotFleetInstances.
Constructor and Description |
---|
DescribeSpotFleetInstancesResult() |
Modifier and Type | Method and Description |
---|---|
DescribeSpotFleetInstancesResult |
clone() |
boolean |
equals(Object obj) |
List<ActiveInstance> |
getActiveInstances()
The running instances.
|
String |
getNextToken()
The token required to retrieve the next set of results.
|
String |
getSpotFleetRequestId()
The ID of the Spot fleet request.
|
int |
hashCode() |
void |
setActiveInstances(Collection<ActiveInstance> activeInstances)
The running instances.
|
void |
setNextToken(String nextToken)
The token required to retrieve the next set of results.
|
void |
setSpotFleetRequestId(String spotFleetRequestId)
The ID of the Spot fleet request.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeSpotFleetInstancesResult |
withActiveInstances(ActiveInstance... activeInstances)
The running instances.
|
DescribeSpotFleetInstancesResult |
withActiveInstances(Collection<ActiveInstance> activeInstances)
The running instances.
|
DescribeSpotFleetInstancesResult |
withNextToken(String nextToken)
The token required to retrieve the next set of results.
|
DescribeSpotFleetInstancesResult |
withSpotFleetRequestId(String spotFleetRequestId)
The ID of the Spot fleet request.
|
public void setSpotFleetRequestId(String spotFleetRequestId)
The ID of the Spot fleet request.
spotFleetRequestId
- The ID of the Spot fleet request.public String getSpotFleetRequestId()
The ID of the Spot fleet request.
public DescribeSpotFleetInstancesResult withSpotFleetRequestId(String spotFleetRequestId)
The ID of the Spot fleet request.
spotFleetRequestId
- The ID of the Spot fleet request.public List<ActiveInstance> getActiveInstances()
The running instances. Note that this list is refreshed periodically and might be out of date.
public void setActiveInstances(Collection<ActiveInstance> activeInstances)
The running instances. Note that this list is refreshed periodically and might be out of date.
activeInstances
- The running instances. Note that this list is refreshed
periodically and might be out of date.public DescribeSpotFleetInstancesResult withActiveInstances(ActiveInstance... activeInstances)
The running instances. Note that this list is refreshed periodically and might be out of date.
NOTE: This method appends the values to the existing list (if
any). Use setActiveInstances(java.util.Collection)
or
withActiveInstances(java.util.Collection)
if you want to
override the existing values.
activeInstances
- The running instances. Note that this list is refreshed
periodically and might be out of date.public DescribeSpotFleetInstancesResult withActiveInstances(Collection<ActiveInstance> activeInstances)
The running instances. Note that this list is refreshed periodically and might be out of date.
activeInstances
- The running instances. Note that this list is refreshed
periodically and might be out of date.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 DescribeSpotFleetInstancesResult 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 DescribeSpotFleetInstancesResult clone()
Copyright © 2018. All rights reserved.