Class ComparisonFilter
-
- All Implemented Interfaces:
public final class ComparisonFilter
A filter used to compare a specified attribute key to a given value using a defined comparison operation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ComparisonFilter.Builder
A builder for ComparisonFilter.
public final class
ComparisonFilter.Type
Specifies the comparison operator:
eq
,ne
,gt
,gte
,lt
,lte
.eq
: equalsne
: not equalgt
: greater thangte
: greater than or equallt
: less thanlte
: less than or equal
public final class
ComparisonFilter.Value
The value to compare against the attribute key; supports string, number, or boolean types.
-
Method Summary
Modifier and Type Method Description final String
key()
The key to compare against the value. final ComparisonFilter.Type
type()
Specifies the comparison operator: eq
,ne
,gt
,gte
,lt
,lte
.final ComparisonFilter.Value
value()
The value to compare against the attribute key; supports string, number, or boolean types. final JsonField<String>
_key()
Returns the raw JSON value of key. final JsonField<ComparisonFilter.Type>
_type()
Returns the raw JSON value of type. final JsonField<ComparisonFilter.Value>
_value()
Returns the raw JSON value of value. final Map<String, JsonValue>
_additionalProperties()
final ComparisonFilter.Builder
toBuilder()
final ComparisonFilter
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ComparisonFilter.Builder
builder()
Returns a mutable builder for constructing an instance of ComparisonFilter. -
-
Method Detail
-
type
final ComparisonFilter.Type type()
Specifies the comparison operator:
eq
,ne
,gt
,gte
,lt
,lte
.eq
: equalsne
: not equalgt
: greater thangte
: greater than or equallt
: less thanlte
: less than or equal
-
value
final ComparisonFilter.Value value()
The value to compare against the attribute key; supports string, number, or boolean types.
-
_key
final JsonField<String> _key()
Returns the raw JSON value of key.
Unlike key, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<ComparisonFilter.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_value
final JsonField<ComparisonFilter.Value> _value()
Returns the raw JSON value of value.
Unlike value, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ComparisonFilter.Builder toBuilder()
-
validate
final ComparisonFilter validate()
-
builder
final static ComparisonFilter.Builder builder()
Returns a mutable builder for constructing an instance of ComparisonFilter.
The following fields are required:
.key() .type() .value()
-
-
-
-