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