Class LegacyBatchProcessorRun.Builder
- java.lang.Object
-
- ai.extend.types.LegacyBatchProcessorRun.Builder
-
- All Implemented Interfaces:
LegacyBatchProcessorRun._FinalStage,LegacyBatchProcessorRun.CreatedAtStage,LegacyBatchProcessorRun.IdStage,LegacyBatchProcessorRun.MetricsStage,LegacyBatchProcessorRun.ObjectStage,LegacyBatchProcessorRun.OptionsStage,LegacyBatchProcessorRun.ProcessorIdStage,LegacyBatchProcessorRun.ProcessorNameStage,LegacyBatchProcessorRun.ProcessorVersionIdStage,LegacyBatchProcessorRun.RunCountStage,LegacyBatchProcessorRun.SourceStage,LegacyBatchProcessorRun.StatusStage,LegacyBatchProcessorRun.UpdatedAtStage
- Enclosing class:
- LegacyBatchProcessorRun
public static final class LegacyBatchProcessorRun.Builder extends java.lang.Object implements LegacyBatchProcessorRun.ObjectStage, LegacyBatchProcessorRun.IdStage, LegacyBatchProcessorRun.ProcessorIdStage, LegacyBatchProcessorRun.ProcessorVersionIdStage, LegacyBatchProcessorRun.ProcessorNameStage, LegacyBatchProcessorRun.MetricsStage, LegacyBatchProcessorRun.StatusStage, LegacyBatchProcessorRun.SourceStage, LegacyBatchProcessorRun.RunCountStage, LegacyBatchProcessorRun.OptionsStage, LegacyBatchProcessorRun.CreatedAtStage, LegacyBatchProcessorRun.UpdatedAtStage, LegacyBatchProcessorRun._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LegacyBatchProcessorRunbuild()LegacyBatchProcessorRun.UpdatedAtStagecreatedAt(java.time.OffsetDateTime createdAt)The time (in UTC) at which the batch processor run was created.LegacyBatchProcessorRun.Builderfrom(LegacyBatchProcessorRun other)LegacyBatchProcessorRun.ProcessorIdStageid(java.lang.String id)The unique identifier for this batch processor run.LegacyBatchProcessorRun.StatusStagemetrics(LegacyBatchProcessorRunMetrics metrics)LegacyBatchProcessorRun.IdStageobject(java.lang.String object)The type of response.LegacyBatchProcessorRun.CreatedAtStageoptions(LegacyBatchProcessorRunOptions options)The options for the batch processor run.LegacyBatchProcessorRun.ProcessorVersionIdStageprocessorId(java.lang.String processorId)The ID of the processor used for this run.LegacyBatchProcessorRun.MetricsStageprocessorName(java.lang.String processorName)The name of the processor.LegacyBatchProcessorRun.ProcessorNameStageprocessorVersionId(java.lang.String processorVersionId)The ID of the specific processor version used.LegacyBatchProcessorRun.OptionsStagerunCount(int runCount)The number of runs that were made.LegacyBatchProcessorRun.RunCountStagesource(LegacyBatchProcessorRunSource source)The source of the batch processor run:LegacyBatchProcessorRun._FinalStagesourceId(java.lang.String sourceId)The ID of the source of the batch processor run.LegacyBatchProcessorRun._FinalStagesourceId(java.util.Optional<java.lang.String> sourceId)The ID of the source of the batch processor run.LegacyBatchProcessorRun.SourceStagestatus(LegacyBatchProcessorRunStatus status)The current status of the batch processor run:LegacyBatchProcessorRun._FinalStageupdatedAt(java.time.OffsetDateTime updatedAt)The time (in UTC) at which the batch processor run was last updated.
-
-
-
Method Detail
-
from
public LegacyBatchProcessorRun.Builder from(LegacyBatchProcessorRun other)
- Specified by:
fromin interfaceLegacyBatchProcessorRun.ObjectStage
-
object
public LegacyBatchProcessorRun.IdStage object(@NotNull java.lang.String object)
The type of response. In this case, it will always be
"batch_processor_run".The type of response. In this case, it will always be
"batch_processor_run".- Specified by:
objectin interfaceLegacyBatchProcessorRun.ObjectStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
public LegacyBatchProcessorRun.ProcessorIdStage id(@NotNull java.lang.String id)
The unique identifier for this batch processor run.
Example:
"batch_processor_run_Xj8mK2pL9nR4vT7qY5wZ"The unique identifier for this batch processor run.
Example:
"batch_processor_run_Xj8mK2pL9nR4vT7qY5wZ"- Specified by:
idin interfaceLegacyBatchProcessorRun.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
processorId
public LegacyBatchProcessorRun.ProcessorVersionIdStage processorId(@NotNull java.lang.String processorId)
The ID of the processor used for this run.
Example:
"ex_Xj8mK2pL9nR4vT7qY5wZ"The ID of the processor used for this run.
Example:
"ex_Xj8mK2pL9nR4vT7qY5wZ"- Specified by:
processorIdin interfaceLegacyBatchProcessorRun.ProcessorIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
processorVersionId
public LegacyBatchProcessorRun.ProcessorNameStage processorVersionId(@NotNull java.lang.String processorVersionId)
The ID of the specific processor version used.
Example:
"exv_xK9mLPqRtN3vS8wF5hB2cQ"The ID of the specific processor version used.
Example:
"exv_xK9mLPqRtN3vS8wF5hB2cQ"- Specified by:
processorVersionIdin interfaceLegacyBatchProcessorRun.ProcessorVersionIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
processorName
public LegacyBatchProcessorRun.MetricsStage processorName(@NotNull java.lang.String processorName)
The name of the processor.
Example:
"Invoice Processor"The name of the processor.
Example:
"Invoice Processor"- Specified by:
processorNamein interfaceLegacyBatchProcessorRun.ProcessorNameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
metrics
public LegacyBatchProcessorRun.StatusStage metrics(@NotNull LegacyBatchProcessorRunMetrics metrics)
- Specified by:
metricsin interfaceLegacyBatchProcessorRun.MetricsStage
-
status
public LegacyBatchProcessorRun.SourceStage status(@NotNull LegacyBatchProcessorRunStatus status)
The current status of the batch processor run:
"PENDING"- The batch processor run is waiting to start"PROCESSING"- The batch processor run is in progress"PROCESSED"- The batch processor run completed successfully"FAILED"- The batch processor run encountered an error
The current status of the batch processor run:
"PENDING"- The batch processor run is waiting to start"PROCESSING"- The batch processor run is in progress"PROCESSED"- The batch processor run completed successfully"FAILED"- The batch processor run encountered an error
- Specified by:
statusin interfaceLegacyBatchProcessorRun.StatusStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
source
public LegacyBatchProcessorRun.RunCountStage source(@NotNull LegacyBatchProcessorRunSource source)
The source of the batch processor run:
"EVAL_SET"- The batch processor run was made from an evaluation set. ThesourceIdwill be the ID of the evaluation set (e.g.,"ev_1234")"PLAYGROUND"- The batch processor run was made from the playground. ThesourceIdwill not be set"STUDIO"- The batch processor run was made for a processor in Studio. ThesourceIdwill be the ID of the processor (e.g.,"ex_1234")
The source of the batch processor run:
"EVAL_SET"- The batch processor run was made from an evaluation set. ThesourceIdwill be the ID of the evaluation set (e.g.,"ev_1234")"PLAYGROUND"- The batch processor run was made from the playground. ThesourceIdwill not be set"STUDIO"- The batch processor run was made for a processor in Studio. ThesourceIdwill be the ID of the processor (e.g.,"ex_1234")
- Specified by:
sourcein interfaceLegacyBatchProcessorRun.SourceStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
runCount
public LegacyBatchProcessorRun.OptionsStage runCount(int runCount)
The number of runs that were made.
The number of runs that were made.
- Specified by:
runCountin interfaceLegacyBatchProcessorRun.RunCountStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
options
public LegacyBatchProcessorRun.CreatedAtStage options(@NotNull LegacyBatchProcessorRunOptions options)
The options for the batch processor run.
The options for the batch processor run.
- Specified by:
optionsin interfaceLegacyBatchProcessorRun.OptionsStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public LegacyBatchProcessorRun.UpdatedAtStage createdAt(@NotNull java.time.OffsetDateTime createdAt)
The time (in UTC) at which the batch processor run was created. Will follow the RFC 3339 format.
Example:
"2024-03-21T15:30:00Z"The time (in UTC) at which the batch processor run was created. Will follow the RFC 3339 format.
Example:
"2024-03-21T15:30:00Z"- Specified by:
createdAtin interfaceLegacyBatchProcessorRun.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
public LegacyBatchProcessorRun._FinalStage updatedAt(@NotNull java.time.OffsetDateTime updatedAt)
The time (in UTC) at which the batch processor run was last updated. Will follow the RFC 3339 format.
Example:
"2024-03-21T16:45:00Z"The time (in UTC) at which the batch processor run was last updated. Will follow the RFC 3339 format.
Example:
"2024-03-21T16:45:00Z"- Specified by:
updatedAtin interfaceLegacyBatchProcessorRun.UpdatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
sourceId
public LegacyBatchProcessorRun._FinalStage sourceId(java.lang.String sourceId)
The ID of the source of the batch processor run. See the
sourcefield for more details. Example:"ev_1234"for EVAL_SET source,"ex_1234"for STUDIO source- Specified by:
sourceIdin interfaceLegacyBatchProcessorRun._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
sourceId
public LegacyBatchProcessorRun._FinalStage sourceId(java.util.Optional<java.lang.String> sourceId)
The ID of the source of the batch processor run. See the
sourcefield for more details. Example:"ev_1234"for EVAL_SET source,"ex_1234"for STUDIO source- Specified by:
sourceIdin interfaceLegacyBatchProcessorRun._FinalStage
-
build
public LegacyBatchProcessorRun build()
- Specified by:
buildin interfaceLegacyBatchProcessorRun._FinalStage
-
-