public class DescribeInstancesResult extends Object implements Serializable, Cloneable
Contains the output of DescribeInstances.
Constructor and Description |
---|
DescribeInstancesResult() |
Modifier and Type | Method and 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(Collection<Reservation> reservations)
Zero or more reservations.
|
DescribeInstancesResult |
withReservations(Reservation... reservations)
Zero or more reservations.
|
public List<Reservation> getReservations()
Zero or more reservations.
public void setReservations(Collection<Reservation> reservations)
Zero or more reservations.
reservations
- Zero or more reservations.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)
or
withReservations(java.util.Collection)
if you want to override
the existing values.
reservations
- Zero or more reservations.public DescribeInstancesResult withReservations(Collection<Reservation> reservations)
Zero or more reservations.
reservations
- Zero or more reservations.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.
nextToken
- The token to use to retrieve the next page of results. This value
is null
when there are no more results to return.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.
null
when there are no more results to return.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.
nextToken
- The token to use to retrieve the next page of results. This value
is null
when there are no more results to return.public String toString()
toString
in class Object
Object.toString()
public DescribeInstancesResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.