@Generated(value="software.amazon.awssdk:codegen") public final class Filter extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Filter.Builder,Filter>
Describes a filter for choosing a subset of objects. Each filter consists of a condition and a match statement. The
condition is either IS or IS_NOT, which specifies whether to include or exclude the objects
that match the statement, respectively. The match statement consists of a key and a value.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Filter.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Filter.Builder |
builder() |
FilterConditionString |
condition()
The condition to apply.
|
String |
conditionAsString()
The condition to apply.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
key()
The name of the parameter to filter on.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Filter.Builder> |
serializableBuilderClass() |
Filter.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
value()
The value to match.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String key()
The name of the parameter to filter on.
public final String value()
The value to match.
public final FilterConditionString condition()
The condition to apply. To include the objects that match the statement, specify IS. To exclude
matching objects, specify IS_NOT.
If the service returns an enum value that is not available in the current SDK version, condition will
return FilterConditionString.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from conditionAsString().
IS. To
exclude matching objects, specify IS_NOT.FilterConditionStringpublic final String conditionAsString()
The condition to apply. To include the objects that match the statement, specify IS. To exclude
matching objects, specify IS_NOT.
If the service returns an enum value that is not available in the current SDK version, condition will
return FilterConditionString.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from conditionAsString().
IS. To
exclude matching objects, specify IS_NOT.FilterConditionStringpublic Filter.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Filter.Builder,Filter>public static Filter.Builder builder()
public static Class<? extends Filter.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.