Class ListInstancesRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
This input determines which instances to list.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The identifier of the cluster for which to list the instances.The identifier of the instance group for which to list the instances.The type of instance group for which to list the instances.A list of instance states that will filter the instances returned with this request.The pagination token that indicates the next set of results to retrieve.int
hashCode()
void
setClusterId
(String clusterId) The identifier of the cluster for which to list the instances.void
setInstanceGroupId
(String instanceGroupId) The identifier of the instance group for which to list the instances.void
setInstanceGroupTypes
(Collection<String> instanceGroupTypes) The type of instance group for which to list the instances.void
setInstanceStates
(Collection<String> instanceStates) A list of instance states that will filter the instances returned with this request.void
The pagination token that indicates the next set of results to retrieve.toString()
Returns a string representation of this object; useful for testing and debugging.withClusterId
(String clusterId) The identifier of the cluster for which to list the instances.withInstanceGroupId
(String instanceGroupId) The identifier of the instance group for which to list the instances.withInstanceGroupTypes
(InstanceGroupType... instanceGroupTypes) The type of instance group for which to list the instances.withInstanceGroupTypes
(String... instanceGroupTypes) The type of instance group for which to list the instances.withInstanceGroupTypes
(Collection<String> instanceGroupTypes) The type of instance group for which to list the instances.withInstanceStates
(InstanceState... instanceStates) A list of instance states that will filter the instances returned with this request.withInstanceStates
(String... instanceStates) A list of instance states that will filter the instances returned with this request.withInstanceStates
(Collection<String> instanceStates) A list of instance states that will filter the instances returned with this request.withMarker
(String marker) The pagination token that indicates the next set of results to retrieve.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
Constructor Details
-
ListInstancesRequest
public ListInstancesRequest()
-
-
Method Details
-
setClusterId
The identifier of the cluster for which to list the instances.
- Parameters:
clusterId
- The identifier of the cluster for which to list the instances.
-
getClusterId
The identifier of the cluster for which to list the instances.
- Returns:
- The identifier of the cluster for which to list the instances.
-
withClusterId
The identifier of the cluster for which to list the instances.
- Parameters:
clusterId
- The identifier of the cluster for which to list the instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceGroupId
The identifier of the instance group for which to list the instances.
- Parameters:
instanceGroupId
- The identifier of the instance group for which to list the instances.
-
getInstanceGroupId
The identifier of the instance group for which to list the instances.
- Returns:
- The identifier of the instance group for which to list the instances.
-
withInstanceGroupId
The identifier of the instance group for which to list the instances.
- Parameters:
instanceGroupId
- The identifier of the instance group for which to list the instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getInstanceGroupTypes
The type of instance group for which to list the instances.
- Returns:
- The type of instance group for which to list the instances.
- See Also:
-
setInstanceGroupTypes
The type of instance group for which to list the instances.
- Parameters:
instanceGroupTypes
- The type of instance group for which to list the instances.- See Also:
-
withInstanceGroupTypes
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)
orwithInstanceGroupTypes(java.util.Collection)
if you want to override the existing values.- Parameters:
instanceGroupTypes
- The type of instance group for which to list the instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
withInstanceGroupTypes
The type of instance group for which to list the instances.
- Parameters:
instanceGroupTypes
- The type of instance group for which to list the instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
withInstanceGroupTypes
The type of instance group for which to list the instances.
- Parameters:
instanceGroupTypes
- The type of instance group for which to list the instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
getInstanceStates
A list of instance states that will filter the instances returned with this request.
- Returns:
- A list of instance states that will filter the instances returned with this request.
- See Also:
-
setInstanceStates
A list of instance states that will filter the instances returned with this request.
- Parameters:
instanceStates
- A list of instance states that will filter the instances returned with this request.- See Also:
-
withInstanceStates
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)
orwithInstanceStates(java.util.Collection)
if you want to override the existing values.- Parameters:
instanceStates
- A list of instance states that will filter the instances returned with this request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
withInstanceStates
A list of instance states that will filter the instances returned with this request.
- Parameters:
instanceStates
- A list of instance states that will filter the instances returned with this request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
withInstanceStates
A list of instance states that will filter the instances returned with this request.
- Parameters:
instanceStates
- A list of instance states that will filter the instances returned with this request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setMarker
The pagination token that indicates the next set of results to retrieve.
- Parameters:
marker
- The pagination token that indicates the next set of results to retrieve.
-
getMarker
The pagination token that indicates the next set of results to retrieve.
- Returns:
- The pagination token that indicates the next set of results to retrieve.
-
withMarker
The pagination token that indicates the next set of results to retrieve.
- Parameters:
marker
- The pagination token that indicates the next set of results to retrieve.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-