Package com.amazonaws.services.ec2.model
Class DescribeReservedInstancesResult
- java.lang.Object
-
- com.amazonaws.services.ec2.model.DescribeReservedInstancesResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class DescribeReservedInstancesResult extends Object implements Serializable, Cloneable
Contains the output for DescribeReservedInstances.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeReservedInstancesResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeReservedInstancesResultclone()booleanequals(Object obj)List<ReservedInstances>getReservedInstances()A list of Reserved Instances.inthashCode()voidsetReservedInstances(Collection<ReservedInstances> reservedInstances)A list of Reserved Instances.StringtoString()Returns a string representation of this object; useful for testing and debugging.DescribeReservedInstancesResultwithReservedInstances(ReservedInstances... reservedInstances)A list of Reserved Instances.DescribeReservedInstancesResultwithReservedInstances(Collection<ReservedInstances> reservedInstances)A list of Reserved Instances.
-
-
-
Method Detail
-
getReservedInstances
public List<ReservedInstances> getReservedInstances()
A list of Reserved Instances.
- Returns:
- A list of Reserved Instances.
-
setReservedInstances
public void setReservedInstances(Collection<ReservedInstances> reservedInstances)
A list of Reserved Instances.
- Parameters:
reservedInstances- A list of Reserved Instances.
-
withReservedInstances
public DescribeReservedInstancesResult withReservedInstances(ReservedInstances... reservedInstances)
A list of Reserved Instances.
NOTE: This method appends the values to the existing list (if any). Use
setReservedInstances(java.util.Collection)orwithReservedInstances(java.util.Collection)if you want to override the existing values.- Parameters:
reservedInstances- A list of Reserved Instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withReservedInstances
public DescribeReservedInstancesResult withReservedInstances(Collection<ReservedInstances> reservedInstances)
A list of Reserved Instances.
- Parameters:
reservedInstances- A list of Reserved Instances.- 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 DescribeReservedInstancesResult clone()
-
-