Class ListClustersRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.elasticmapreduce.model.ListClustersRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class ListClustersRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
This input determines how the ListClusters action filters the list of clusters that it returns.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description ListClustersRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListClustersRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
List<String>
getClusterStates()
The cluster state filters to apply when listing clusters.Date
getCreatedAfter()
The creation date and time beginning value filter for listing clusters .Date
getCreatedBefore()
The creation date and time end value filter for listing clusters .String
getMarker()
The pagination token that indicates the next set of results to retrieve.int
hashCode()
void
setClusterStates(Collection<String> clusterStates)
The cluster state filters to apply when listing clusters.void
setCreatedAfter(Date createdAfter)
The creation date and time beginning value filter for listing clusters .void
setCreatedBefore(Date createdBefore)
The creation date and time end value filter for listing clusters .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.ListClustersRequest
withClusterStates(ClusterState... clusterStates)
The cluster state filters to apply when listing clusters.ListClustersRequest
withClusterStates(String... clusterStates)
The cluster state filters to apply when listing clusters.ListClustersRequest
withClusterStates(Collection<String> clusterStates)
The cluster state filters to apply when listing clusters.ListClustersRequest
withCreatedAfter(Date createdAfter)
The creation date and time beginning value filter for listing clusters .ListClustersRequest
withCreatedBefore(Date createdBefore)
The creation date and time end value filter for listing clusters .ListClustersRequest
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
-
-
-
-
Method Detail
-
setCreatedAfter
public void setCreatedAfter(Date createdAfter)
The creation date and time beginning value filter for listing clusters .
- Parameters:
createdAfter
- The creation date and time beginning value filter for listing clusters .
-
getCreatedAfter
public Date getCreatedAfter()
The creation date and time beginning value filter for listing clusters .
- Returns:
- The creation date and time beginning value filter for listing clusters .
-
withCreatedAfter
public ListClustersRequest withCreatedAfter(Date createdAfter)
The creation date and time beginning value filter for listing clusters .
- Parameters:
createdAfter
- The creation date and time beginning value filter for listing clusters .- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreatedBefore
public void setCreatedBefore(Date createdBefore)
The creation date and time end value filter for listing clusters .
- Parameters:
createdBefore
- The creation date and time end value filter for listing clusters .
-
getCreatedBefore
public Date getCreatedBefore()
The creation date and time end value filter for listing clusters .
- Returns:
- The creation date and time end value filter for listing clusters .
-
withCreatedBefore
public ListClustersRequest withCreatedBefore(Date createdBefore)
The creation date and time end value filter for listing clusters .
- Parameters:
createdBefore
- The creation date and time end value filter for listing clusters .- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getClusterStates
public List<String> getClusterStates()
The cluster state filters to apply when listing clusters.
- Returns:
- The cluster state filters to apply when listing clusters.
- See Also:
ClusterState
-
setClusterStates
public void setClusterStates(Collection<String> clusterStates)
The cluster state filters to apply when listing clusters.
- Parameters:
clusterStates
- The cluster state filters to apply when listing clusters.- See Also:
ClusterState
-
withClusterStates
public ListClustersRequest withClusterStates(String... clusterStates)
The cluster state filters to apply when listing clusters.
NOTE: This method appends the values to the existing list (if any). Use
setClusterStates(java.util.Collection)
orwithClusterStates(java.util.Collection)
if you want to override the existing values.- Parameters:
clusterStates
- The cluster state filters to apply when listing clusters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ClusterState
-
withClusterStates
public ListClustersRequest withClusterStates(Collection<String> clusterStates)
The cluster state filters to apply when listing clusters.
- Parameters:
clusterStates
- The cluster state filters to apply when listing clusters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ClusterState
-
withClusterStates
public ListClustersRequest withClusterStates(ClusterState... clusterStates)
The cluster state filters to apply when listing clusters.
- Parameters:
clusterStates
- The cluster state filters to apply when listing clusters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ClusterState
-
setMarker
public void setMarker(String marker)
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
public String 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
public ListClustersRequest withMarker(String marker)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ListClustersRequest 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:
Object.clone()
-
-