public class DescribeInstancesResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the output of DescribeInstances.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
nextToken
The token to use to retrieve the next page of results.
|
private SdkInternalList<Reservation> |
reservations
Zero or more reservations.
|
Constructor and Description |
---|
DescribeInstancesResult() |
Modifier and Type | Method and Description |
---|---|
DescribeInstancesResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getNextToken()
The token to use to retrieve the next page of results.
|
java.util.List<Reservation> |
getReservations()
Zero or more reservations.
|
int |
hashCode() |
void |
setNextToken(java.lang.String nextToken)
The token to use to retrieve the next page of results.
|
void |
setReservations(java.util.Collection<Reservation> reservations)
Zero 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 to retrieve the next page of results.
|
DescribeInstancesResult |
withReservations(java.util.Collection<Reservation> reservations)
Zero or more reservations.
|
DescribeInstancesResult |
withReservations(Reservation... reservations)
Zero or more reservations.
|
private SdkInternalList<Reservation> reservations
Zero or more reservations.
private java.lang.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.
public java.util.List<Reservation> getReservations()
Zero or more reservations.
public void setReservations(java.util.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(java.util.Collection<Reservation> reservations)
Zero or more reservations.
reservations
- Zero or more reservations.public void setNextToken(java.lang.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 java.lang.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(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DescribeInstancesResult clone()
clone
in class java.lang.Object