public class ListInstancesResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
This output contains the list of instances.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<Instance> |
instances
The list of instances for the cluster and given filters.
|
private java.lang.String |
marker
The pagination token that indicates the next set of results to retrieve.
|
Constructor and Description |
---|
ListInstancesResult() |
Modifier and Type | Method and Description |
---|---|
ListInstancesResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<Instance> |
getInstances()
The list of instances for the cluster and given filters.
|
java.lang.String |
getMarker()
The pagination token that indicates the next set of results to retrieve.
|
int |
hashCode() |
void |
setInstances(java.util.Collection<Instance> instances)
The list of instances for the cluster and given filters.
|
void |
setMarker(java.lang.String marker)
The pagination token that indicates the next set of results to retrieve.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListInstancesResult |
withInstances(java.util.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(java.lang.String marker)
The pagination token that indicates the next set of results to retrieve.
|
private SdkInternalList<Instance> instances
The list of instances for the cluster and given filters.
private java.lang.String marker
The pagination token that indicates the next set of results to retrieve.
public java.util.List<Instance> getInstances()
The list of instances for the cluster and given filters.
public void setInstances(java.util.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(java.util.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(java.lang.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 java.lang.String getMarker()
The pagination token that indicates the next set of results to retrieve.
public ListInstancesResult withMarker(java.lang.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 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 ListInstancesResult clone()
clone
in class java.lang.Object