com.amazonaws.services.ec2.model
Class DescribeInstancesResult

java.lang.Object
  extended by com.amazonaws.services.ec2.model.DescribeInstancesResult
All Implemented Interfaces:
java.io.Serializable

public class DescribeInstancesResult
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
DescribeInstancesResult()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DescribeInstancesResult

public DescribeInstancesResult()
Method Detail

getReservations

public java.util.List<Reservation> getReservations()
One or more reservations.

Returns:
One or more reservations.

setReservations

public void setReservations(java.util.Collection<Reservation> reservations)
One or more reservations.

Parameters:
reservations - One or more reservations.

withReservations

public DescribeInstancesResult withReservations(Reservation... reservations)
One or more reservations.

Returns a reference to this object so that method calls can be chained together.

Parameters:
reservations - One or more reservations.
Returns:
A reference to this updated object so that method calls can be chained together.

withReservations

public DescribeInstancesResult withReservations(java.util.Collection<Reservation> reservations)
One or more reservations.

Returns a reference to this object so that method calls can be chained together.

Parameters:
reservations - One or more reservations.
Returns:
A reference to this updated object so that method calls can be chained together.

getNextToken

public java.lang.String getNextToken()
The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

Returns:
The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

setNextToken

public void setNextToken(java.lang.String nextToken)
The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

Parameters:
nextToken - The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

withNextToken

public DescribeInstancesResult withNextToken(java.lang.String nextToken)
The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

Returns a reference to this object so that method calls can be chained together.

Parameters:
nextToken - The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.