java.lang.Object
com.amazonaws.services.datapipeline.model.Query
All Implemented Interfaces:
Serializable, Cloneable

public class Query extends Object implements Serializable, Cloneable

Defines the query to run against an object.

See Also:
  • Constructor Details

    • Query

      public Query()
  • Method Details

    • getSelectors

      public List<Selector> getSelectors()

      List of selectors that define the query. An object must satisfy all of the selectors to match the query.

      Returns:
      List of selectors that define the query. An object must satisfy all of the selectors to match the query.
    • setSelectors

      public void setSelectors(Collection<Selector> selectors)

      List of selectors that define the query. An object must satisfy all of the selectors to match the query.

      Parameters:
      selectors - List of selectors that define the query. An object must satisfy all of the selectors to match the query.
    • withSelectors

      public Query withSelectors(Selector... selectors)

      List of selectors that define the query. An object must satisfy all of the selectors to match the query.

      NOTE: This method appends the values to the existing list (if any). Use setSelectors(java.util.Collection) or withSelectors(java.util.Collection) if you want to override the existing values.

      Parameters:
      selectors - List of selectors that define the query. An object must satisfy all of the selectors to match the query.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withSelectors

      public Query withSelectors(Collection<Selector> selectors)

      List of selectors that define the query. An object must satisfy all of the selectors to match the query.

      Parameters:
      selectors - List of selectors that define the query. An object must satisfy all of the selectors to match the query.
      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 Query clone()
      Overrides:
      clone in class Object