@Generated(value="software.amazon.awssdk:codegen") public final class SearchFilter extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SearchFilter.Builder,SearchFilter>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SearchFilter.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
attribute()
The result attribute to which the filter values are applied.
|
static SearchFilter.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasValues()
Returns true if the Values property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
String |
operator()
The operator to apply to the
Attribute with each of the Values. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends SearchFilter.Builder> |
serializableBuilderClass() |
SearchFilter.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
List<String> |
values()
The list of values applied to the
Attribute and Operator attributes. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String attribute()
The result attribute to which the filter values are applied. Valid values vary by API action.
public String operator()
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 boolean hasValues()
public List<String> values()
The list of values applied to the Attribute and Operator attributes. Number of values
and valid values vary by Attribute.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasValues() to see if a value was sent in this field.
Attribute and Operator attributes. Number of
values and valid values vary by Attribute.public SearchFilter.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SearchFilter.Builder,SearchFilter>public static SearchFilter.Builder builder()
public static Class<? extends SearchFilter.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.