Package ai.extend.types
Class Workflow.Builder
- java.lang.Object
-
- ai.extend.types.Workflow.Builder
-
- All Implemented Interfaces:
Workflow._FinalStage,Workflow.IdStage,Workflow.NameStage,Workflow.ObjectStage,Workflow.VersionStage
- Enclosing class:
- Workflow
public static final class Workflow.Builder extends java.lang.Object implements Workflow.ObjectStage, Workflow.IdStage, Workflow.VersionStage, Workflow.NameStage, Workflow._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Workflowbuild()Workflow.Builderfrom(Workflow other)Workflow.VersionStageid(java.lang.String id)The ID of the workflow.Workflow._FinalStagename(java.lang.String name)The name of the workflow.Workflow.IdStageobject(java.lang.String object)The type of response.Workflow.NameStageversion(java.lang.String version)The version of the workflow.
-
-
-
Method Detail
-
from
public Workflow.Builder from(Workflow other)
- Specified by:
fromin interfaceWorkflow.ObjectStage
-
object
public Workflow.IdStage object(@NotNull java.lang.String object)
The type of response. In this case, it will always be
"workflow".The type of response. In this case, it will always be
"workflow".- Specified by:
objectin interfaceWorkflow.ObjectStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
public Workflow.VersionStage id(@NotNull java.lang.String id)
The ID of the workflow.
Example:
"workflow_BMlfq_yWM3sT-ZzvCnA3f"The ID of the workflow.
Example:
"workflow_BMlfq_yWM3sT-ZzvCnA3f"- Specified by:
idin interfaceWorkflow.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
version
public Workflow.NameStage version(@NotNull java.lang.String version)
The version of the workflow.
Examples:
"3","draft"The version of the workflow.
Examples:
"3","draft"- Specified by:
versionin interfaceWorkflow.VersionStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public Workflow._FinalStage name(@NotNull java.lang.String name)
The name of the workflow.
Example:
"Invoice Processing"The name of the workflow.
Example:
"Invoice Processing"- Specified by:
namein interfaceWorkflow.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public Workflow build()
- Specified by:
buildin interfaceWorkflow._FinalStage
-
-