@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 include in another request to get the next page of items.
|
List<Reservation> |
getReservations()
Information about the reservations.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
The token to include in another request to get the next page of items.
|
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 include in another request to get the next page of items.
|
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 include in another request to get the next page of items. This value is null
when there
are no more items to return.
nextToken
- The token to include in another request to get the next page of items. This value is null
when there are no more items to return.public String getNextToken()
The token to include in another request to get the next page of items. This value is null
when there
are no more items to return.
null
when there are no more items to return.public DescribeInstancesResult withNextToken(String nextToken)
The token to include in another request to get the next page of items. This value is null
when there
are no more items to return.
nextToken
- The token to include in another request to get the next page of items. This value is null
when there are no more items to return.public String toString()
toString
in class Object
Object.toString()
public DescribeInstancesResult clone()