Class ExtractRunsCreateRequest.Builder
- java.lang.Object
-
- ai.extend.resources.extractruns.requests.ExtractRunsCreateRequest.Builder
-
- All Implemented Interfaces:
ExtractRunsCreateRequest._FinalStage,ExtractRunsCreateRequest.FileStage
- Enclosing class:
- ExtractRunsCreateRequest
public static final class ExtractRunsCreateRequest.Builder extends java.lang.Object implements ExtractRunsCreateRequest.FileStage, ExtractRunsCreateRequest._FinalStage
-
-
Method Summary
-
-
-
Method Detail
-
from
public ExtractRunsCreateRequest.Builder from(ExtractRunsCreateRequest other)
- Specified by:
fromin interfaceExtractRunsCreateRequest.FileStage
-
file
public ExtractRunsCreateRequest._FinalStage file(@NotNull ExtractRunsCreateRequestFile file)
The file to be extracted from. Files can be provided as a URL, Extend file ID, or raw text.
The file to be extracted from. Files can be provided as a URL, Extend file ID, or raw text.
- Specified by:
filein interfaceExtractRunsCreateRequest.FileStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
metadata
public ExtractRunsCreateRequest._FinalStage metadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
- Specified by:
metadatain interfaceExtractRunsCreateRequest._FinalStage
-
metadata
public ExtractRunsCreateRequest._FinalStage metadata(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> metadata)
- Specified by:
metadatain interfaceExtractRunsCreateRequest._FinalStage
-
priority
public ExtractRunsCreateRequest._FinalStage priority(java.lang.Integer priority)
- Specified by:
priorityin interfaceExtractRunsCreateRequest._FinalStage
-
priority
public ExtractRunsCreateRequest._FinalStage priority(java.util.Optional<java.lang.Integer> priority)
- Specified by:
priorityin interfaceExtractRunsCreateRequest._FinalStage
-
config
public ExtractRunsCreateRequest._FinalStage config(ExtractConfigJson config)
Inline extract configuration. Mutually exclusive with
extractor— provide one or the other, or omit both to have Extend infer a schema from the document.- Specified by:
configin interfaceExtractRunsCreateRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
config
public ExtractRunsCreateRequest._FinalStage config(java.util.Optional<ExtractConfigJson> config)
Inline extract configuration. Mutually exclusive with
extractor— provide one or the other, or omit both to have Extend infer a schema from the document.- Specified by:
configin interfaceExtractRunsCreateRequest._FinalStage
-
extractor
public ExtractRunsCreateRequest._FinalStage extractor(ExtractRunsCreateRequestExtractor extractor)
Reference to an existing extractor. Mutually exclusive with
config— provide one or the other, or omit both to have Extend infer a schema from the document.- Specified by:
extractorin interfaceExtractRunsCreateRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
extractor
public ExtractRunsCreateRequest._FinalStage extractor(java.util.Optional<ExtractRunsCreateRequestExtractor> extractor)
Reference to an existing extractor. Mutually exclusive with
config— provide one or the other, or omit both to have Extend infer a schema from the document.- Specified by:
extractorin interfaceExtractRunsCreateRequest._FinalStage
-
build
public ExtractRunsCreateRequest build()
- Specified by:
buildin interfaceExtractRunsCreateRequest._FinalStage
-
-