Class WorkflowsCreateRequest.Builder
- java.lang.Object
-
- ai.extend.resources.workflows.requests.WorkflowsCreateRequest.Builder
-
- All Implemented Interfaces:
WorkflowsCreateRequest._FinalStage,WorkflowsCreateRequest.NameStage
- Enclosing class:
- WorkflowsCreateRequest
public static final class WorkflowsCreateRequest.Builder extends java.lang.Object implements WorkflowsCreateRequest.NameStage, WorkflowsCreateRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowsCreateRequestbuild()WorkflowsCreateRequest.Builderfrom(WorkflowsCreateRequest other)WorkflowsCreateRequest._FinalStagename(java.lang.String name)The name of the workflow.WorkflowsCreateRequest._FinalStagesteps(java.util.List<WorkflowStepDefinition> steps)The steps that define the workflow's processing graph.WorkflowsCreateRequest._FinalStagesteps(java.util.Optional<java.util.List<WorkflowStepDefinition>> steps)The steps that define the workflow's processing graph.
-
-
-
Method Detail
-
from
public WorkflowsCreateRequest.Builder from(WorkflowsCreateRequest other)
- Specified by:
fromin interfaceWorkflowsCreateRequest.NameStage
-
name
public WorkflowsCreateRequest._FinalStage name(@NotNull java.lang.String name)
The name of the workflow.
The name of the workflow.
- Specified by:
namein interfaceWorkflowsCreateRequest.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
steps
public WorkflowsCreateRequest._FinalStage steps(java.util.List<WorkflowStepDefinition> steps)
The steps that define the workflow's processing graph. Each step has a
type, a uniquename, and optionalnextentries that define routing to downstream steps.When omitted, the workflow is created with default steps (
TRIGGER→PARSE). The default steps may change in the future.See the Configuring Workflows via API guide for step definitions, branching patterns, and examples.
- Specified by:
stepsin interfaceWorkflowsCreateRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
steps
public WorkflowsCreateRequest._FinalStage steps(java.util.Optional<java.util.List<WorkflowStepDefinition>> steps)
The steps that define the workflow's processing graph. Each step has a
type, a uniquename, and optionalnextentries that define routing to downstream steps.When omitted, the workflow is created with default steps (
TRIGGER→PARSE). The default steps may change in the future.See the Configuring Workflows via API guide for step definitions, branching patterns, and examples.
- Specified by:
stepsin interfaceWorkflowsCreateRequest._FinalStage
-
build
public WorkflowsCreateRequest build()
- Specified by:
buildin interfaceWorkflowsCreateRequest._FinalStage
-
-