Package ai.extend.types
Class Classifier.Builder
- java.lang.Object
-
- ai.extend.types.Classifier.Builder
-
- All Implemented Interfaces:
Classifier._FinalStage,Classifier.CreatedAtStage,Classifier.DraftVersionStage,Classifier.IdStage,Classifier.NameStage,Classifier.UpdatedAtStage
- Enclosing class:
- Classifier
public static final class Classifier.Builder extends java.lang.Object implements Classifier.IdStage, Classifier.NameStage, Classifier.CreatedAtStage, Classifier.UpdatedAtStage, Classifier.DraftVersionStage, Classifier._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Classifierbuild()Classifier.UpdatedAtStagecreatedAt(java.time.OffsetDateTime createdAt)Classifier._FinalStagedraftVersion(ClassifierVersion draftVersion)The draft version of the classifier.Classifier.Builderfrom(Classifier other)Classifier.NameStageid(java.lang.String id)The ID of the classifier.Classifier.CreatedAtStagename(java.lang.String name)The name of the classifier.Classifier.DraftVersionStageupdatedAt(java.time.OffsetDateTime updatedAt)
-
-
-
Method Detail
-
from
public Classifier.Builder from(Classifier other)
- Specified by:
fromin interfaceClassifier.IdStage
-
id
public Classifier.NameStage id(@NotNull java.lang.String id)
The ID of the classifier.
Example:
"cl_Xj8mK2pL9nR4vT7qY5wZ"The ID of the classifier.
Example:
"cl_Xj8mK2pL9nR4vT7qY5wZ"- Specified by:
idin interfaceClassifier.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public Classifier.CreatedAtStage name(@NotNull java.lang.String name)
The name of the classifier.
Example:
"Document Type Classifier"The name of the classifier.
Example:
"Document Type Classifier"- Specified by:
namein interfaceClassifier.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public Classifier.UpdatedAtStage createdAt(@NotNull java.time.OffsetDateTime createdAt)
- Specified by:
createdAtin interfaceClassifier.CreatedAtStage
-
updatedAt
public Classifier.DraftVersionStage updatedAt(@NotNull java.time.OffsetDateTime updatedAt)
- Specified by:
updatedAtin interfaceClassifier.UpdatedAtStage
-
draftVersion
public Classifier._FinalStage draftVersion(@NotNull ClassifierVersion draftVersion)
The draft version of the classifier. This is the editable version in the Extend dashboard.
The draft version of the classifier. This is the editable version in the Extend dashboard.
- Specified by:
draftVersionin interfaceClassifier.DraftVersionStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public Classifier build()
- Specified by:
buildin interfaceClassifier._FinalStage
-
-