Class Rule.Builder
java.lang.Object
software.amazon.smithy.rulesengine.language.syntax.rule.Rule.Builder
- Enclosing class:
- Rule
-
Method Summary
Modifier and TypeMethodDescriptionconditions
(List<Condition> conditions) final Rule.Builder
conditions
(Into<Condition>... conditions) description
(String description) final Rule.Builder
errorOrElse
(String error, Into<Condition>... condition) If `condition` IS met, return an error.final Rule
validateOrElse
(String error, Into<Condition>... condition) If `condition` is not met, return an error.validateOrElse
(Into<Condition> condition, String error) If `condition` is not met, return an error.
-
Method Details
-
conditions
-
conditions
-
condition
-
endpoint
-
error
-
error
-
treeRule
-
treeRule
-
description
-
errorOrElse
If `condition` IS met, return an error. Otherwise, proceed with the rules generated by the returned builder -
validateOrElse
If `condition` is not met, return an error. Otherwise, proceed with the rules generated by the returned builder.This method returns a new builder that must be used!
- Parameters:
condition
- a coercibleCondition
error
- an error description if the condition is not matched- Returns:
- a new builder to attach subsequent rules to
-
validateOrElse
If `condition` is not met, return an error. Otherwise, proceed with the rules generated by the returned builder.This method returns a new builder that must be used!
- Parameters:
condition
- a coercibleCondition
error
- an error description if the condition is not matched- Returns:
- new builder to attach subsequent rules to
-