Interface ExtractorsCreateRequest._FinalStage
-
- All Known Implementing Classes:
ExtractorsCreateRequest.Builder
- Enclosing class:
- ExtractorsCreateRequest
public static interface ExtractorsCreateRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExtractorsCreateRequestbuild()ExtractorsCreateRequest._FinalStagecloneExtractorId(java.lang.String cloneExtractorId)ExtractorsCreateRequest._FinalStagecloneExtractorId(java.util.Optional<java.lang.String> cloneExtractorId)The ID of an existing extractor to clone.ExtractorsCreateRequest._FinalStageconfig(ExtractConfigJson config)ExtractorsCreateRequest._FinalStageconfig(java.util.Optional<ExtractConfigJson> config)The configuration for the extractor.ExtractorsCreateRequest._FinalStagegenerate(ExtractorsCreateRequestGenerate generate)ExtractorsCreateRequest._FinalStagegenerate(java.util.Optional<ExtractorsCreateRequestGenerate> generate)If provided, an extraction schema is automatically generated from the supplied sample documents and applied to the extractor's draft.
-
-
-
Method Detail
-
build
ExtractorsCreateRequest build()
-
cloneExtractorId
ExtractorsCreateRequest._FinalStage cloneExtractorId(java.util.Optional<java.lang.String> cloneExtractorId)
The ID of an existing extractor to clone. If provided, the new extractor will be created with the same config as the extractor with this ID. Cannot be provided together with
configorgenerate.Example:
"ex_BMdfq_yWM3sT-ZzvCnA3f"
-
cloneExtractorId
ExtractorsCreateRequest._FinalStage cloneExtractorId(java.lang.String cloneExtractorId)
-
config
ExtractorsCreateRequest._FinalStage config(java.util.Optional<ExtractConfigJson> config)
The configuration for the extractor. Cannot be provided together with
cloneExtractorIdorgenerate.
-
config
ExtractorsCreateRequest._FinalStage config(ExtractConfigJson config)
-
generate
ExtractorsCreateRequest._FinalStage generate(java.util.Optional<ExtractorsCreateRequestGenerate> generate)
If provided, an extraction schema is automatically generated from the supplied sample documents and applied to the extractor's draft. The response includes the extractor with the generated schema already in place.
Cannot be provided together with
configorcloneExtractorId.
-
generate
ExtractorsCreateRequest._FinalStage generate(ExtractorsCreateRequestGenerate generate)
-
-