public class DescribeInstancesResult
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
DescribeInstancesResult() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getNextToken()
The token to use when requesting the next set of items.
|
java.util.List<Reservation> |
getReservations()
One or more reservations.
|
int |
hashCode() |
void |
setNextToken(java.lang.String nextToken)
The token to use when requesting the next set of items.
|
void |
setReservations(java.util.Collection<Reservation> reservations)
One or more reservations.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeInstancesResult |
withNextToken(java.lang.String nextToken)
The token to use when requesting the next set of items.
|
DescribeInstancesResult |
withReservations(java.util.Collection<Reservation> reservations)
One or more reservations.
|
DescribeInstancesResult |
withReservations(Reservation... reservations)
One or more reservations.
|
public java.util.List<Reservation> getReservations()
public void setReservations(java.util.Collection<Reservation> reservations)
reservations - One or more reservations.public DescribeInstancesResult withReservations(Reservation... reservations)
Returns a reference to this object so that method calls can be chained together.
reservations - One or more reservations.public DescribeInstancesResult withReservations(java.util.Collection<Reservation> reservations)
Returns a reference to this object so that method calls can be chained together.
reservations - One or more reservations.public java.lang.String getNextToken()
public void setNextToken(java.lang.String nextToken)
nextToken - The token to use when requesting the next set of items. If there are
no additional items to return, the string is empty.public DescribeInstancesResult withNextToken(java.lang.String nextToken)
Returns a reference to this object so that method calls can be chained together.
nextToken - The token to use when requesting the next set of items. If there are
no additional items to return, the string is empty.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object