Package ai.extend.types
Class ExtractorRef.Builder
- java.lang.Object
-
- ai.extend.types.ExtractorRef.Builder
-
- All Implemented Interfaces:
ExtractorRef._FinalStage,ExtractorRef.IdStage,ExtractorRef.VersionStage
- Enclosing class:
- ExtractorRef
public static final class ExtractorRef.Builder extends java.lang.Object implements ExtractorRef.IdStage, ExtractorRef.VersionStage, ExtractorRef._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtractorRefbuild()ExtractorRef.Builderfrom(ExtractorRef other)ExtractorRef.VersionStageid(java.lang.String id)The extractor ID.ExtractorRef._FinalStageversion(java.lang.String version)The extractor version to use:"latest"(most recent published version),"draft", or a specific semver string (e.g.
-
-
-
Method Detail
-
from
public ExtractorRef.Builder from(ExtractorRef other)
- Specified by:
fromin interfaceExtractorRef.IdStage
-
id
public ExtractorRef.VersionStage id(@NotNull java.lang.String id)
The extractor ID.
The extractor ID.
- Specified by:
idin interfaceExtractorRef.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
version
public ExtractorRef._FinalStage version(@NotNull java.lang.String version)
The extractor version to use:
"latest"(most recent published version),"draft", or a specific semver string (e.g."1.0").The extractor version to use:
"latest"(most recent published version),"draft", or a specific semver string (e.g."1.0").- Specified by:
versionin interfaceExtractorRef.VersionStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public ExtractorRef build()
- Specified by:
buildin interfaceExtractorRef._FinalStage
-
-