Class SplitStepDefinition.Builder
- java.lang.Object
-
- ai.extend.types.SplitStepDefinition.Builder
-
- All Implemented Interfaces:
SplitStepDefinition._FinalStage,SplitStepDefinition.NameStage
- Enclosing class:
- SplitStepDefinition
public static final class SplitStepDefinition.Builder extends java.lang.Object implements SplitStepDefinition.NameStage, SplitStepDefinition._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SplitStepDefinitionbuild()SplitStepDefinition._FinalStageconfig(SplitStepDefinitionConfig config)Optional on create/update.SplitStepDefinition._FinalStageconfig(java.util.Optional<SplitStepDefinitionConfig> config)Optional on create/update.SplitStepDefinition.Builderfrom(SplitStepDefinition other)SplitStepDefinition._FinalStagename(java.lang.String name)SplitStepDefinition._FinalStagenext(java.util.List<ClassificationNextEntry> next)Can only be set whenconfigis present.SplitStepDefinition._FinalStagenext(java.util.Optional<java.util.List<ClassificationNextEntry>> next)Can only be set whenconfigis present.
-
-
-
Method Detail
-
from
public SplitStepDefinition.Builder from(SplitStepDefinition other)
- Specified by:
fromin interfaceSplitStepDefinition.NameStage
-
name
public SplitStepDefinition._FinalStage name(@NotNull java.lang.String name)
- Specified by:
namein interfaceSplitStepDefinition.NameStage
-
next
public SplitStepDefinition._FinalStage next(java.util.List<ClassificationNextEntry> next)
Can only be set when
configis present. Each entry must include aclassificationIdmatching a split classificationidfrom the splitter's configuration (saved or inline). Use the classification's stableid(e.g."cls_receipt"), not thetypestring.See the Split step docs.
- Specified by:
nextin interfaceSplitStepDefinition._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
next
public SplitStepDefinition._FinalStage next(java.util.Optional<java.util.List<ClassificationNextEntry>> next)
Can only be set when
configis present. Each entry must include aclassificationIdmatching a split classificationidfrom the splitter's configuration (saved or inline). Use the classification's stableid(e.g."cls_receipt"), not thetypestring.See the Split step docs.
- Specified by:
nextin interfaceSplitStepDefinition._FinalStage
-
config
public SplitStepDefinition._FinalStage config(SplitStepDefinitionConfig config)
Optional on create/update. Required before the workflow can be deployed. Omitted in responses when the step is not yet configured.
When present, must contain exactly one of
splitter(saved processor reference) orsplitterConfig(inline configuration) — not both.The
next[].classificationIdvalues must match split classificationidvalues (nottypestrings) from the splitter's configuration — the referenced version's config for a saved reference, or the inlinesplitClassificationsarray for an inline config. For example, if the splitter defines{ "id": "cls_receipt", "type": "receipt" }, use"cls_receipt"as theclassificationId.See the Split step docs.
- Specified by:
configin interfaceSplitStepDefinition._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
config
public SplitStepDefinition._FinalStage config(java.util.Optional<SplitStepDefinitionConfig> config)
Optional on create/update. Required before the workflow can be deployed. Omitted in responses when the step is not yet configured.
When present, must contain exactly one of
splitter(saved processor reference) orsplitterConfig(inline configuration) — not both.The
next[].classificationIdvalues must match split classificationidvalues (nottypestrings) from the splitter's configuration — the referenced version's config for a saved reference, or the inlinesplitClassificationsarray for an inline config. For example, if the splitter defines{ "id": "cls_receipt", "type": "receipt" }, use"cls_receipt"as theclassificationId.See the Split step docs.
- Specified by:
configin interfaceSplitStepDefinition._FinalStage
-
build
public SplitStepDefinition build()
- Specified by:
buildin interfaceSplitStepDefinition._FinalStage
-
-