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 ListClustersRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)List<String>getClusterStates()The cluster state filters to apply when listing clusters.DategetCreatedAfter()The creation date and time beginning value filter for listing clusters .DategetCreatedBefore()The creation date and time end value filter for listing clusters .StringgetMarker()The pagination token that indicates the next set of results to retrieve.inthashCode()voidsetClusterStates(Collection<String> clusterStates)The cluster state filters to apply when listing clusters.voidsetCreatedAfter(Date createdAfter)The creation date and time beginning value filter for listing clusters .voidsetCreatedBefore(Date createdBefore)The creation date and time end value filter for listing clusters .voidsetMarker(String marker)The pagination token that indicates the next set of results to retrieve.StringtoString()Returns a string representation of this object; useful for testing and debugging.ListClustersRequestwithClusterStates(ClusterState... clusterStates)The cluster state filters to apply when listing clusters.ListClustersRequestwithClusterStates(String... clusterStates)The cluster state filters to apply when listing clusters.ListClustersRequestwithClusterStates(Collection<String> clusterStates)The cluster state filters to apply when listing clusters.ListClustersRequestwithCreatedAfter(Date createdAfter)The creation date and time beginning value filter for listing clusters .ListClustersRequestwithCreatedBefore(Date createdBefore)The creation date and time end value filter for listing clusters .ListClustersRequestwithMarker(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ListClustersRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-