com.amazonaws.services.elasticmapreduce.model
Class ListClustersRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.elasticmapreduce.model.ListClustersRequest
All Implemented Interfaces:
Serializable

public class ListClustersRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the ListClusters operation.

Provides the status of all clusters visible to this AWS account. Allows you to filter the list of clusters based on certain criteria; for example, filtering by cluster creation date and time or by status. This call returns a maximum of 50 clusters per call, but returns a marker to track the paging of the cluster list across multiple ListClusters calls.

See Also:
AmazonElasticMapReduce.listClusters(ListClustersRequest), Serialized Form

Constructor Summary
ListClustersRequest()
           
 
Method Summary
 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 is a random string indicating whether there are more results to fetch.
 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 is a random string indicating whether there are more results to fetch.
 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(Collection<String> clusterStates)
          The cluster state filters to apply when listing clusters.
 ListClustersRequest withClusterStates(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 is a random string indicating whether there are more results to fetch.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListClustersRequest

public ListClustersRequest()
Method Detail

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.

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.

withCreatedAfter

public ListClustersRequest withCreatedAfter(Date createdAfter)
The creation date and time beginning value filter for listing clusters.

Returns a reference to this object so that method calls can be chained together.

Parameters:
createdAfter - The creation date and time beginning value filter for listing clusters.
Returns:
A reference to this updated object so that method calls can be chained together.

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.

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.

withCreatedBefore

public ListClustersRequest withCreatedBefore(Date createdBefore)
The creation date and time end value filter for listing clusters.

Returns a reference to this object so that method calls can be chained together.

Parameters:
createdBefore - The creation date and time end value filter for listing clusters.
Returns:
A reference to this updated 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.

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.

withClusterStates

public ListClustersRequest withClusterStates(String... clusterStates)
The cluster state filters to apply when listing clusters.

Returns a reference to this object so that method calls can be chained together.

Parameters:
clusterStates - The cluster state filters to apply when listing clusters.
Returns:
A reference to this updated object so that method calls can be chained together.

withClusterStates

public ListClustersRequest withClusterStates(Collection<String> clusterStates)
The cluster state filters to apply when listing clusters.

Returns a reference to this object so that method calls can be chained together.

Parameters:
clusterStates - The cluster state filters to apply when listing clusters.
Returns:
A reference to this updated object so that method calls can be chained together.

withClusterStates

public ListClustersRequest withClusterStates(ClusterState... clusterStates)
The cluster state filters to apply when listing clusters.

Returns a reference to this object so that method calls can be chained together.

Parameters:
clusterStates - The cluster state filters to apply when listing clusters.
Returns:
A reference to this updated object so that method calls can be chained together.

getMarker

public String getMarker()
The pagination token is a random string indicating whether there are more results to fetch. Provide the pagination token from earlier API calls to retrieve the next page of results. When the value is null, all results have been returned.

Returns:
The pagination token is a random string indicating whether there are more results to fetch. Provide the pagination token from earlier API calls to retrieve the next page of results. When the value is null, all results have been returned.

setMarker

public void setMarker(String marker)
The pagination token is a random string indicating whether there are more results to fetch. Provide the pagination token from earlier API calls to retrieve the next page of results. When the value is null, all results have been returned.

Parameters:
marker - The pagination token is a random string indicating whether there are more results to fetch. Provide the pagination token from earlier API calls to retrieve the next page of results. When the value is null, all results have been returned.

withMarker

public ListClustersRequest withMarker(String marker)
The pagination token is a random string indicating whether there are more results to fetch. Provide the pagination token from earlier API calls to retrieve the next page of results. When the value is null, all results have been returned.

Returns a reference to this object so that method calls can be chained together.

Parameters:
marker - The pagination token is a random string indicating whether there are more results to fetch. Provide the pagination token from earlier API calls to retrieve the next page of results. When the value is null, all results have been returned.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.