public class DescribeInstancesResult extends Object implements Serializable, Cloneable
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()
public void setReservations(Collection<Reservation> reservations)
reservations
- Zero or more reservations.public DescribeInstancesResult withReservations(Reservation... 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.
Returns a reference to this object so that method calls can be chained together.
reservations
- Zero or more reservations.public DescribeInstancesResult withReservations(Collection<Reservation> reservations)
Returns a reference to this object so that method calls can be chained together.
reservations
- Zero or more reservations.public String getNextToken()
null
when there are no more results to return.null
when there are no more results to return.public void setNextToken(String nextToken)
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 DescribeInstancesResult withNextToken(String nextToken)
null
when there are no more results to return.
Returns a reference to this object so that method calls can be chained together.
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.