Package ai.extend.requests
Class ParseAsyncRequest.Builder
- java.lang.Object
-
- ai.extend.requests.ParseAsyncRequest.Builder
-
- All Implemented Interfaces:
ParseAsyncRequest._FinalStage,ParseAsyncRequest.FileStage
- Enclosing class:
- ParseAsyncRequest
public static final class ParseAsyncRequest.Builder extends java.lang.Object implements ParseAsyncRequest.FileStage, ParseAsyncRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParseAsyncRequestbuild()ParseAsyncRequest._FinalStageconfig(ParseConfig config)ParseAsyncRequest._FinalStageconfig(java.util.Optional<ParseConfig> config)ParseAsyncRequest._FinalStagefile(ParseAsyncRequestFile file)A file object containing either a URL or a fileId.ParseAsyncRequest.Builderfrom(ParseAsyncRequest other)
-
-
-
Method Detail
-
from
public ParseAsyncRequest.Builder from(ParseAsyncRequest other)
- Specified by:
fromin interfaceParseAsyncRequest.FileStage
-
file
public ParseAsyncRequest._FinalStage file(@NotNull ParseAsyncRequestFile file)
A file object containing either a URL or a fileId.
A file object containing either a URL or a fileId.
- Specified by:
filein interfaceParseAsyncRequest.FileStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
config
public ParseAsyncRequest._FinalStage config(ParseConfig config)
- Specified by:
configin interfaceParseAsyncRequest._FinalStage
-
config
public ParseAsyncRequest._FinalStage config(java.util.Optional<ParseConfig> config)
- Specified by:
configin interfaceParseAsyncRequest._FinalStage
-
build
public ParseAsyncRequest build()
- Specified by:
buildin interfaceParseAsyncRequest._FinalStage
-
-