Class ClassifiersCreateRequest.Builder
- java.lang.Object
-
- ai.extend.resources.classifiers.requests.ClassifiersCreateRequest.Builder
-
- All Implemented Interfaces:
ClassifiersCreateRequest._FinalStage,ClassifiersCreateRequest.NameStage
- Enclosing class:
- ClassifiersCreateRequest
public static final class ClassifiersCreateRequest.Builder extends java.lang.Object implements ClassifiersCreateRequest.NameStage, ClassifiersCreateRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassifiersCreateRequestbuild()ClassifiersCreateRequest._FinalStagecloneClassifierId(java.lang.String cloneClassifierId)The ID of an existing classifier to clone.ClassifiersCreateRequest._FinalStagecloneClassifierId(java.util.Optional<java.lang.String> cloneClassifierId)The ID of an existing classifier to clone.ClassifiersCreateRequest._FinalStageconfig(ClassifyConfig config)The configuration for the classifier.ClassifiersCreateRequest._FinalStageconfig(java.util.Optional<ClassifyConfig> config)The configuration for the classifier.ClassifiersCreateRequest.Builderfrom(ClassifiersCreateRequest other)ClassifiersCreateRequest._FinalStagename(java.lang.String name)The name of the classifier.
-
-
-
Method Detail
-
from
public ClassifiersCreateRequest.Builder from(ClassifiersCreateRequest other)
- Specified by:
fromin interfaceClassifiersCreateRequest.NameStage
-
name
public ClassifiersCreateRequest._FinalStage name(@NotNull java.lang.String name)
The name of the classifier.
The name of the classifier.
- Specified by:
namein interfaceClassifiersCreateRequest.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
config
public ClassifiersCreateRequest._FinalStage config(ClassifyConfig config)
The configuration for the classifier. Cannot be provided together with
cloneClassifierId.- Specified by:
configin interfaceClassifiersCreateRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
config
public ClassifiersCreateRequest._FinalStage config(java.util.Optional<ClassifyConfig> config)
The configuration for the classifier. Cannot be provided together with
cloneClassifierId.- Specified by:
configin interfaceClassifiersCreateRequest._FinalStage
-
cloneClassifierId
public ClassifiersCreateRequest._FinalStage cloneClassifierId(java.lang.String cloneClassifierId)
The ID of an existing classifier to clone. If provided, the new classifier will be created with the same config as the classifier with this ID. Cannot be provided together with
config.Example:
"cl_BMdfq_yWM3sT-ZzvCnA3f"- Specified by:
cloneClassifierIdin interfaceClassifiersCreateRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
cloneClassifierId
public ClassifiersCreateRequest._FinalStage cloneClassifierId(java.util.Optional<java.lang.String> cloneClassifierId)
The ID of an existing classifier to clone. If provided, the new classifier will be created with the same config as the classifier with this ID. Cannot be provided together with
config.Example:
"cl_BMdfq_yWM3sT-ZzvCnA3f"- Specified by:
cloneClassifierIdin interfaceClassifiersCreateRequest._FinalStage
-
build
public ClassifiersCreateRequest build()
- Specified by:
buildin interfaceClassifiersCreateRequest._FinalStage
-
-