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