@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeReservedInstancesResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Contains the output for DescribeReservedInstances.
Constructor and Description |
---|
DescribeReservedInstancesResult() |
Modifier and Type | Method and Description |
---|---|
DescribeReservedInstancesResult |
clone() |
boolean |
equals(Object obj) |
List<ReservedInstances> |
getReservedInstances()
A list of Reserved Instances.
|
int |
hashCode() |
void |
setReservedInstances(Collection<ReservedInstances> reservedInstances)
A list of Reserved Instances.
|
String |
toString()
Returns a string representation of this object.
|
DescribeReservedInstancesResult |
withReservedInstances(Collection<ReservedInstances> reservedInstances)
A list of Reserved Instances.
|
DescribeReservedInstancesResult |
withReservedInstances(ReservedInstances... reservedInstances)
A list of Reserved Instances.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<ReservedInstances> getReservedInstances()
A list of Reserved Instances.
public void setReservedInstances(Collection<ReservedInstances> reservedInstances)
A list of Reserved Instances.
reservedInstances
- A list of Reserved Instances.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)
or withReservedInstances(java.util.Collection)
if
you want to override the existing values.
reservedInstances
- A list of Reserved Instances.public DescribeReservedInstancesResult withReservedInstances(Collection<ReservedInstances> reservedInstances)
A list of Reserved Instances.
reservedInstances
- A list of Reserved Instances.public String toString()
toString
in class Object
Object.toString()
public DescribeReservedInstancesResult clone()