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 String getSpotFleetRequestId()
public void setSpotFleetRequestId(String spotFleetRequestId)
spotFleetRequestId
- The ID of the Spot fleet request.public DescribeSpotFleetInstancesResult withSpotFleetRequestId(String spotFleetRequestId)
Returns a reference to this object so that method calls can be chained together.
spotFleetRequestId
- The ID of the Spot fleet request.public List<ActiveInstance> getActiveInstances()
public void setActiveInstances(Collection<ActiveInstance> activeInstances)
activeInstances
- The running instances. Note that this list is refreshed periodically
and might be out of date.public DescribeSpotFleetInstancesResult withActiveInstances(ActiveInstance... activeInstances)
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.
Returns a reference to this object so that method calls can be chained together.
activeInstances
- The running instances. Note that this list is refreshed periodically
and might be out of date.public DescribeSpotFleetInstancesResult withActiveInstances(Collection<ActiveInstance> activeInstances)
Returns a reference to this object so that method calls can be chained together.
activeInstances
- The running instances. Note that this list is refreshed periodically
and might be out of date.public String getNextToken()
null
when there are no more results to return.null
when there are no more results to return.public void setNextToken(String nextToken)
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 DescribeSpotFleetInstancesResult withNextToken(String nextToken)
null
when there are no more results to return.
Returns a reference to this object so that method calls can be chained together.
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 © 2015. All rights reserved.