@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeInstancesResult extends AmazonWebServiceResult<ResponseMetadata> 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()
Information about the reservations.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
void |
setReservations(Collection<Reservation> reservations)
Information about the reservations.
|
String |
toString()
Returns a string representation of this object.
|
DescribeInstancesResult |
withNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
DescribeInstancesResult |
withReservations(Collection<Reservation> reservations)
Information about the reservations.
|
DescribeInstancesResult |
withReservations(Reservation... reservations)
Information about the reservations.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Reservation> getReservations()
Information about the reservations.
public void setReservations(Collection<Reservation> reservations)
Information about the reservations.
reservations
- Information about the reservations.public DescribeInstancesResult withReservations(Reservation... reservations)
Information about the 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
- Information about the reservations.public DescribeInstancesResult withReservations(Collection<Reservation> reservations)
Information about the reservations.
reservations
- Information about the 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 © 2020. All rights reserved.