@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeSpotFleetInstancesResult extends AmazonWebServiceResult<ResponseMetadata> 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 to include in another request to get the next page of items.
|
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 to include in another request to get the next page of items.
|
void |
setSpotFleetRequestId(String spotFleetRequestId)
The ID of the Spot Fleet request.
|
String |
toString()
Returns a string representation of this object.
|
DescribeSpotFleetInstancesResult |
withActiveInstances(ActiveInstance... activeInstances)
The running instances.
|
DescribeSpotFleetInstancesResult |
withActiveInstances(Collection<ActiveInstance> activeInstances)
The running instances.
|
DescribeSpotFleetInstancesResult |
withNextToken(String nextToken)
The token to include in another request to get the next page of items.
|
DescribeSpotFleetInstancesResult |
withSpotFleetRequestId(String spotFleetRequestId)
The ID of the Spot Fleet request.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<ActiveInstance> getActiveInstances()
The running instances. This list is refreshed periodically and might be out of date.
public void setActiveInstances(Collection<ActiveInstance> activeInstances)
The running instances. This list is refreshed periodically and might be out of date.
activeInstances
- The running instances. This list is refreshed periodically and might be out of date.public DescribeSpotFleetInstancesResult withActiveInstances(ActiveInstance... activeInstances)
The running instances. 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. This list is refreshed periodically and might be out of date.public DescribeSpotFleetInstancesResult withActiveInstances(Collection<ActiveInstance> activeInstances)
The running instances. This list is refreshed periodically and might be out of date.
activeInstances
- The running instances. This list is refreshed periodically and might be out of date.public void setNextToken(String nextToken)
The token to include in another request to get the next page of items. This value is 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 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 null
when there
are no more items to return.
null
when there are no more items to return.public DescribeSpotFleetInstancesResult withNextToken(String nextToken)
The token to include in another request to get the next page of items. This value is 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 null
when there are no more items to return.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 String toString()
toString
in class Object
Object.toString()
public DescribeSpotFleetInstancesResult clone()