public class ListInstancesRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
This input determines which instances to list.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
clusterId
The identifier of the cluster for which to list the instances.
|
private java.lang.String |
instanceGroupId
The identifier of the instance group for which to list the instances.
|
private SdkInternalList<java.lang.String> |
instanceGroupTypes
The type of instance group for which to list the instances.
|
private SdkInternalList<java.lang.String> |
instanceStates
A list of instance states that will filter the instances returned with
this request.
|
private java.lang.String |
marker
The pagination token that indicates the next set of results to retrieve.
|
NOOP
Constructor and Description |
---|
ListInstancesRequest() |
Modifier and Type | Method and Description |
---|---|
ListInstancesRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClusterId()
The identifier of the cluster for which to list the instances.
|
java.lang.String |
getInstanceGroupId()
The identifier of the instance group for which to list the instances.
|
java.util.List<java.lang.String> |
getInstanceGroupTypes()
The type of instance group for which to list the instances.
|
java.util.List<java.lang.String> |
getInstanceStates()
A list of instance states that will filter the instances returned with
this request.
|
java.lang.String |
getMarker()
The pagination token that indicates the next set of results to retrieve.
|
int |
hashCode() |
void |
setClusterId(java.lang.String clusterId)
The identifier of the cluster for which to list the instances.
|
void |
setInstanceGroupId(java.lang.String instanceGroupId)
The identifier of the instance group for which to list the instances.
|
void |
setInstanceGroupTypes(java.util.Collection<java.lang.String> instanceGroupTypes)
The type of instance group for which to list the instances.
|
void |
setInstanceStates(java.util.Collection<java.lang.String> instanceStates)
A list of instance states that will filter the instances returned with
this request.
|
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.
|
ListInstancesRequest |
withClusterId(java.lang.String clusterId)
The identifier of the cluster for which to list the instances.
|
ListInstancesRequest |
withInstanceGroupId(java.lang.String instanceGroupId)
The identifier of the instance group for which to list the instances.
|
ListInstancesRequest |
withInstanceGroupTypes(java.util.Collection<java.lang.String> instanceGroupTypes)
The type of instance group for which to list the instances.
|
ListInstancesRequest |
withInstanceGroupTypes(InstanceGroupType... instanceGroupTypes)
The type of instance group for which to list the instances.
|
ListInstancesRequest |
withInstanceGroupTypes(java.lang.String... instanceGroupTypes)
The type of instance group for which to list the instances.
|
ListInstancesRequest |
withInstanceStates(java.util.Collection<java.lang.String> instanceStates)
A list of instance states that will filter the instances returned with
this request.
|
ListInstancesRequest |
withInstanceStates(InstanceState... instanceStates)
A list of instance states that will filter the instances returned with
this request.
|
ListInstancesRequest |
withInstanceStates(java.lang.String... instanceStates)
A list of instance states that will filter the instances returned with
this request.
|
ListInstancesRequest |
withMarker(java.lang.String marker)
The pagination token that indicates the next set of results to retrieve.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String clusterId
The identifier of the cluster for which to list the instances.
private java.lang.String instanceGroupId
The identifier of the instance group for which to list the instances.
private SdkInternalList<java.lang.String> instanceGroupTypes
The type of instance group for which to list the instances.
private SdkInternalList<java.lang.String> instanceStates
A list of instance states that will filter the instances returned with this request.
private java.lang.String marker
The pagination token that indicates the next set of results to retrieve.
public void setClusterId(java.lang.String clusterId)
The identifier of the cluster for which to list the instances.
clusterId
- The identifier of the cluster for which to list the instances.public java.lang.String getClusterId()
The identifier of the cluster for which to list the instances.
public ListInstancesRequest withClusterId(java.lang.String clusterId)
The identifier of the cluster for which to list the instances.
clusterId
- The identifier of the cluster for which to list the instances.public void setInstanceGroupId(java.lang.String instanceGroupId)
The identifier of the instance group for which to list the instances.
instanceGroupId
- The identifier of the instance group for which to list the
instances.public java.lang.String getInstanceGroupId()
The identifier of the instance group for which to list the instances.
public ListInstancesRequest withInstanceGroupId(java.lang.String instanceGroupId)
The identifier of the instance group for which to list the instances.
instanceGroupId
- The identifier of the instance group for which to list the
instances.public java.util.List<java.lang.String> getInstanceGroupTypes()
The type of instance group for which to list the instances.
InstanceGroupType
public void setInstanceGroupTypes(java.util.Collection<java.lang.String> instanceGroupTypes)
The type of instance group for which to list the instances.
instanceGroupTypes
- The type of instance group for which to list the instances.InstanceGroupType
public ListInstancesRequest withInstanceGroupTypes(java.lang.String... instanceGroupTypes)
The type of instance group for which to list the instances.
NOTE: This method appends the values to the existing list (if
any). Use setInstanceGroupTypes(java.util.Collection)
or
withInstanceGroupTypes(java.util.Collection)
if you want to
override the existing values.
instanceGroupTypes
- The type of instance group for which to list the instances.InstanceGroupType
public ListInstancesRequest withInstanceGroupTypes(java.util.Collection<java.lang.String> instanceGroupTypes)
The type of instance group for which to list the instances.
instanceGroupTypes
- The type of instance group for which to list the instances.InstanceGroupType
public ListInstancesRequest withInstanceGroupTypes(InstanceGroupType... instanceGroupTypes)
The type of instance group for which to list the instances.
instanceGroupTypes
- The type of instance group for which to list the instances.InstanceGroupType
public java.util.List<java.lang.String> getInstanceStates()
A list of instance states that will filter the instances returned with this request.
InstanceState
public void setInstanceStates(java.util.Collection<java.lang.String> instanceStates)
A list of instance states that will filter the instances returned with this request.
instanceStates
- A list of instance states that will filter the instances returned
with this request.InstanceState
public ListInstancesRequest withInstanceStates(java.lang.String... instanceStates)
A list of instance states that will filter the instances returned with this request.
NOTE: This method appends the values to the existing list (if
any). Use setInstanceStates(java.util.Collection)
or
withInstanceStates(java.util.Collection)
if you want to override
the existing values.
instanceStates
- A list of instance states that will filter the instances returned
with this request.InstanceState
public ListInstancesRequest withInstanceStates(java.util.Collection<java.lang.String> instanceStates)
A list of instance states that will filter the instances returned with this request.
instanceStates
- A list of instance states that will filter the instances returned
with this request.InstanceState
public ListInstancesRequest withInstanceStates(InstanceState... instanceStates)
A list of instance states that will filter the instances returned with this request.
instanceStates
- A list of instance states that will filter the instances returned
with this request.InstanceState
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 ListInstancesRequest 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 ListInstancesRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()