Package com.amazonaws.services.ec2.model
Class DescribeInstancesResult
- java.lang.Object
-
- com.amazonaws.services.ec2.model.DescribeInstancesResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DescribeInstancesResult extends Object implements Serializable, Cloneable
Contains the output of DescribeInstances.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeInstancesResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeInstancesResult
clone()
boolean
equals(Object obj)
String
getNextToken()
The token to use to retrieve the next page of results.List<Reservation>
getReservations()
Zero or more reservations.int
hashCode()
void
setNextToken(String nextToken)
The token to use to retrieve the next page of results.void
setReservations(Collection<Reservation> reservations)
Zero or more reservations.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribeInstancesResult
withNextToken(String nextToken)
The token to use to retrieve the next page of results.DescribeInstancesResult
withReservations(Reservation... reservations)
Zero or more reservations.DescribeInstancesResult
withReservations(Collection<Reservation> reservations)
Zero or more reservations.
-
-
-
Method Detail
-
getReservations
public List<Reservation> getReservations()
Zero or more reservations.
- Returns:
- Zero or more reservations.
-
setReservations
public void setReservations(Collection<Reservation> reservations)
Zero or more reservations.
- Parameters:
reservations
- Zero or more reservations.
-
withReservations
public DescribeInstancesResult withReservations(Reservation... reservations)
Zero or more reservations.
NOTE: This method appends the values to the existing list (if any). Use
setReservations(java.util.Collection)
orwithReservations(java.util.Collection)
if you want to override the existing values.- Parameters:
reservations
- Zero or more reservations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withReservations
public DescribeInstancesResult withReservations(Collection<Reservation> reservations)
Zero or more reservations.
- Parameters:
reservations
- Zero or more reservations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.- Parameters:
nextToken
- The token to use to retrieve the next page of results. This value isnull
when there are no more results to return.
-
getNextToken
public String getNextToken()
The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.- Returns:
- The token to use to retrieve the next page of results. This value
is
null
when there are no more results to return.
-
withNextToken
public DescribeInstancesResult withNextToken(String nextToken)
The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.- Parameters:
nextToken
- The token to use to retrieve the next page 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 DescribeInstancesResult clone()
-
-