Class RuleValidationStepRun.Builder
- java.lang.Object
-
- ai.extend.types.RuleValidationStepRun.Builder
-
- All Implemented Interfaces:
RuleValidationStepRun._FinalStage,RuleValidationStepRun.IdStage,RuleValidationStepRun.StatusStage,RuleValidationStepRun.StepStage,RuleValidationStepRun.WorkflowRunIdStage
- Enclosing class:
- RuleValidationStepRun
public static final class RuleValidationStepRun.Builder extends java.lang.Object implements RuleValidationStepRun.IdStage, RuleValidationStepRun.WorkflowRunIdStage, RuleValidationStepRun.StatusStage, RuleValidationStepRun.StepStage, RuleValidationStepRun._FinalStage
-
-
Method Summary
-
-
-
Method Detail
-
from
public RuleValidationStepRun.Builder from(RuleValidationStepRun other)
- Specified by:
fromin interfaceRuleValidationStepRun.IdStage
-
id
public RuleValidationStepRun.WorkflowRunIdStage id(@NotNull java.lang.String id)
The ID of the workflow step run.
Example:
"workflow_step_run_xKm9pNv3qWsY_jL2tR5Dh"The ID of the workflow step run.
Example:
"workflow_step_run_xKm9pNv3qWsY_jL2tR5Dh"- Specified by:
idin interfaceRuleValidationStepRun.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
workflowRunId
public RuleValidationStepRun.StatusStage workflowRunId(@NotNull java.lang.String workflowRunId)
The ID of the parent workflow run.
Example:
"workflow_run_xKm9pNv3qWsY_jL2tR5Dh"The ID of the parent workflow run.
Example:
"workflow_run_xKm9pNv3qWsY_jL2tR5Dh"- Specified by:
workflowRunIdin interfaceRuleValidationStepRun.WorkflowRunIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
status
public RuleValidationStepRun.StepStage status(@NotNull StepRunBaseStatus status)
The status of the workflow step run:
"PENDING"- The step run is waiting to be executed"WAITING"- The step run is waiting for a dependency to complete"PROCESSING"- The step run is currently executing"PROCESSED"- The step run completed successfully"FAILED"- The step run encountered an error"CANCELLED"- The step run was cancelled
The status of the workflow step run:
"PENDING"- The step run is waiting to be executed"WAITING"- The step run is waiting for a dependency to complete"PROCESSING"- The step run is currently executing"PROCESSED"- The step run completed successfully"FAILED"- The step run encountered an error"CANCELLED"- The step run was cancelled
- Specified by:
statusin interfaceRuleValidationStepRun.StatusStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
step
public RuleValidationStepRun._FinalStage step(@NotNull RuleValidationStepRunStep step)
- Specified by:
stepin interfaceRuleValidationStepRun.StepStage
-
result
public RuleValidationStepRun._FinalStage result(Nullable<RuleValidationResult> result)
The result of this rule validation step. Currently,
resultis always present for returned step runs. It is nullable to allow for future support of returning step runs with non-successful statuses.- Specified by:
resultin interfaceRuleValidationStepRun._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
result
public RuleValidationStepRun._FinalStage result(RuleValidationResult result)
The result of this rule validation step. Currently,
resultis always present for returned step runs. It is nullable to allow for future support of returning step runs with non-successful statuses.- Specified by:
resultin interfaceRuleValidationStepRun._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
result
public RuleValidationStepRun._FinalStage result(java.util.Optional<RuleValidationResult> result)
The result of this rule validation step. Currently,
resultis always present for returned step runs. It is nullable to allow for future support of returning step runs with non-successful statuses.- Specified by:
resultin interfaceRuleValidationStepRun._FinalStage
-
addAllFiles
public RuleValidationStepRun._FinalStage addAllFiles(java.util.List<FileSummary> files)
The files associated with this step run.
- Specified by:
addAllFilesin interfaceRuleValidationStepRun._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addFiles
public RuleValidationStepRun._FinalStage addFiles(FileSummary files)
The files associated with this step run.
- Specified by:
addFilesin interfaceRuleValidationStepRun._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
files
public RuleValidationStepRun._FinalStage files(java.util.List<FileSummary> files)
The files associated with this step run.
- Specified by:
filesin interfaceRuleValidationStepRun._FinalStage
-
build
public RuleValidationStepRun build()
- Specified by:
buildin interfaceRuleValidationStepRun._FinalStage
-
-