Class FieldFilter
- java.lang.Object
-
- software.amazon.awssdk.services.connectcases.model.FieldFilter
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<FieldFilter.Builder,FieldFilter>
@Generated("software.amazon.awssdk:codegen") public final class FieldFilter extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FieldFilter.Builder,FieldFilter>
A filter for fields. Only one value can be provided.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFieldFilter.Builderstatic classFieldFilter.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FieldFilter.Builderbuilder()FieldValuecontains()Object containing field identifier and value information.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)FieldValueequalTo()Object containing field identifier and value information.static FieldFilterfromContains(Consumer<FieldValue.Builder> contains)Create an instance of this class withcontains()initialized to the given value.static FieldFilterfromContains(FieldValue contains)Create an instance of this class withcontains()initialized to the given value.static FieldFilterfromEqualTo(Consumer<FieldValue.Builder> equalTo)Create an instance of this class withequalTo()initialized to the given value.static FieldFilterfromEqualTo(FieldValue equalTo)Create an instance of this class withequalTo()initialized to the given value.static FieldFilterfromGreaterThan(Consumer<FieldValue.Builder> greaterThan)Create an instance of this class withgreaterThan()initialized to the given value.static FieldFilterfromGreaterThan(FieldValue greaterThan)Create an instance of this class withgreaterThan()initialized to the given value.static FieldFilterfromGreaterThanOrEqualTo(Consumer<FieldValue.Builder> greaterThanOrEqualTo)Create an instance of this class withgreaterThanOrEqualTo()initialized to the given value.static FieldFilterfromGreaterThanOrEqualTo(FieldValue greaterThanOrEqualTo)Create an instance of this class withgreaterThanOrEqualTo()initialized to the given value.static FieldFilterfromLessThan(Consumer<FieldValue.Builder> lessThan)Create an instance of this class withlessThan()initialized to the given value.static FieldFilterfromLessThan(FieldValue lessThan)Create an instance of this class withlessThan()initialized to the given value.static FieldFilterfromLessThanOrEqualTo(Consumer<FieldValue.Builder> lessThanOrEqualTo)Create an instance of this class withlessThanOrEqualTo()initialized to the given value.static FieldFilterfromLessThanOrEqualTo(FieldValue lessThanOrEqualTo)Create an instance of this class withlessThanOrEqualTo()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)FieldValuegreaterThan()Object containing field identifier and value information.FieldValuegreaterThanOrEqualTo()Object containing field identifier and value information.inthashCode()FieldValuelessThan()Object containing field identifier and value information.FieldValuelessThanOrEqualTo()Object containing field identifier and value information.List<SdkField<?>>sdkFields()static Class<? extends FieldFilter.Builder>serializableBuilderClass()FieldFilter.BuildertoBuilder()StringtoString()Returns a string representation of this object.FieldFilter.Typetype()Retrieve an enum value representing which member of this object is populated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
contains
public final FieldValue contains()
Object containing field identifier and value information.
- Returns:
- Object containing field identifier and value information.
-
equalTo
public final FieldValue equalTo()
Object containing field identifier and value information.
- Returns:
- Object containing field identifier and value information.
-
greaterThan
public final FieldValue greaterThan()
Object containing field identifier and value information.
- Returns:
- Object containing field identifier and value information.
-
greaterThanOrEqualTo
public final FieldValue greaterThanOrEqualTo()
Object containing field identifier and value information.
- Returns:
- Object containing field identifier and value information.
-
lessThan
public final FieldValue lessThan()
Object containing field identifier and value information.
- Returns:
- Object containing field identifier and value information.
-
lessThanOrEqualTo
public final FieldValue lessThanOrEqualTo()
Object containing field identifier and value information.
- Returns:
- Object containing field identifier and value information.
-
toBuilder
public FieldFilter.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<FieldFilter.Builder,FieldFilter>
-
builder
public static FieldFilter.Builder builder()
-
serializableBuilderClass
public static Class<? extends FieldFilter.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
fromContains
public static FieldFilter fromContains(FieldValue contains)
Create an instance of this class withcontains()initialized to the given value.Object containing field identifier and value information.
- Parameters:
contains- Object containing field identifier and value information.
-
fromContains
public static FieldFilter fromContains(Consumer<FieldValue.Builder> contains)
Create an instance of this class withcontains()initialized to the given value.Object containing field identifier and value information.
- Parameters:
contains- Object containing field identifier and value information.
-
fromEqualTo
public static FieldFilter fromEqualTo(FieldValue equalTo)
Create an instance of this class withequalTo()initialized to the given value.Object containing field identifier and value information.
- Parameters:
equalTo- Object containing field identifier and value information.
-
fromEqualTo
public static FieldFilter fromEqualTo(Consumer<FieldValue.Builder> equalTo)
Create an instance of this class withequalTo()initialized to the given value.Object containing field identifier and value information.
- Parameters:
equalTo- Object containing field identifier and value information.
-
fromGreaterThan
public static FieldFilter fromGreaterThan(FieldValue greaterThan)
Create an instance of this class withgreaterThan()initialized to the given value.Object containing field identifier and value information.
- Parameters:
greaterThan- Object containing field identifier and value information.
-
fromGreaterThan
public static FieldFilter fromGreaterThan(Consumer<FieldValue.Builder> greaterThan)
Create an instance of this class withgreaterThan()initialized to the given value.Object containing field identifier and value information.
- Parameters:
greaterThan- Object containing field identifier and value information.
-
fromGreaterThanOrEqualTo
public static FieldFilter fromGreaterThanOrEqualTo(FieldValue greaterThanOrEqualTo)
Create an instance of this class withgreaterThanOrEqualTo()initialized to the given value.Object containing field identifier and value information.
- Parameters:
greaterThanOrEqualTo- Object containing field identifier and value information.
-
fromGreaterThanOrEqualTo
public static FieldFilter fromGreaterThanOrEqualTo(Consumer<FieldValue.Builder> greaterThanOrEqualTo)
Create an instance of this class withgreaterThanOrEqualTo()initialized to the given value.Object containing field identifier and value information.
- Parameters:
greaterThanOrEqualTo- Object containing field identifier and value information.
-
fromLessThan
public static FieldFilter fromLessThan(FieldValue lessThan)
Create an instance of this class withlessThan()initialized to the given value.Object containing field identifier and value information.
- Parameters:
lessThan- Object containing field identifier and value information.
-
fromLessThan
public static FieldFilter fromLessThan(Consumer<FieldValue.Builder> lessThan)
Create an instance of this class withlessThan()initialized to the given value.Object containing field identifier and value information.
- Parameters:
lessThan- Object containing field identifier and value information.
-
fromLessThanOrEqualTo
public static FieldFilter fromLessThanOrEqualTo(FieldValue lessThanOrEqualTo)
Create an instance of this class withlessThanOrEqualTo()initialized to the given value.Object containing field identifier and value information.
- Parameters:
lessThanOrEqualTo- Object containing field identifier and value information.
-
fromLessThanOrEqualTo
public static FieldFilter fromLessThanOrEqualTo(Consumer<FieldValue.Builder> lessThanOrEqualTo)
Create an instance of this class withlessThanOrEqualTo()initialized to the given value.Object containing field identifier and value information.
- Parameters:
lessThanOrEqualTo- Object containing field identifier and value information.
-
type
public FieldFilter.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beFieldFilter.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beFieldFilter.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-