Package ai.extend.types
Class WorkflowVersion.Builder
- java.lang.Object
-
- ai.extend.types.WorkflowVersion.Builder
-
- All Implemented Interfaces:
WorkflowVersion._FinalStage,WorkflowVersion.CreatedAtStage,WorkflowVersion.IdStage,WorkflowVersion.VersionStage
- Enclosing class:
- WorkflowVersion
public static final class WorkflowVersion.Builder extends java.lang.Object implements WorkflowVersion.IdStage, WorkflowVersion.VersionStage, WorkflowVersion.CreatedAtStage, WorkflowVersion._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowVersion._FinalStageaddAllSteps(java.util.List<WorkflowStepDefinition> steps)The step definitions for this version.WorkflowVersion._FinalStageaddSteps(WorkflowStepDefinition steps)The step definitions for this version.WorkflowVersionbuild()WorkflowVersion._FinalStagecreatedAt(java.time.OffsetDateTime createdAt)WorkflowVersion.Builderfrom(WorkflowVersion other)WorkflowVersion.VersionStageid(java.lang.String id)The ID of the workflow version.WorkflowVersion._FinalStagename(Nullable<java.lang.String> name)The name of the workflow version.WorkflowVersion._FinalStagename(java.lang.String name)The name of the workflow version.WorkflowVersion._FinalStagename(java.util.Optional<java.lang.String> name)The name of the workflow version.WorkflowVersion._FinalStagesteps(java.util.List<WorkflowStepDefinition> steps)The step definitions for this version.WorkflowVersion.CreatedAtStageversion(java.lang.String version)The version number as a string, or"draft"for the draft version.
-
-
-
Method Detail
-
from
public WorkflowVersion.Builder from(WorkflowVersion other)
- Specified by:
fromin interfaceWorkflowVersion.IdStage
-
id
public WorkflowVersion.VersionStage id(@NotNull java.lang.String id)
The ID of the workflow version.
The ID of the workflow version.
- Specified by:
idin interfaceWorkflowVersion.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
version
public WorkflowVersion.CreatedAtStage version(@NotNull java.lang.String version)
The version number as a string, or
"draft"for the draft version.The version number as a string, or
"draft"for the draft version.- Specified by:
versionin interfaceWorkflowVersion.VersionStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public WorkflowVersion._FinalStage createdAt(@NotNull java.time.OffsetDateTime createdAt)
- Specified by:
createdAtin interfaceWorkflowVersion.CreatedAtStage
-
addAllSteps
public WorkflowVersion._FinalStage addAllSteps(java.util.List<WorkflowStepDefinition> steps)
The step definitions for this version.
- Specified by:
addAllStepsin interfaceWorkflowVersion._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addSteps
public WorkflowVersion._FinalStage addSteps(WorkflowStepDefinition steps)
The step definitions for this version.
- Specified by:
addStepsin interfaceWorkflowVersion._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
steps
public WorkflowVersion._FinalStage steps(java.util.List<WorkflowStepDefinition> steps)
The step definitions for this version.
- Specified by:
stepsin interfaceWorkflowVersion._FinalStage
-
name
public WorkflowVersion._FinalStage name(Nullable<java.lang.String> name)
The name of the workflow version.
- Specified by:
namein interfaceWorkflowVersion._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public WorkflowVersion._FinalStage name(java.lang.String name)
The name of the workflow version.
- Specified by:
namein interfaceWorkflowVersion._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public WorkflowVersion._FinalStage name(java.util.Optional<java.lang.String> name)
The name of the workflow version.
- Specified by:
namein interfaceWorkflowVersion._FinalStage
-
build
public WorkflowVersion build()
- Specified by:
buildin interfaceWorkflowVersion._FinalStage
-
-