Package ai.extend.types
Class RuleValidationResult.Builder
- java.lang.Object
-
- ai.extend.types.RuleValidationResult.Builder
-
- All Implemented Interfaces:
RuleValidationResult._FinalStage,RuleValidationResult.AllPassedStage
- Enclosing class:
- RuleValidationResult
public static final class RuleValidationResult.Builder extends java.lang.Object implements RuleValidationResult.AllPassedStage, RuleValidationResult._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuleValidationResult._FinalStageaddAllRules(java.util.List<RuleValidationResultRulesItem> rules)The list of validation rules and their results.RuleValidationResult._FinalStageaddRules(RuleValidationResultRulesItem rules)The list of validation rules and their results.RuleValidationResult._FinalStageallPassed(boolean allPassed)Indicates whether all validation rules passed.RuleValidationResultbuild()RuleValidationResult.Builderfrom(RuleValidationResult other)RuleValidationResult._FinalStagerules(java.util.List<RuleValidationResultRulesItem> rules)The list of validation rules and their results.
-
-
-
Method Detail
-
from
public RuleValidationResult.Builder from(RuleValidationResult other)
- Specified by:
fromin interfaceRuleValidationResult.AllPassedStage
-
allPassed
public RuleValidationResult._FinalStage allPassed(boolean allPassed)
Indicates whether all validation rules passed.
Indicates whether all validation rules passed.
- Specified by:
allPassedin interfaceRuleValidationResult.AllPassedStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addAllRules
public RuleValidationResult._FinalStage addAllRules(java.util.List<RuleValidationResultRulesItem> rules)
The list of validation rules and their results.
- Specified by:
addAllRulesin interfaceRuleValidationResult._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addRules
public RuleValidationResult._FinalStage addRules(RuleValidationResultRulesItem rules)
The list of validation rules and their results.
- Specified by:
addRulesin interfaceRuleValidationResult._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
rules
public RuleValidationResult._FinalStage rules(java.util.List<RuleValidationResultRulesItem> rules)
The list of validation rules and their results.
- Specified by:
rulesin interfaceRuleValidationResult._FinalStage
-
build
public RuleValidationResult build()
- Specified by:
buildin interfaceRuleValidationResult._FinalStage
-
-