Package ai.extend.types
Class StepRunStep.Builder
- java.lang.Object
-
- ai.extend.types.StepRunStep.Builder
-
- All Implemented Interfaces:
StepRunStep._FinalStage,StepRunStep.IdStage,StepRunStep.NameStage,StepRunStep.ObjectStage,StepRunStep.TypeStage
- Enclosing class:
- StepRunStep
public static final class StepRunStep.Builder extends java.lang.Object implements StepRunStep.ObjectStage, StepRunStep.IdStage, StepRunStep.NameStage, StepRunStep.TypeStage, StepRunStep._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StepRunStepbuild()StepRunStep.Builderfrom(StepRunStep other)StepRunStep.NameStageid(java.lang.String id)The ID of the workflow step.StepRunStep.TypeStagename(java.lang.String name)The name of the workflow step.StepRunStep.IdStageobject(java.lang.String object)The type of response.StepRunStep._FinalStagetype(StepRunStepType type)The type of workflow step:
-
-
-
Method Detail
-
from
public StepRunStep.Builder from(StepRunStep other)
- Specified by:
fromin interfaceStepRunStep.ObjectStage
-
object
public StepRunStep.IdStage object(@NotNull java.lang.String object)
The type of response. In this case, it will always be
"workflow_step".The type of response. In this case, it will always be
"workflow_step".- Specified by:
objectin interfaceStepRunStep.ObjectStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
public StepRunStep.NameStage id(@NotNull java.lang.String id)
The ID of the workflow step.
Example:
"step_xKm9pNv3qWsY_jL2tR5Dh"The ID of the workflow step.
Example:
"step_xKm9pNv3qWsY_jL2tR5Dh"- Specified by:
idin interfaceStepRunStep.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public StepRunStep.TypeStage name(@NotNull java.lang.String name)
The name of the workflow step.
Example:
"Validate Invoice Total"The name of the workflow step.
Example:
"Validate Invoice Total"- Specified by:
namein interfaceStepRunStep.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
type
public StepRunStep._FinalStage type(@NotNull StepRunStepType type)
The type of workflow step:
"EXTERNAL_DATA_VALIDATION"- Validates data against an external source"RULE_VALIDATION"- Validates data against defined rules
The type of workflow step:
"EXTERNAL_DATA_VALIDATION"- Validates data against an external source"RULE_VALIDATION"- Validates data against defined rules
- Specified by:
typein interfaceStepRunStep.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public StepRunStep build()
- Specified by:
buildin interfaceStepRunStep._FinalStage
-
-