Class ClassifierVersion.Builder
- java.lang.Object
-
- ai.extend.types.ClassifierVersion.Builder
-
- All Implemented Interfaces:
ClassifierVersion._FinalStage,ClassifierVersion.ClassifierIdStage,ClassifierVersion.ConfigStage,ClassifierVersion.CreatedAtStage,ClassifierVersion.IdStage,ClassifierVersion.VersionStage
- Enclosing class:
- ClassifierVersion
public static final class ClassifierVersion.Builder extends java.lang.Object implements ClassifierVersion.IdStage, ClassifierVersion.VersionStage, ClassifierVersion.ConfigStage, ClassifierVersion.ClassifierIdStage, ClassifierVersion.CreatedAtStage, ClassifierVersion._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassifierVersionbuild()ClassifierVersion.CreatedAtStageclassifierId(java.lang.String classifierId)The ID of the classifier that this version belongs to.ClassifierVersion.ClassifierIdStageconfig(ClassifyConfig config)The configuration settings for this version of the classifier.ClassifierVersion._FinalStagecreatedAt(java.time.OffsetDateTime createdAt)ClassifierVersion._FinalStagecreatedBy(Nullable<CreatedBy> createdBy)ClassifierVersion._FinalStagecreatedBy(CreatedBy createdBy)ClassifierVersion._FinalStagecreatedBy(java.util.Optional<CreatedBy> createdBy)ClassifierVersion._FinalStagedescription(Nullable<java.lang.String> description)A description of this version of the classifier.ClassifierVersion._FinalStagedescription(java.lang.String description)A description of this version of the classifier.ClassifierVersion._FinalStagedescription(java.util.Optional<java.lang.String> description)A description of this version of the classifier.ClassifierVersion.Builderfrom(ClassifierVersion other)ClassifierVersion.VersionStageid(java.lang.String id)The unique identifier for this version of the classifier.ClassifierVersion.ConfigStageversion(java.lang.String version)The version number or identifier for this specific version of the classifier.
-
-
-
Method Detail
-
from
public ClassifierVersion.Builder from(ClassifierVersion other)
- Specified by:
fromin interfaceClassifierVersion.IdStage
-
id
public ClassifierVersion.VersionStage id(@NotNull java.lang.String id)
The unique identifier for this version of the classifier.
Example:
"clv_xK9mLPqRtN3vS8wF5hB2cQ"The unique identifier for this version of the classifier.
Example:
"clv_xK9mLPqRtN3vS8wF5hB2cQ"- Specified by:
idin interfaceClassifierVersion.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
version
public ClassifierVersion.ConfigStage version(@NotNull java.lang.String version)
The version number or identifier for this specific version of the classifier. The draft version will have version="draft".
Examples:
"1.0","2.1","draft"The version number or identifier for this specific version of the classifier. The draft version will have version="draft".
Examples:
"1.0","2.1","draft"- Specified by:
versionin interfaceClassifierVersion.VersionStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
config
public ClassifierVersion.ClassifierIdStage config(@NotNull ClassifyConfig config)
The configuration settings for this version of the classifier.
The configuration settings for this version of the classifier.
- Specified by:
configin interfaceClassifierVersion.ConfigStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
classifierId
public ClassifierVersion.CreatedAtStage classifierId(@NotNull java.lang.String classifierId)
The ID of the classifier that this version belongs to.
Example:
"cl_Xj8mK2pL9nR4vT7qY5wZ"The ID of the classifier that this version belongs to.
Example:
"cl_Xj8mK2pL9nR4vT7qY5wZ"- Specified by:
classifierIdin interfaceClassifierVersion.ClassifierIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public ClassifierVersion._FinalStage createdAt(@NotNull java.time.OffsetDateTime createdAt)
- Specified by:
createdAtin interfaceClassifierVersion.CreatedAtStage
-
createdBy
public ClassifierVersion._FinalStage createdBy(Nullable<CreatedBy> createdBy)
- Specified by:
createdByin interfaceClassifierVersion._FinalStage
-
createdBy
public ClassifierVersion._FinalStage createdBy(CreatedBy createdBy)
- Specified by:
createdByin interfaceClassifierVersion._FinalStage
-
createdBy
public ClassifierVersion._FinalStage createdBy(java.util.Optional<CreatedBy> createdBy)
- Specified by:
createdByin interfaceClassifierVersion._FinalStage
-
description
public ClassifierVersion._FinalStage description(Nullable<java.lang.String> description)
A description of this version of the classifier.
Example:
"Added new document types for Q4 processing"- Specified by:
descriptionin interfaceClassifierVersion._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
public ClassifierVersion._FinalStage description(java.lang.String description)
A description of this version of the classifier.
Example:
"Added new document types for Q4 processing"- Specified by:
descriptionin interfaceClassifierVersion._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
public ClassifierVersion._FinalStage description(java.util.Optional<java.lang.String> description)
A description of this version of the classifier.
Example:
"Added new document types for Q4 processing"- Specified by:
descriptionin interfaceClassifierVersion._FinalStage
-
build
public ClassifierVersion build()
- Specified by:
buildin interfaceClassifierVersion._FinalStage
-
-