Class MergeExtractStepRun.Builder
- java.lang.Object
-
- ai.extend.types.MergeExtractStepRun.Builder
-
- All Implemented Interfaces:
MergeExtractStepRun._FinalStage,MergeExtractStepRun.IdStage,MergeExtractStepRun.StatusStage,MergeExtractStepRun.StepStage,MergeExtractStepRun.WorkflowRunIdStage
- Enclosing class:
- MergeExtractStepRun
public static final class MergeExtractStepRun.Builder extends java.lang.Object implements MergeExtractStepRun.IdStage, MergeExtractStepRun.WorkflowRunIdStage, MergeExtractStepRun.StatusStage, MergeExtractStepRun.StepStage, MergeExtractStepRun._FinalStage
-
-
Method Summary
-
-
-
Method Detail
-
from
public MergeExtractStepRun.Builder from(MergeExtractStepRun other)
- Specified by:
fromin interfaceMergeExtractStepRun.IdStage
-
id
public MergeExtractStepRun.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 interfaceMergeExtractStepRun.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
workflowRunId
public MergeExtractStepRun.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 interfaceMergeExtractStepRun.WorkflowRunIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
status
public MergeExtractStepRun.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 interfaceMergeExtractStepRun.StatusStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
step
public MergeExtractStepRun._FinalStage step(@NotNull MergeExtractStepRunStep step)
- Specified by:
stepin interfaceMergeExtractStepRun.StepStage
-
result
public MergeExtractStepRun._FinalStage result(Nullable<MergeExtractResult> result)
The result of this merge extract 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 interfaceMergeExtractStepRun._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
result
public MergeExtractStepRun._FinalStage result(MergeExtractResult result)
The result of this merge extract 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 interfaceMergeExtractStepRun._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
result
public MergeExtractStepRun._FinalStage result(java.util.Optional<MergeExtractResult> result)
The result of this merge extract 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 interfaceMergeExtractStepRun._FinalStage
-
addAllFiles
public MergeExtractStepRun._FinalStage addAllFiles(java.util.List<FileSummary> files)
The files associated with this step run.
- Specified by:
addAllFilesin interfaceMergeExtractStepRun._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addFiles
public MergeExtractStepRun._FinalStage addFiles(FileSummary files)
The files associated with this step run.
- Specified by:
addFilesin interfaceMergeExtractStepRun._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
files
public MergeExtractStepRun._FinalStage files(java.util.List<FileSummary> files)
The files associated with this step run.
- Specified by:
filesin interfaceMergeExtractStepRun._FinalStage
-
build
public MergeExtractStepRun build()
- Specified by:
buildin interfaceMergeExtractStepRun._FinalStage
-
-