@Generated(value="software.amazon.awssdk:codegen") public final class CaseFilter extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CaseFilter.Builder,CaseFilter>
A filter for cases. Only one value can be provided.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CaseFilter.Builder |
static class |
CaseFilter.Type |
| Modifier and Type | Method and Description |
|---|---|
List<CaseFilter> |
andAll()
Provides "and all" filtering.
|
static CaseFilter.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
FieldFilter |
field()
A list of fields to filter on.
|
static CaseFilter |
fromAndAll(List<CaseFilter> andAll)
Create an instance of this class with
andAll() initialized to the given value. |
static CaseFilter |
fromField(Consumer<FieldFilter.Builder> field)
Create an instance of this class with
field() initialized to the given value. |
static CaseFilter |
fromField(FieldFilter field)
Create an instance of this class with
field() initialized to the given value. |
static CaseFilter |
fromNot(CaseFilter not)
Create an instance of this class with
not() initialized to the given value. |
static CaseFilter |
fromNot(Consumer<CaseFilter.Builder> not)
Create an instance of this class with
not() initialized to the given value. |
static CaseFilter |
fromOrAll(List<CaseFilter> orAll)
Create an instance of this class with
orAll() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAndAll()
For responses, this returns true if the service returned a value for the AndAll property.
|
int |
hashCode() |
boolean |
hasOrAll()
For responses, this returns true if the service returned a value for the OrAll property.
|
CaseFilter |
not()
Returns the value of the Not property for this object.
|
List<CaseFilter> |
orAll()
Provides "or all" filtering.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CaseFilter.Builder> |
serializableBuilderClass() |
CaseFilter.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
CaseFilter.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasAndAll()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<CaseFilter> andAll()
Provides "and all" filtering.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAndAll() method.
public final FieldFilter field()
A list of fields to filter on.
public final CaseFilter not()
public final boolean hasOrAll()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final List<CaseFilter> orAll()
Provides "or all" filtering.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasOrAll() method.
public CaseFilter.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CaseFilter.Builder,CaseFilter>public static CaseFilter.Builder builder()
public static Class<? extends CaseFilter.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static CaseFilter fromAndAll(List<CaseFilter> andAll)
andAll() initialized to the given value.
Provides "and all" filtering.
andAll - Provides "and all" filtering.public static CaseFilter fromField(FieldFilter field)
field() initialized to the given value.
A list of fields to filter on.
field - A list of fields to filter on.public static CaseFilter fromField(Consumer<FieldFilter.Builder> field)
field() initialized to the given value.
A list of fields to filter on.
field - A list of fields to filter on.public static CaseFilter fromNot(CaseFilter not)
not() initialized to the given value.
Sets the value of the Not property for this object.not - The new value for the Not property for this object.public static CaseFilter fromNot(Consumer<CaseFilter.Builder> not)
not() initialized to the given value.
Sets the value of the Not property for this object.not - The new value for the Not property for this object.public static CaseFilter fromOrAll(List<CaseFilter> orAll)
orAll() initialized to the given value.
Provides "or all" filtering.
orAll - Provides "or all" filtering.public CaseFilter.Type type()
CaseFilter.Type.UNKNOWN_TO_SDK_VERSION if 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 be CaseFilter.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.