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