@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SearchFilter extends Object implements Serializable, Cloneable
Describes criteria to restrict a list of results.
For operators that apply a single value to the attribute, the filter is evaluated as follows:
Attribute Operator Values[1]
Some operators, e.g. in
, can apply multiple values. In this case, the filter is evaluated as a logical
union (OR) of applications of the operator to the attribute with each one of the values:
(Attribute Operator Values[1]) OR (Attribute Operator Values[2]) OR ...
The valid values for attributes of SearchFilter
depend on the API action. For valid values, see the
reference page for the API action you're calling that takes a SearchFilter
parameter.
Constructor and Description |
---|
SearchFilter() |
Modifier and Type | Method and Description |
---|---|
SearchFilter |
clone() |
boolean |
equals(Object obj) |
String |
getAttribute()
The result attribute to which the filter values are applied.
|
String |
getOperator()
The operator to apply to the
Attribute with each of the Values . |
List<String> |
getValues()
The list of values applied to the
Attribute and Operator attributes. |
int |
hashCode() |
void |
setAttribute(String attribute)
The result attribute to which the filter values are applied.
|
void |
setOperator(String operator)
The operator to apply to the
Attribute with each of the Values . |
void |
setValues(Collection<String> values)
The list of values applied to the
Attribute and Operator attributes. |
String |
toString()
Returns a string representation of this object.
|
SearchFilter |
withAttribute(String attribute)
The result attribute to which the filter values are applied.
|
SearchFilter |
withOperator(String operator)
The operator to apply to the
Attribute with each of the Values . |
SearchFilter |
withValues(Collection<String> values)
The list of values applied to the
Attribute and Operator attributes. |
SearchFilter |
withValues(String... values)
The list of values applied to the
Attribute and Operator attributes. |
public void setAttribute(String attribute)
The result attribute to which the filter values are applied. Valid values vary by API action.
attribute
- The result attribute to which the filter values are applied. Valid values vary by API action.public String getAttribute()
The result attribute to which the filter values are applied. Valid values vary by API action.
public SearchFilter withAttribute(String attribute)
The result attribute to which the filter values are applied. Valid values vary by API action.
attribute
- The result attribute to which the filter values are applied. Valid values vary by API action.public void setOperator(String operator)
The operator to apply to the Attribute
with each of the Values
. Valid values vary by
Attribute
.
operator
- The operator to apply to the Attribute
with each of the Values
. Valid values
vary by Attribute
.public String getOperator()
The operator to apply to the Attribute
with each of the Values
. Valid values vary by
Attribute
.
Attribute
with each of the Values
. Valid values
vary by Attribute
.public SearchFilter withOperator(String operator)
The operator to apply to the Attribute
with each of the Values
. Valid values vary by
Attribute
.
operator
- The operator to apply to the Attribute
with each of the Values
. Valid values
vary by Attribute
.public List<String> getValues()
The list of values applied to the Attribute
and Operator
attributes. Number of values
and valid values vary by Attribute
.
Attribute
and Operator
attributes. Number of
values and valid values vary by Attribute
.public void setValues(Collection<String> values)
The list of values applied to the Attribute
and Operator
attributes. Number of values
and valid values vary by Attribute
.
values
- The list of values applied to the Attribute
and Operator
attributes. Number of
values and valid values vary by Attribute
.public SearchFilter withValues(String... values)
The list of values applied to the Attribute
and Operator
attributes. Number of values
and valid values vary by Attribute
.
NOTE: This method appends the values to the existing list (if any). Use
setValues(java.util.Collection)
or withValues(java.util.Collection)
if you want to override the
existing values.
values
- The list of values applied to the Attribute
and Operator
attributes. Number of
values and valid values vary by Attribute
.public SearchFilter withValues(Collection<String> values)
The list of values applied to the Attribute
and Operator
attributes. Number of values
and valid values vary by Attribute
.
values
- The list of values applied to the Attribute
and Operator
attributes. Number of
values and valid values vary by Attribute
.public String toString()
toString
in class Object
Object.toString()
public SearchFilter clone()