@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeInstancesResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DescribeInstancesResult() |
Modifier and Type | Method and Description |
---|---|
DescribeInstancesResult |
clone() |
boolean |
equals(Object obj) |
List<Instance> |
getInstances()
A collection of objects containing properties for each instance returned.
|
String |
getNextToken()
A token that indicates where to resume retrieving results on the next call to this operation.
|
int |
hashCode() |
void |
setInstances(Collection<Instance> instances)
A collection of objects containing properties for each instance returned.
|
void |
setNextToken(String nextToken)
A token that indicates where to resume retrieving results on the next call to this operation.
|
String |
toString()
Returns a string representation of this object.
|
DescribeInstancesResult |
withInstances(Collection<Instance> instances)
A collection of objects containing properties for each instance returned.
|
DescribeInstancesResult |
withInstances(Instance... instances)
A collection of objects containing properties for each instance returned.
|
DescribeInstancesResult |
withNextToken(String nextToken)
A token that indicates where to resume retrieving results on the next call to this operation.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Instance> getInstances()
A collection of objects containing properties for each instance returned.
public void setInstances(Collection<Instance> instances)
A collection of objects containing properties for each instance returned.
instances
- A collection of objects containing properties for each instance returned.public DescribeInstancesResult withInstances(Instance... instances)
A collection of objects containing properties for each instance returned.
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
- A collection of objects containing properties for each instance returned.public DescribeInstancesResult withInstances(Collection<Instance> instances)
A collection of objects containing properties for each instance returned.
instances
- A collection of objects containing properties for each instance returned.public void setNextToken(String nextToken)
A token that indicates where to resume retrieving results on the next call to this operation. If no token is returned, these results represent the end of the list.
nextToken
- A token that indicates where to resume retrieving results on the next call to this operation. If no token
is returned, these results represent the end of the list.public String getNextToken()
A token that indicates where to resume retrieving results on the next call to this operation. If no token is returned, these results represent the end of the list.
public DescribeInstancesResult withNextToken(String nextToken)
A token that indicates where to resume retrieving results on the next call to this operation. If no token is returned, these results represent the end of the list.
nextToken
- A token that indicates where to resume retrieving results on the next call to this operation. If no token
is returned, these results represent the end of the list.public String toString()
toString
in class Object
Object.toString()
public DescribeInstancesResult clone()