@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeInstancesResult extends AmazonWebServiceResult<ResponseMetadata> 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. |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
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 Object
Object.toString()
public DescribeInstancesResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.