Package com.amazonaws.services.ec2.model
Class DescribeInstancesResult
- java.lang.Object
-
- com.amazonaws.services.ec2.model.DescribeInstancesResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class DescribeInstancesResult extends Object implements Serializable, Cloneable
Contains the output of DescribeInstances.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeInstancesResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeInstancesResultclone()booleanequals(Object obj)StringgetNextToken()The token to use to retrieve the next page of results.List<Reservation>getReservations()Zero or more reservations.inthashCode()voidsetNextToken(String nextToken)The token to use to retrieve the next page of results.voidsetReservations(Collection<Reservation> reservations)Zero or more reservations.StringtoString()Returns a string representation of this object; useful for testing and debugging.DescribeInstancesResultwithNextToken(String nextToken)The token to use to retrieve the next page of results.DescribeInstancesResultwithReservations(Reservation... reservations)Zero or more reservations.DescribeInstancesResultwithReservations(Collection<Reservation> reservations)Zero or more reservations.
-
-
-
Method Detail
-
getReservations
public List<Reservation> getReservations()
Zero or more reservations.
- Returns:
- Zero or more reservations.
-
setReservations
public void setReservations(Collection<Reservation> reservations)
Zero or more reservations.
- Parameters:
reservations- Zero or more reservations.
-
withReservations
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)orwithReservations(java.util.Collection)if you want to override the existing values.- Parameters:
reservations- Zero or more reservations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withReservations
public DescribeInstancesResult withReservations(Collection<Reservation> reservations)
Zero or more reservations.
- Parameters:
reservations- Zero or more reservations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
The token to use to retrieve the next page of results. This value is
nullwhen there are no more results to return.- Parameters:
nextToken- The token to use to retrieve the next page of results. This value isnullwhen there are no more results to return.
-
getNextToken
public String getNextToken()
The token to use to retrieve the next page of results. This value is
nullwhen there are no more results to return.- Returns:
- The token to use to retrieve the next page of results. This value
is
nullwhen there are no more results to return.
-
withNextToken
public DescribeInstancesResult withNextToken(String nextToken)
The token to use to retrieve the next page of results. This value is
nullwhen there are no more results to return.- Parameters:
nextToken- The token to use to retrieve the next page of results. This value isnullwhen there are no more results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeInstancesResult clone()
-
-