Class ClassifyRunSummary.Builder
- java.lang.Object
-
- ai.extend.types.ClassifyRunSummary.Builder
-
- All Implemented Interfaces:
ClassifyRunSummary._FinalStage,ClassifyRunSummary.CreatedAtStage,ClassifyRunSummary.DashboardUrlStage,ClassifyRunSummary.EditedStage,ClassifyRunSummary.IdStage,ClassifyRunSummary.ReviewedStage,ClassifyRunSummary.StatusStage,ClassifyRunSummary.UpdatedAtStage
- Enclosing class:
- ClassifyRunSummary
public static final class ClassifyRunSummary.Builder extends java.lang.Object implements ClassifyRunSummary.IdStage, ClassifyRunSummary.StatusStage, ClassifyRunSummary.ReviewedStage, ClassifyRunSummary.EditedStage, ClassifyRunSummary.DashboardUrlStage, ClassifyRunSummary.CreatedAtStage, ClassifyRunSummary.UpdatedAtStage, ClassifyRunSummary._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassifyRunSummarybuild()ClassifyRunSummary._FinalStageclassifier(Nullable<ClassifierSummary> classifier)The classifier that was used for this run.ClassifyRunSummary._FinalStageclassifier(ClassifierSummary classifier)The classifier that was used for this run.ClassifyRunSummary._FinalStageclassifier(java.util.Optional<ClassifierSummary> classifier)The classifier that was used for this run.ClassifyRunSummary._FinalStageclassifierVersion(Nullable<ClassifierVersionSummary> classifierVersion)The version of the classifier that was used for this run.ClassifyRunSummary._FinalStageclassifierVersion(ClassifierVersionSummary classifierVersion)The version of the classifier that was used for this run.ClassifyRunSummary._FinalStageclassifierVersion(java.util.Optional<ClassifierVersionSummary> classifierVersion)The version of the classifier that was used for this run.ClassifyRunSummary.UpdatedAtStagecreatedAt(java.time.OffsetDateTime createdAt)ClassifyRunSummary.CreatedAtStagedashboardUrl(java.lang.String dashboardUrl)The URL to view the classify run in the Extend dashboard.ClassifyRunSummary.DashboardUrlStageedited(boolean edited)Indicates whether the run results have been edited during review.ClassifyRunSummary._FinalStagefailureMessage(Nullable<java.lang.String> failureMessage)A detailed message about the failure.ClassifyRunSummary._FinalStagefailureMessage(java.lang.String failureMessage)A detailed message about the failure.ClassifyRunSummary._FinalStagefailureMessage(java.util.Optional<java.lang.String> failureMessage)A detailed message about the failure.ClassifyRunSummary._FinalStagefailureReason(Nullable<java.lang.String> failureReason)The reason for failure.ClassifyRunSummary._FinalStagefailureReason(java.lang.String failureReason)The reason for failure.ClassifyRunSummary._FinalStagefailureReason(java.util.Optional<java.lang.String> failureReason)The reason for failure.ClassifyRunSummary._FinalStagefile(Nullable<FileSummary> file)The file that was processed.ClassifyRunSummary._FinalStagefile(FileSummary file)The file that was processed.ClassifyRunSummary._FinalStagefile(java.util.Optional<FileSummary> file)The file that was processed.ClassifyRunSummary.Builderfrom(ClassifyRunSummary other)ClassifyRunSummary.StatusStageid(java.lang.String id)The unique identifier for this classify run.ClassifyRunSummary._FinalStagemetadata(Nullable<java.util.Map<java.lang.String,java.lang.Object>> metadata)Any metadata that was provided when creating the classify run.ClassifyRunSummary._FinalStagemetadata(java.util.Map<java.lang.String,java.lang.Object> metadata)Any metadata that was provided when creating the classify run.ClassifyRunSummary._FinalStagemetadata(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> metadata)Any metadata that was provided when creating the classify run.ClassifyRunSummary._FinalStageparseRunId(Nullable<java.lang.String> parseRunId)The ID of the parse run that was used for this classify run.ClassifyRunSummary._FinalStageparseRunId(java.lang.String parseRunId)The ID of the parse run that was used for this classify run.ClassifyRunSummary._FinalStageparseRunId(java.util.Optional<java.lang.String> parseRunId)The ID of the parse run that was used for this classify run.ClassifyRunSummary.EditedStagereviewed(boolean reviewed)Indicates whether the run has been reviewed by a human.ClassifyRunSummary.ReviewedStagestatus(ProcessorRunStatus status)ClassifyRunSummary._FinalStageupdatedAt(java.time.OffsetDateTime updatedAt)ClassifyRunSummary._FinalStageusage(Nullable<RunUsageSummary> usage)Usage credits consumed by this classify run.ClassifyRunSummary._FinalStageusage(RunUsageSummary usage)Usage credits consumed by this classify run.ClassifyRunSummary._FinalStageusage(java.util.Optional<RunUsageSummary> usage)Usage credits consumed by this classify run.
-
-
-
Method Detail
-
from
public ClassifyRunSummary.Builder from(ClassifyRunSummary other)
- Specified by:
fromin interfaceClassifyRunSummary.IdStage
-
id
public ClassifyRunSummary.StatusStage id(@NotNull java.lang.String id)
The unique identifier for this classify run.
The unique identifier for this classify run.
- Specified by:
idin interfaceClassifyRunSummary.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
status
public ClassifyRunSummary.ReviewedStage status(@NotNull ProcessorRunStatus status)
- Specified by:
statusin interfaceClassifyRunSummary.StatusStage
-
reviewed
public ClassifyRunSummary.EditedStage reviewed(boolean reviewed)
Indicates whether the run has been reviewed by a human.
Indicates whether the run has been reviewed by a human.
- Specified by:
reviewedin interfaceClassifyRunSummary.ReviewedStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
edited
public ClassifyRunSummary.DashboardUrlStage edited(boolean edited)
Indicates whether the run results have been edited during review.
Indicates whether the run results have been edited during review.
- Specified by:
editedin interfaceClassifyRunSummary.EditedStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
dashboardUrl
public ClassifyRunSummary.CreatedAtStage dashboardUrl(@NotNull java.lang.String dashboardUrl)
The URL to view the classify run in the Extend dashboard.
The URL to view the classify run in the Extend dashboard.
- Specified by:
dashboardUrlin interfaceClassifyRunSummary.DashboardUrlStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public ClassifyRunSummary.UpdatedAtStage createdAt(@NotNull java.time.OffsetDateTime createdAt)
- Specified by:
createdAtin interfaceClassifyRunSummary.CreatedAtStage
-
updatedAt
public ClassifyRunSummary._FinalStage updatedAt(@NotNull java.time.OffsetDateTime updatedAt)
- Specified by:
updatedAtin interfaceClassifyRunSummary.UpdatedAtStage
-
usage
public ClassifyRunSummary._FinalStage usage(Nullable<RunUsageSummary> usage)
Usage credits consumed by this classify run. Omits
breakdown— fetch the full classify run by id to see the per-line items.Availability: Present when
statusis"PROCESSED". Will not be returned for runs created before October 7, 2025 or for customers on legacy billing systems.- Specified by:
usagein interfaceClassifyRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
usage
public ClassifyRunSummary._FinalStage usage(RunUsageSummary usage)
Usage credits consumed by this classify run. Omits
breakdown— fetch the full classify run by id to see the per-line items.Availability: Present when
statusis"PROCESSED". Will not be returned for runs created before October 7, 2025 or for customers on legacy billing systems.- Specified by:
usagein interfaceClassifyRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
usage
public ClassifyRunSummary._FinalStage usage(java.util.Optional<RunUsageSummary> usage)
Usage credits consumed by this classify run. Omits
breakdown— fetch the full classify run by id to see the per-line items.Availability: Present when
statusis"PROCESSED". Will not be returned for runs created before October 7, 2025 or for customers on legacy billing systems.- Specified by:
usagein interfaceClassifyRunSummary._FinalStage
-
parseRunId
public ClassifyRunSummary._FinalStage parseRunId(Nullable<java.lang.String> parseRunId)
The ID of the parse run that was used for this classify run.
Availability: Present when a parse run was created.
- Specified by:
parseRunIdin interfaceClassifyRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
parseRunId
public ClassifyRunSummary._FinalStage parseRunId(java.lang.String parseRunId)
The ID of the parse run that was used for this classify run.
Availability: Present when a parse run was created.
- Specified by:
parseRunIdin interfaceClassifyRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
parseRunId
public ClassifyRunSummary._FinalStage parseRunId(java.util.Optional<java.lang.String> parseRunId)
The ID of the parse run that was used for this classify run.
Availability: Present when a parse run was created.
- Specified by:
parseRunIdin interfaceClassifyRunSummary._FinalStage
-
file
public ClassifyRunSummary._FinalStage file(Nullable<FileSummary> file)
The file that was processed.
nullwhen the file could not be accessed or processed (for example a run that failed during file ingestion, or a multi-file batch run).- Specified by:
filein interfaceClassifyRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
file
public ClassifyRunSummary._FinalStage file(FileSummary file)
The file that was processed.
nullwhen the file could not be accessed or processed (for example a run that failed during file ingestion, or a multi-file batch run).- Specified by:
filein interfaceClassifyRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
file
public ClassifyRunSummary._FinalStage file(java.util.Optional<FileSummary> file)
The file that was processed.
nullwhen the file could not be accessed or processed (for example a run that failed during file ingestion, or a multi-file batch run).- Specified by:
filein interfaceClassifyRunSummary._FinalStage
-
metadata
public ClassifyRunSummary._FinalStage metadata(Nullable<java.util.Map<java.lang.String,java.lang.Object>> metadata)
Any metadata that was provided when creating the classify run.
Availability: Present when metadata was provided during creation.
- Specified by:
metadatain interfaceClassifyRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
metadata
public ClassifyRunSummary._FinalStage metadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
Any metadata that was provided when creating the classify run.
Availability: Present when metadata was provided during creation.
- Specified by:
metadatain interfaceClassifyRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
metadata
public ClassifyRunSummary._FinalStage metadata(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> metadata)
Any metadata that was provided when creating the classify run.
Availability: Present when metadata was provided during creation.
- Specified by:
metadatain interfaceClassifyRunSummary._FinalStage
-
failureMessage
public ClassifyRunSummary._FinalStage failureMessage(Nullable<java.lang.String> failureMessage)
A detailed message about the failure.
Availability: Present when
statusis"FAILED".- Specified by:
failureMessagein interfaceClassifyRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
failureMessage
public ClassifyRunSummary._FinalStage failureMessage(java.lang.String failureMessage)
A detailed message about the failure.
Availability: Present when
statusis"FAILED".- Specified by:
failureMessagein interfaceClassifyRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
failureMessage
public ClassifyRunSummary._FinalStage failureMessage(java.util.Optional<java.lang.String> failureMessage)
A detailed message about the failure.
Availability: Present when
statusis"FAILED".- Specified by:
failureMessagein interfaceClassifyRunSummary._FinalStage
-
failureReason
public ClassifyRunSummary._FinalStage failureReason(Nullable<java.lang.String> failureReason)
The reason for failure.
Availability: Present when
statusis"FAILED".- Specified by:
failureReasonin interfaceClassifyRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
failureReason
public ClassifyRunSummary._FinalStage failureReason(java.lang.String failureReason)
The reason for failure.
Availability: Present when
statusis"FAILED".- Specified by:
failureReasonin interfaceClassifyRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
failureReason
public ClassifyRunSummary._FinalStage failureReason(java.util.Optional<java.lang.String> failureReason)
The reason for failure.
Availability: Present when
statusis"FAILED".- Specified by:
failureReasonin interfaceClassifyRunSummary._FinalStage
-
classifierVersion
public ClassifyRunSummary._FinalStage classifierVersion(Nullable<ClassifierVersionSummary> classifierVersion)
The version of the classifier that was used for this run.
Availability: Present when a classifier reference was provided. Not present when using inline
config.- Specified by:
classifierVersionin interfaceClassifyRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
classifierVersion
public ClassifyRunSummary._FinalStage classifierVersion(ClassifierVersionSummary classifierVersion)
The version of the classifier that was used for this run.
Availability: Present when a classifier reference was provided. Not present when using inline
config.- Specified by:
classifierVersionin interfaceClassifyRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
classifierVersion
public ClassifyRunSummary._FinalStage classifierVersion(java.util.Optional<ClassifierVersionSummary> classifierVersion)
The version of the classifier that was used for this run.
Availability: Present when a classifier reference was provided. Not present when using inline
config.- Specified by:
classifierVersionin interfaceClassifyRunSummary._FinalStage
-
classifier
public ClassifyRunSummary._FinalStage classifier(Nullable<ClassifierSummary> classifier)
The classifier that was used for this run.
Availability: Present when a classifier reference was provided. Not present when using inline
config.- Specified by:
classifierin interfaceClassifyRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
classifier
public ClassifyRunSummary._FinalStage classifier(ClassifierSummary classifier)
The classifier that was used for this run.
Availability: Present when a classifier reference was provided. Not present when using inline
config.- Specified by:
classifierin interfaceClassifyRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
classifier
public ClassifyRunSummary._FinalStage classifier(java.util.Optional<ClassifierSummary> classifier)
The classifier that was used for this run.
Availability: Present when a classifier reference was provided. Not present when using inline
config.- Specified by:
classifierin interfaceClassifyRunSummary._FinalStage
-
build
public ClassifyRunSummary build()
- Specified by:
buildin interfaceClassifyRunSummary._FinalStage
-
-