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:
  • Constructor Details

    • ListClustersRequest

      public ListClustersRequest()
  • Method Details

    • 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:
    • 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:
    • 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) or withClusterStates(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:
    • 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:
    • 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:
    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 class AmazonWebServiceRequest
      See Also: