Class Query
- 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Query()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Query
clone()
boolean
equals(Object obj)
List<Selector>
getSelectors()
List of selectors that define the query.int
hashCode()
void
setSelectors(Collection<Selector> selectors)
List of selectors that define the query.String
toString()
Returns a string representation of this object; useful for testing and debugging.Query
withSelectors(Selector... selectors)
List of selectors that define the query.Query
withSelectors(Collection<Selector> selectors)
List of selectors that define the query.
-
-
-
Method Detail
-
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)
orwithSelectors(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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-