public class DescribeInstancesResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the response to a DescribeInstances
request.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<Instance> |
instances
An array of
Instance objects that describe the instances. |
Constructor and Description |
---|
DescribeInstancesResult() |
Modifier and Type | Method and Description |
---|---|
DescribeInstancesResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<Instance> |
getInstances()
An array of
Instance objects that describe the instances. |
int |
hashCode() |
void |
setInstances(java.util.Collection<Instance> instances)
An array of
Instance objects that describe the instances. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeInstancesResult |
withInstances(java.util.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. |
private SdkInternalList<Instance> instances
An array of Instance
objects that describe the instances.
public java.util.List<Instance> getInstances()
An array of Instance
objects that describe the instances.
Instance
objects that describe the
instances.public void setInstances(java.util.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(java.util.Collection<Instance> instances)
An array of Instance
objects that describe the instances.
instances
- An array of Instance
objects that describe the
instances.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DescribeInstancesResult clone()
clone
in class java.lang.Object