public class Query
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Defines the query to run against an object.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<Selector> |
selectors
List of selectors that define the query.
|
Constructor and Description |
---|
Query() |
Modifier and Type | Method and Description |
---|---|
Query |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<Selector> |
getSelectors()
List of selectors that define the query.
|
int |
hashCode() |
void |
setSelectors(java.util.Collection<Selector> selectors)
List of selectors that define the query.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Query |
withSelectors(java.util.Collection<Selector> selectors)
List of selectors that define the query.
|
Query |
withSelectors(Selector... selectors)
List of selectors that define the query.
|
private SdkInternalList<Selector> selectors
List of selectors that define the query. An object must satisfy all of the selectors to match the query.
public java.util.List<Selector> getSelectors()
List of selectors that define the query. An object must satisfy all of the selectors to match the query.
public void setSelectors(java.util.Collection<Selector> selectors)
List of selectors that define the query. An object must satisfy all of the selectors to match the query.
selectors
- List of selectors that define the query. An object must satisfy
all of the selectors to match the query.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.
selectors
- List of selectors that define the query. An object must satisfy
all of the selectors to match the query.public Query withSelectors(java.util.Collection<Selector> selectors)
List of selectors that define the query. An object must satisfy all of the selectors to match the query.
selectors
- List of selectors that define the query. An object must satisfy
all of the selectors to match the query.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Query clone()
clone
in class java.lang.Object