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