Package ai.extend.types
Class Extractor.Builder
- java.lang.Object
-
- ai.extend.types.Extractor.Builder
-
- All Implemented Interfaces:
Extractor._FinalStage,Extractor.CreatedAtStage,Extractor.DraftVersionStage,Extractor.IdStage,Extractor.NameStage,Extractor.UpdatedAtStage
- Enclosing class:
- Extractor
public static final class Extractor.Builder extends java.lang.Object implements Extractor.IdStage, Extractor.NameStage, Extractor.CreatedAtStage, Extractor.UpdatedAtStage, Extractor.DraftVersionStage, Extractor._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Extractorbuild()Extractor.UpdatedAtStagecreatedAt(java.time.OffsetDateTime createdAt)Extractor._FinalStagedraftVersion(ExtractorVersion draftVersion)The draft version of the extractor.Extractor.Builderfrom(Extractor other)Extractor.NameStageid(java.lang.String id)The ID of the extractor.Extractor.CreatedAtStagename(java.lang.String name)The name of the extractor.Extractor.DraftVersionStageupdatedAt(java.time.OffsetDateTime updatedAt)
-
-
-
Method Detail
-
from
public Extractor.Builder from(Extractor other)
- Specified by:
fromin interfaceExtractor.IdStage
-
id
public Extractor.NameStage id(@NotNull java.lang.String id)
The ID of the extractor.
Example:
"ex_Xj8mK2pL9nR4vT7qY5wZ"The ID of the extractor.
Example:
"ex_Xj8mK2pL9nR4vT7qY5wZ"- Specified by:
idin interfaceExtractor.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public Extractor.CreatedAtStage name(@NotNull java.lang.String name)
The name of the extractor.
Example:
"Invoice Extractor"The name of the extractor.
Example:
"Invoice Extractor"- Specified by:
namein interfaceExtractor.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public Extractor.UpdatedAtStage createdAt(@NotNull java.time.OffsetDateTime createdAt)
- Specified by:
createdAtin interfaceExtractor.CreatedAtStage
-
updatedAt
public Extractor.DraftVersionStage updatedAt(@NotNull java.time.OffsetDateTime updatedAt)
- Specified by:
updatedAtin interfaceExtractor.UpdatedAtStage
-
draftVersion
public Extractor._FinalStage draftVersion(@NotNull ExtractorVersion draftVersion)
The draft version of the extractor. This is the editable version in the Extend dashboard.
The draft version of the extractor. This is the editable version in the Extend dashboard.
- Specified by:
draftVersionin interfaceExtractor.DraftVersionStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public Extractor build()
- Specified by:
buildin interfaceExtractor._FinalStage
-
-