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