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