public class DescribeInstancesResult extends Object implements Serializable
The result of describing Amazon EC2 instances.
Constructor and Description |
---|
DescribeInstancesResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getNextToken()
Returns the value of the NextToken property for this object.
|
List<Reservation> |
getReservations()
The list of reservations containing the describes instances.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
Sets the value of the NextToken property for this object.
|
void |
setReservations(Collection<Reservation> reservations)
The list of reservations containing the describes instances.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeInstancesResult |
withNextToken(String nextToken)
Sets the value of the NextToken property for this object.
|
DescribeInstancesResult |
withReservations(Collection<Reservation> reservations)
The list of reservations containing the describes instances.
|
DescribeInstancesResult |
withReservations(Reservation... reservations)
The list of reservations containing the describes instances.
|
public List<Reservation> getReservations()
public void setReservations(Collection<Reservation> reservations)
reservations
- The list of reservations containing the describes instances.public DescribeInstancesResult withReservations(Reservation... reservations)
Returns a reference to this object so that method calls can be chained together.
reservations
- The list of reservations containing the describes instances.public DescribeInstancesResult withReservations(Collection<Reservation> reservations)
Returns a reference to this object so that method calls can be chained together.
reservations
- The list of reservations containing the describes instances.public String getNextToken()
public void setNextToken(String nextToken)
nextToken
- The new value for the NextToken property for this object.public DescribeInstancesResult withNextToken(String nextToken)
Returns a reference to this object so that method calls can be chained together.
nextToken
- The new value for the NextToken property for this object.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.