@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListInstancesResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
This output contains the list of instances.
Constructor and Description |
---|
ListInstancesResult() |
Modifier and Type | Method and Description |
---|---|
ListInstancesResult |
clone() |
boolean |
equals(Object obj) |
List<Instance> |
getInstances()
The list of instances for the cluster and given filters.
|
String |
getMarker()
The pagination token that indicates the next set of results to retrieve.
|
int |
hashCode() |
void |
setInstances(Collection<Instance> instances)
The list of instances for the cluster and given filters.
|
void |
setMarker(String marker)
The pagination token that indicates the next set of results to retrieve.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ListInstancesResult |
withInstances(Collection<Instance> instances)
The list of instances for the cluster and given filters.
|
ListInstancesResult |
withInstances(Instance... instances)
The list of instances for the cluster and given filters.
|
ListInstancesResult |
withMarker(String marker)
The pagination token that indicates the next set of results to retrieve.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Instance> getInstances()
The list of instances for the cluster and given filters.
public void setInstances(Collection<Instance> instances)
The list of instances for the cluster and given filters.
instances
- The list of instances for the cluster and given filters.public ListInstancesResult withInstances(Instance... instances)
The list of instances for the cluster and given filters.
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
- The list of instances for the cluster and given filters.public ListInstancesResult withInstances(Collection<Instance> instances)
The list of instances for the cluster and given filters.
instances
- The list of instances for the cluster and given filters.public void setMarker(String marker)
The pagination token that indicates the next set of results to retrieve.
marker
- The pagination token that indicates the next set of results to retrieve.public String getMarker()
The pagination token that indicates the next set of results to retrieve.
public ListInstancesResult withMarker(String marker)
The pagination token that indicates the next set of results to retrieve.
marker
- The pagination token that indicates the next set of results to retrieve.public String toString()
toString
in class Object
Object.toString()
public ListInstancesResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.