Package app.knock.api.models.shared
Class Condition
-
- All Implemented Interfaces:
public final class ConditionA condition to be evaluated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCondition.BuilderA builder for Condition.
public final classCondition.OperatorThe operator to use in the condition evaluation.
-
Method Summary
Modifier and Type Method Description final Optional<String>argument()The argument value to compare against in the condition. final Condition.Operatoroperator()The operator to use in the condition evaluation. final Stringvariable()The variable to be evaluated in the condition. final JsonField<String>_argument()Returns the raw JSON value of argument. final JsonField<Condition.Operator>_operator()Returns the raw JSON value of operator. final JsonField<String>_variable()Returns the raw JSON value of variable. final Map<String, JsonValue>_additionalProperties()final Condition.BuildertoBuilder()final Conditionvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Condition.Builderbuilder()Returns a mutable builder for constructing an instance of Condition. -
-
Method Detail
-
operator
final Condition.Operator operator()
The operator to use in the condition evaluation.
-
_argument
final JsonField<String> _argument()
Returns the raw JSON value of argument.
Unlike argument, this method doesn't throw if the JSON field has an unexpected type.
-
_operator
final JsonField<Condition.Operator> _operator()
Returns the raw JSON value of operator.
Unlike operator, this method doesn't throw if the JSON field has an unexpected type.
-
_variable
final JsonField<String> _variable()
Returns the raw JSON value of variable.
Unlike variable, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Condition.Builder toBuilder()
-
builder
final static Condition.Builder builder()
Returns a mutable builder for constructing an instance of Condition.
The following fields are required:
.argument() .operator() .variable()
-
-
-
-