Package ai.extend.types
Class ProvidedSplitterOutputSplitsItem.Builder
- java.lang.Object
-
- ai.extend.types.ProvidedSplitterOutputSplitsItem.Builder
-
- All Implemented Interfaces:
ProvidedSplitterOutputSplitsItem._FinalStage,ProvidedSplitterOutputSplitsItem.ClassificationIdStage,ProvidedSplitterOutputSplitsItem.EndPageStage,ProvidedSplitterOutputSplitsItem.IdStage,ProvidedSplitterOutputSplitsItem.StartPageStage,ProvidedSplitterOutputSplitsItem.TypeStage
- Enclosing class:
- ProvidedSplitterOutputSplitsItem
public static final class ProvidedSplitterOutputSplitsItem.Builder extends java.lang.Object implements ProvidedSplitterOutputSplitsItem.IdStage, ProvidedSplitterOutputSplitsItem.ClassificationIdStage, ProvidedSplitterOutputSplitsItem.TypeStage, ProvidedSplitterOutputSplitsItem.StartPageStage, ProvidedSplitterOutputSplitsItem.EndPageStage, ProvidedSplitterOutputSplitsItem._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProvidedSplitterOutputSplitsItembuild()ProvidedSplitterOutputSplitsItem.TypeStageclassificationId(java.lang.String classificationId)ID of the classification type (set in the processor config)ProvidedSplitterOutputSplitsItem._FinalStageendPage(int endPage)The end page of the split documentProvidedSplitterOutputSplitsItem.Builderfrom(ProvidedSplitterOutputSplitsItem other)ProvidedSplitterOutputSplitsItem.ClassificationIdStageid(java.lang.String id)Unique ID for this splitProvidedSplitterOutputSplitsItem._FinalStageidentifier(java.lang.String identifier)Identifier for the split document (e.g.ProvidedSplitterOutputSplitsItem._FinalStageidentifier(java.util.Optional<java.lang.String> identifier)Identifier for the split document (e.g.ProvidedSplitterOutputSplitsItem._FinalStageobservation(java.lang.String observation)Explanation of the resultsProvidedSplitterOutputSplitsItem._FinalStageobservation(java.util.Optional<java.lang.String> observation)Explanation of the resultsProvidedSplitterOutputSplitsItem.EndPageStagestartPage(int startPage)The start page of the split documentProvidedSplitterOutputSplitsItem.StartPageStagetype(java.lang.String type)The type of the split document (set in the processor config), corresponds to the classificationId
-
-
-
Method Detail
-
from
public ProvidedSplitterOutputSplitsItem.Builder from(ProvidedSplitterOutputSplitsItem other)
- Specified by:
fromin interfaceProvidedSplitterOutputSplitsItem.IdStage
-
id
public ProvidedSplitterOutputSplitsItem.ClassificationIdStage id(@NotNull java.lang.String id)
Unique ID for this split
Unique ID for this split
- Specified by:
idin interfaceProvidedSplitterOutputSplitsItem.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
classificationId
public ProvidedSplitterOutputSplitsItem.TypeStage 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 interfaceProvidedSplitterOutputSplitsItem.ClassificationIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
type
public ProvidedSplitterOutputSplitsItem.StartPageStage 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 interfaceProvidedSplitterOutputSplitsItem.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
startPage
public ProvidedSplitterOutputSplitsItem.EndPageStage startPage(int startPage)
The start page of the split document
The start page of the split document
- Specified by:
startPagein interfaceProvidedSplitterOutputSplitsItem.StartPageStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
endPage
public ProvidedSplitterOutputSplitsItem._FinalStage endPage(int endPage)
The end page of the split document
The end page of the split document
- Specified by:
endPagein interfaceProvidedSplitterOutputSplitsItem.EndPageStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
identifier
public ProvidedSplitterOutputSplitsItem._FinalStage identifier(java.lang.String identifier)
Identifier for the split document (e.g. invoice number)
- Specified by:
identifierin interfaceProvidedSplitterOutputSplitsItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
identifier
public ProvidedSplitterOutputSplitsItem._FinalStage identifier(java.util.Optional<java.lang.String> identifier)
Identifier for the split document (e.g. invoice number)
- Specified by:
identifierin interfaceProvidedSplitterOutputSplitsItem._FinalStage
-
observation
public ProvidedSplitterOutputSplitsItem._FinalStage observation(java.lang.String observation)
Explanation of the results
- Specified by:
observationin interfaceProvidedSplitterOutputSplitsItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
observation
public ProvidedSplitterOutputSplitsItem._FinalStage observation(java.util.Optional<java.lang.String> observation)
Explanation of the results
- Specified by:
observationin interfaceProvidedSplitterOutputSplitsItem._FinalStage
-
build
public ProvidedSplitterOutputSplitsItem build()
- Specified by:
buildin interfaceProvidedSplitterOutputSplitsItem._FinalStage
-
-