Class DescribeSpotFleetInstancesResult
- java.lang.Object
-
- com.amazonaws.services.ec2.model.DescribeSpotFleetInstancesResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DescribeSpotFleetInstancesResult extends Object implements Serializable, Cloneable
Contains the output of DescribeSpotFleetInstances.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeSpotFleetInstancesResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
setSpotFleetRequestId
public void setSpotFleetRequestId(String spotFleetRequestId)
The ID of the Spot fleet request.
- Parameters:
spotFleetRequestId
- The ID of the Spot fleet request.
-
getSpotFleetRequestId
public String getSpotFleetRequestId()
The ID of the Spot fleet request.
- Returns:
- The ID of the Spot fleet request.
-
withSpotFleetRequestId
public DescribeSpotFleetInstancesResult withSpotFleetRequestId(String spotFleetRequestId)
The ID of the Spot fleet request.
- Parameters:
spotFleetRequestId
- The ID of the Spot fleet request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getActiveInstances
public List<ActiveInstance> getActiveInstances()
The running instances. Note that this list is refreshed periodically and might be out of date.
- Returns:
- The running instances. Note that this list is refreshed periodically and might be out of date.
-
setActiveInstances
public void setActiveInstances(Collection<ActiveInstance> activeInstances)
The running instances. Note that this list is refreshed periodically and might be out of date.
- Parameters:
activeInstances
- The running instances. Note that this list is refreshed periodically and might be out of date.
-
withActiveInstances
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)
orwithActiveInstances(java.util.Collection)
if you want to override the existing values.- Parameters:
activeInstances
- The running instances. Note that this list is refreshed periodically and might be out of date.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withActiveInstances
public DescribeSpotFleetInstancesResult withActiveInstances(Collection<ActiveInstance> activeInstances)
The running instances. Note that this list is refreshed periodically and might be out of date.
- Parameters:
activeInstances
- The running instances. Note that this list is refreshed periodically and might be out of date.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
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.- Parameters:
nextToken
- The token required to retrieve the next set of results. This value isnull
when there are no more results to return.
-
getNextToken
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.- Returns:
- The token required to retrieve the next set of results. This
value is
null
when there are no more results to return.
-
withNextToken
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.- Parameters:
nextToken
- The token required to retrieve the next set of results. This value isnull
when there are no more results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeSpotFleetInstancesResult clone()
-
-