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