Class StepRunOutputRulesItem.Builder
- java.lang.Object
-
- ai.extend.types.StepRunOutputRulesItem.Builder
-
- All Implemented Interfaces:
StepRunOutputRulesItem._FinalStage,StepRunOutputRulesItem.NameStage,StepRunOutputRulesItem.ValidStage
- Enclosing class:
- StepRunOutputRulesItem
public static final class StepRunOutputRulesItem.Builder extends java.lang.Object implements StepRunOutputRulesItem.NameStage, StepRunOutputRulesItem.ValidStage, StepRunOutputRulesItem._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StepRunOutputRulesItembuild()StepRunOutputRulesItem._FinalStageerror(java.lang.String error)If thefailureReasonisPARSE_ERRORorVALUE_ERROR, then this field contains the error's details.StepRunOutputRulesItem._FinalStageerror(java.util.Optional<java.lang.String> error)If thefailureReasonisPARSE_ERRORorVALUE_ERROR, then this field contains the error's details.StepRunOutputRulesItem._FinalStagefailureReason(StepRunOutputRulesItemFailureReason failureReason)If the validation rule is not valid, then this describes why the rule failed.StepRunOutputRulesItem._FinalStagefailureReason(java.util.Optional<StepRunOutputRulesItemFailureReason> failureReason)If the validation rule is not valid, then this describes why the rule failed.StepRunOutputRulesItem.Builderfrom(StepRunOutputRulesItem other)StepRunOutputRulesItem.ValidStagename(java.lang.String name)The name of the validation rule.StepRunOutputRulesItem._FinalStagevalid(boolean valid)Indicates whether this validation rule passed or not.StepRunOutputRulesItem._FinalStagevalidArray(java.util.List<java.lang.String> validArray)Only present if the validation rule's formula is array valued.StepRunOutputRulesItem._FinalStagevalidArray(java.util.Optional<java.util.List<java.lang.String>> validArray)Only present if the validation rule's formula is array valued.
-
-
-
Method Detail
-
from
public StepRunOutputRulesItem.Builder from(StepRunOutputRulesItem other)
- Specified by:
fromin interfaceStepRunOutputRulesItem.NameStage
-
name
public StepRunOutputRulesItem.ValidStage name(@NotNull java.lang.String name)
The name of the validation rule.
The name of the validation rule.
- Specified by:
namein interfaceStepRunOutputRulesItem.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
valid
public StepRunOutputRulesItem._FinalStage valid(boolean valid)
Indicates whether this validation rule passed or not. This field will be
trueonly if the formula evaluates totrue. If the rule's formula is array valued, then this field will only betrueif the formula evaluates totruefor every item in the array.Indicates whether this validation rule passed or not. This field will be
trueonly if the formula evaluates totrue. If the rule's formula is array valued, then this field will only betrueif the formula evaluates totruefor every item in the array.- Specified by:
validin interfaceStepRunOutputRulesItem.ValidStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
error
public StepRunOutputRulesItem._FinalStage error(java.lang.String error)
If the
failureReasonisPARSE_ERRORorVALUE_ERROR, then this field contains the error's details.- Specified by:
errorin interfaceStepRunOutputRulesItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
error
public StepRunOutputRulesItem._FinalStage error(java.util.Optional<java.lang.String> error)
If the
failureReasonisPARSE_ERRORorVALUE_ERROR, then this field contains the error's details.- Specified by:
errorin interfaceStepRunOutputRulesItem._FinalStage
-
failureReason
public StepRunOutputRulesItem._FinalStage failureReason(StepRunOutputRulesItemFailureReason failureReason)
If the validation rule is not valid, then this describes why the rule failed.
"RULE_FAILED"- The formula evaluated tofalseornull"PARSE_ERROR"- The formula could not be parsed"VALUE_ERROR"- An error occurred while evaluating the formula
- Specified by:
failureReasonin interfaceStepRunOutputRulesItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
failureReason
public StepRunOutputRulesItem._FinalStage failureReason(java.util.Optional<StepRunOutputRulesItemFailureReason> failureReason)
If the validation rule is not valid, then this describes why the rule failed.
"RULE_FAILED"- The formula evaluated tofalseornull"PARSE_ERROR"- The formula could not be parsed"VALUE_ERROR"- An error occurred while evaluating the formula
- Specified by:
failureReasonin interfaceStepRunOutputRulesItem._FinalStage
-
validArray
public StepRunOutputRulesItem._FinalStage validArray(java.util.List<java.lang.String> validArray)
Only present if the validation rule's formula is array valued. This field contains the formula's evaluated result for every item in the array.
- Specified by:
validArrayin interfaceStepRunOutputRulesItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
validArray
public StepRunOutputRulesItem._FinalStage validArray(java.util.Optional<java.util.List<java.lang.String>> validArray)
Only present if the validation rule's formula is array valued. This field contains the formula's evaluated result for every item in the array.
- Specified by:
validArrayin interfaceStepRunOutputRulesItem._FinalStage
-
build
public StepRunOutputRulesItem build()
- Specified by:
buildin interfaceStepRunOutputRulesItem._FinalStage
-
-