Class SplitStepRun.Builder
- java.lang.Object
-
- ai.extend.types.SplitStepRun.Builder
-
- All Implemented Interfaces:
SplitStepRun._FinalStage,SplitStepRun.IdStage,SplitStepRun.StatusStage,SplitStepRun.StepStage,SplitStepRun.WorkflowRunIdStage
- Enclosing class:
- SplitStepRun
public static final class SplitStepRun.Builder extends java.lang.Object implements SplitStepRun.IdStage, SplitStepRun.WorkflowRunIdStage, SplitStepRun.StatusStage, SplitStepRun.StepStage, SplitStepRun._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SplitStepRun._FinalStageaddAllFiles(java.util.List<FileSummary> files)The files associated with this step run.SplitStepRun._FinalStageaddFiles(FileSummary files)The files associated with this step run.SplitStepRunbuild()SplitStepRun._FinalStagefiles(java.util.List<FileSummary> files)The files associated with this step run.SplitStepRun.Builderfrom(SplitStepRun other)SplitStepRun.WorkflowRunIdStageid(java.lang.String id)The ID of the workflow step run.SplitStepRun._FinalStageresult(Nullable<SplitResult> result)The result of this split step.SplitStepRun._FinalStageresult(SplitResult result)The result of this split step.SplitStepRun._FinalStageresult(java.util.Optional<SplitResult> result)The result of this split step.SplitStepRun.StepStagestatus(StepRunBaseStatus status)The status of the workflow step run:SplitStepRun._FinalStagestep(SplitStepRunStep step)SplitStepRun.StatusStageworkflowRunId(java.lang.String workflowRunId)The ID of the parent workflow run.
-
-
-
Method Detail
-
from
public SplitStepRun.Builder from(SplitStepRun other)
- Specified by:
fromin interfaceSplitStepRun.IdStage
-
id
public SplitStepRun.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 interfaceSplitStepRun.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
workflowRunId
public SplitStepRun.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 interfaceSplitStepRun.WorkflowRunIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
status
public SplitStepRun.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 interfaceSplitStepRun.StatusStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
step
public SplitStepRun._FinalStage step(@NotNull SplitStepRunStep step)
- Specified by:
stepin interfaceSplitStepRun.StepStage
-
result
public SplitStepRun._FinalStage result(Nullable<SplitResult> result)
The result of this split 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 interfaceSplitStepRun._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
result
public SplitStepRun._FinalStage result(SplitResult result)
The result of this split 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 interfaceSplitStepRun._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
result
public SplitStepRun._FinalStage result(java.util.Optional<SplitResult> result)
The result of this split 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 interfaceSplitStepRun._FinalStage
-
addAllFiles
public SplitStepRun._FinalStage addAllFiles(java.util.List<FileSummary> files)
The files associated with this step run.
- Specified by:
addAllFilesin interfaceSplitStepRun._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addFiles
public SplitStepRun._FinalStage addFiles(FileSummary files)
The files associated with this step run.
- Specified by:
addFilesin interfaceSplitStepRun._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
files
public SplitStepRun._FinalStage files(java.util.List<FileSummary> files)
The files associated with this step run.
- Specified by:
filesin interfaceSplitStepRun._FinalStage
-
build
public SplitStepRun build()
- Specified by:
buildin interfaceSplitStepRun._FinalStage
-
-