Class ClassifyRunsCreateBatchRequest.Builder
- java.lang.Object
-
- ai.extend.resources.classifyruns.requests.ClassifyRunsCreateBatchRequest.Builder
-
- All Implemented Interfaces:
ClassifyRunsCreateBatchRequest._FinalStage,ClassifyRunsCreateBatchRequest.ClassifierStage
- Enclosing class:
- ClassifyRunsCreateBatchRequest
public static final class ClassifyRunsCreateBatchRequest.Builder extends java.lang.Object implements ClassifyRunsCreateBatchRequest.ClassifierStage, ClassifyRunsCreateBatchRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassifyRunsCreateBatchRequest._FinalStageaddAllInputs(java.util.List<ClassifyRunsCreateBatchRequestInputsItem> inputs)An array of inputs to process.ClassifyRunsCreateBatchRequest._FinalStageaddInputs(ClassifyRunsCreateBatchRequestInputsItem inputs)An array of inputs to process.ClassifyRunsCreateBatchRequestbuild()ClassifyRunsCreateBatchRequest._FinalStageclassifier(ClassifyRunsCreateBatchRequestClassifier classifier)Reference to the classifier to run against every input in this batch.ClassifyRunsCreateBatchRequest.Builderfrom(ClassifyRunsCreateBatchRequest other)ClassifyRunsCreateBatchRequest._FinalStageinputs(java.util.List<ClassifyRunsCreateBatchRequestInputsItem> inputs)An array of inputs to process.ClassifyRunsCreateBatchRequest._FinalStagepriority(java.lang.Integer priority)ClassifyRunsCreateBatchRequest._FinalStagepriority(java.util.Optional<java.lang.Integer> priority)
-
-
-
Method Detail
-
from
public ClassifyRunsCreateBatchRequest.Builder from(ClassifyRunsCreateBatchRequest other)
- Specified by:
fromin interfaceClassifyRunsCreateBatchRequest.ClassifierStage
-
classifier
public ClassifyRunsCreateBatchRequest._FinalStage classifier(@NotNull ClassifyRunsCreateBatchRequestClassifier classifier)
Reference to the classifier to run against every input in this batch.
Reference to the classifier to run against every input in this batch.
- Specified by:
classifierin interfaceClassifyRunsCreateBatchRequest.ClassifierStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
priority
public ClassifyRunsCreateBatchRequest._FinalStage priority(java.lang.Integer priority)
- Specified by:
priorityin interfaceClassifyRunsCreateBatchRequest._FinalStage
-
priority
public ClassifyRunsCreateBatchRequest._FinalStage priority(java.util.Optional<java.lang.Integer> priority)
- Specified by:
priorityin interfaceClassifyRunsCreateBatchRequest._FinalStage
-
addAllInputs
public ClassifyRunsCreateBatchRequest._FinalStage addAllInputs(java.util.List<ClassifyRunsCreateBatchRequestInputsItem> inputs)
An array of inputs to process. Each item produces one classify run. Must contain between 1 and 1,000 items.
- Specified by:
addAllInputsin interfaceClassifyRunsCreateBatchRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addInputs
public ClassifyRunsCreateBatchRequest._FinalStage addInputs(ClassifyRunsCreateBatchRequestInputsItem inputs)
An array of inputs to process. Each item produces one classify run. Must contain between 1 and 1,000 items.
- Specified by:
addInputsin interfaceClassifyRunsCreateBatchRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
inputs
public ClassifyRunsCreateBatchRequest._FinalStage inputs(java.util.List<ClassifyRunsCreateBatchRequestInputsItem> inputs)
An array of inputs to process. Each item produces one classify run. Must contain between 1 and 1,000 items.
- Specified by:
inputsin interfaceClassifyRunsCreateBatchRequest._FinalStage
-
build
public ClassifyRunsCreateBatchRequest build()
- Specified by:
buildin interfaceClassifyRunsCreateBatchRequest._FinalStage
-
-