public class DescribeSpotFleetInstancesResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the output of DescribeSpotFleetInstances.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<ActiveInstance> |
activeInstances
The running instances.
|
private java.lang.String |
nextToken
The token required to retrieve the next set of results.
|
private java.lang.String |
spotFleetRequestId
The ID of the Spot fleet request.
|
Constructor and Description |
---|
DescribeSpotFleetInstancesResult() |
Modifier and Type | Method and Description |
---|---|
DescribeSpotFleetInstancesResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<ActiveInstance> |
getActiveInstances()
The running instances.
|
java.lang.String |
getNextToken()
The token required to retrieve the next set of results.
|
java.lang.String |
getSpotFleetRequestId()
The ID of the Spot fleet request.
|
int |
hashCode() |
void |
setActiveInstances(java.util.Collection<ActiveInstance> activeInstances)
The running instances.
|
void |
setNextToken(java.lang.String nextToken)
The token required to retrieve the next set of results.
|
void |
setSpotFleetRequestId(java.lang.String spotFleetRequestId)
The ID of the Spot fleet request.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeSpotFleetInstancesResult |
withActiveInstances(ActiveInstance... activeInstances)
The running instances.
|
DescribeSpotFleetInstancesResult |
withActiveInstances(java.util.Collection<ActiveInstance> activeInstances)
The running instances.
|
DescribeSpotFleetInstancesResult |
withNextToken(java.lang.String nextToken)
The token required to retrieve the next set of results.
|
DescribeSpotFleetInstancesResult |
withSpotFleetRequestId(java.lang.String spotFleetRequestId)
The ID of the Spot fleet request.
|
private java.lang.String spotFleetRequestId
The ID of the Spot fleet request.
private SdkInternalList<ActiveInstance> activeInstances
The running instances. Note that this list is refreshed periodically and might be out of date.
private java.lang.String nextToken
The token required to retrieve the next set of results. This value is
null
when there are no more results to return.
public void setSpotFleetRequestId(java.lang.String spotFleetRequestId)
The ID of the Spot fleet request.
spotFleetRequestId
- The ID of the Spot fleet request.public java.lang.String getSpotFleetRequestId()
The ID of the Spot fleet request.
public DescribeSpotFleetInstancesResult withSpotFleetRequestId(java.lang.String spotFleetRequestId)
The ID of the Spot fleet request.
spotFleetRequestId
- The ID of the Spot fleet request.public java.util.List<ActiveInstance> getActiveInstances()
The running instances. Note that this list is refreshed periodically and might be out of date.
public void setActiveInstances(java.util.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(java.util.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(java.lang.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 java.lang.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(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DescribeSpotFleetInstancesResult clone()
clone
in class java.lang.Object