public class DescribeInstancesResult extends Object implements Serializable, Cloneable
Contains the response to a DescribeInstances request.
| Constructor and Description |
|---|
DescribeInstancesResult() |
| Modifier and Type | Method and Description |
|---|---|
DescribeInstancesResult |
clone() |
boolean |
equals(Object obj) |
List<Instance> |
getInstances()
An array of
Instance objects that describe the instances. |
int |
hashCode() |
void |
setInstances(Collection<Instance> instances)
An array of
Instance objects that describe the instances. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeInstancesResult |
withInstances(Collection<Instance> instances)
An array of
Instance objects that describe the instances. |
DescribeInstancesResult |
withInstances(Instance... instances)
An array of
Instance objects that describe the instances. |
public List<Instance> getInstances()
An array of Instance objects that describe the instances.
Instance objects that describe the
instances.public void setInstances(Collection<Instance> instances)
An array of Instance objects that describe the instances.
instances - An array of Instance objects that describe the
instances.public DescribeInstancesResult withInstances(Instance... instances)
An array of Instance objects that describe the instances.
NOTE: This method appends the values to the existing list (if
any). Use setInstances(java.util.Collection) or
withInstances(java.util.Collection) if you want to override the
existing values.
instances - An array of Instance objects that describe the
instances.public DescribeInstancesResult withInstances(Collection<Instance> instances)
An array of Instance objects that describe the instances.
instances - An array of Instance objects that describe the
instances.public String toString()
toString in class ObjectObject.toString()public DescribeInstancesResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.