Class ComparisonFilter
-
- All Implemented Interfaces:
public final class ComparisonFilterA 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 classComparisonFilter.BuilderA builder for ComparisonFilter.
public final classComparisonFilter.TypeSpecifies the comparison operator:
eq,ne,gt,gte,lt,lte,in,nin.eq: equalsne: not equalgt: greater thangte: greater than or equallt: less thanlte: less than or equalin: innin: not in
public final classComparisonFilter.ValueThe value to compare against the attribute key; supports string, number, or boolean types.
-
Method Summary
Modifier and Type Method Description final Stringkey()The key to compare against the value. final ComparisonFilter.Typetype()Specifies the comparison operator: eq,ne,gt,gte,lt,lte,in,nin.final ComparisonFilter.Valuevalue()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.BuildertoBuilder()final ComparisonFiltervalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ComparisonFilter.Builderbuilder()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,in,nin.eq: equalsne: not equalgt: greater thangte: greater than or equallt: less thanlte: less than or equalin: innin: not in
-
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()
-
-
-
-