Class LegacySplitterOutputSplitsItem.Builder
- java.lang.Object
-
- ai.extend.types.LegacySplitterOutputSplitsItem.Builder
-
- All Implemented Interfaces:
LegacySplitterOutputSplitsItem._FinalStage,LegacySplitterOutputSplitsItem.ClassificationIdStage,LegacySplitterOutputSplitsItem.EndPageStage,LegacySplitterOutputSplitsItem.FileIdStage,LegacySplitterOutputSplitsItem.IdentifierStage,LegacySplitterOutputSplitsItem.IdStage,LegacySplitterOutputSplitsItem.ObservationStage,LegacySplitterOutputSplitsItem.StartPageStage,LegacySplitterOutputSplitsItem.TypeStage
- Enclosing class:
- LegacySplitterOutputSplitsItem
public static final class LegacySplitterOutputSplitsItem.Builder extends java.lang.Object implements LegacySplitterOutputSplitsItem.TypeStage, LegacySplitterOutputSplitsItem.ObservationStage, LegacySplitterOutputSplitsItem.IdentifierStage, LegacySplitterOutputSplitsItem.StartPageStage, LegacySplitterOutputSplitsItem.EndPageStage, LegacySplitterOutputSplitsItem.ClassificationIdStage, LegacySplitterOutputSplitsItem.IdStage, LegacySplitterOutputSplitsItem.FileIdStage, LegacySplitterOutputSplitsItem._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LegacySplitterOutputSplitsItembuild()LegacySplitterOutputSplitsItem.IdStageclassificationId(java.lang.String classificationId)ID of the classification type (set in the processor config)LegacySplitterOutputSplitsItem.ClassificationIdStageendPage(int endPage)The end page of the split documentLegacySplitterOutputSplitsItem._FinalStagefileId(java.lang.String fileId)File ID associated with this splitLegacySplitterOutputSplitsItem.Builderfrom(LegacySplitterOutputSplitsItem other)LegacySplitterOutputSplitsItem.FileIdStageid(java.lang.String id)Unique ID for this splitLegacySplitterOutputSplitsItem.StartPageStageidentifier(java.lang.String identifier)Identifier for the split document (e.g.LegacySplitterOutputSplitsItem._FinalStagename(java.lang.String name)Optional name for the splitLegacySplitterOutputSplitsItem._FinalStagename(java.util.Optional<java.lang.String> name)Optional name for the splitLegacySplitterOutputSplitsItem.IdentifierStageobservation(java.lang.String observation)Explanation of the resultsLegacySplitterOutputSplitsItem.EndPageStagestartPage(int startPage)The start page of the split documentLegacySplitterOutputSplitsItem.ObservationStagetype(java.lang.String type)The type of the split document (set in the processor config), corresponds to the classificationId
-
-
-
Method Detail
-
from
public LegacySplitterOutputSplitsItem.Builder from(LegacySplitterOutputSplitsItem other)
- Specified by:
fromin interfaceLegacySplitterOutputSplitsItem.TypeStage
-
type
public LegacySplitterOutputSplitsItem.ObservationStage type(@NotNull java.lang.String type)
The type of the split document (set in the processor config), corresponds to the classificationId
The type of the split document (set in the processor config), corresponds to the classificationId
- Specified by:
typein interfaceLegacySplitterOutputSplitsItem.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
observation
public LegacySplitterOutputSplitsItem.IdentifierStage observation(@NotNull java.lang.String observation)
Explanation of the results
Explanation of the results
- Specified by:
observationin interfaceLegacySplitterOutputSplitsItem.ObservationStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
identifier
public LegacySplitterOutputSplitsItem.StartPageStage identifier(@NotNull java.lang.String identifier)
Identifier for the split document (e.g. invoice number)
Identifier for the split document (e.g. invoice number)
- Specified by:
identifierin interfaceLegacySplitterOutputSplitsItem.IdentifierStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
startPage
public LegacySplitterOutputSplitsItem.EndPageStage startPage(int startPage)
The start page of the split document
The start page of the split document
- Specified by:
startPagein interfaceLegacySplitterOutputSplitsItem.StartPageStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
endPage
public LegacySplitterOutputSplitsItem.ClassificationIdStage endPage(int endPage)
The end page of the split document
The end page of the split document
- Specified by:
endPagein interfaceLegacySplitterOutputSplitsItem.EndPageStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
classificationId
public LegacySplitterOutputSplitsItem.IdStage classificationId(@NotNull java.lang.String classificationId)
ID of the classification type (set in the processor config)
ID of the classification type (set in the processor config)
- Specified by:
classificationIdin interfaceLegacySplitterOutputSplitsItem.ClassificationIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
public LegacySplitterOutputSplitsItem.FileIdStage id(@NotNull java.lang.String id)
Unique ID for this split
Unique ID for this split
- Specified by:
idin interfaceLegacySplitterOutputSplitsItem.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
fileId
public LegacySplitterOutputSplitsItem._FinalStage fileId(@NotNull java.lang.String fileId)
File ID associated with this split
File ID associated with this split
- Specified by:
fileIdin interfaceLegacySplitterOutputSplitsItem.FileIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public LegacySplitterOutputSplitsItem._FinalStage name(java.lang.String name)
Optional name for the split
- Specified by:
namein interfaceLegacySplitterOutputSplitsItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public LegacySplitterOutputSplitsItem._FinalStage name(java.util.Optional<java.lang.String> name)
Optional name for the split
- Specified by:
namein interfaceLegacySplitterOutputSplitsItem._FinalStage
-
build
public LegacySplitterOutputSplitsItem build()
- Specified by:
buildin interfaceLegacySplitterOutputSplitsItem._FinalStage
-
-