Package ai.extend.types
Class BatchRun.Builder
- java.lang.Object
-
- ai.extend.types.BatchRun.Builder
-
- All Implemented Interfaces:
BatchRun._FinalStage,BatchRun.CreatedAtStage,BatchRun.IdStage,BatchRun.RunCountStage,BatchRun.StatusStage
- Enclosing class:
- BatchRun
public static final class BatchRun.Builder extends java.lang.Object implements BatchRun.IdStage, BatchRun.StatusStage, BatchRun.RunCountStage, BatchRun.CreatedAtStage, BatchRun._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchRunbuild()BatchRun._FinalStagecreatedAt(java.time.OffsetDateTime createdAt)BatchRun.Builderfrom(BatchRun other)BatchRun.StatusStageid(java.lang.String id)The unique identifier for this batch run.BatchRun.CreatedAtStagerunCount(int runCount)The number of individual runs in this batch.BatchRun.RunCountStagestatus(BatchRunStatus status)
-
-
-
Method Detail
-
from
public BatchRun.Builder from(BatchRun other)
- Specified by:
fromin interfaceBatchRun.IdStage
-
id
public BatchRun.StatusStage id(@NotNull java.lang.String id)
The unique identifier for this batch run.
Example:
"bpr_Xj8mK2pL9nR4vT7qY5wZ"The unique identifier for this batch run.
Example:
"bpr_Xj8mK2pL9nR4vT7qY5wZ"- Specified by:
idin interfaceBatchRun.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
status
public BatchRun.RunCountStage status(@NotNull BatchRunStatus status)
- Specified by:
statusin interfaceBatchRun.StatusStage
-
runCount
public BatchRun.CreatedAtStage runCount(int runCount)
The number of individual runs in this batch.
The number of individual runs in this batch.
- Specified by:
runCountin interfaceBatchRun.RunCountStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public BatchRun._FinalStage createdAt(@NotNull java.time.OffsetDateTime createdAt)
- Specified by:
createdAtin interfaceBatchRun.CreatedAtStage
-
build
public BatchRun build()
- Specified by:
buildin interfaceBatchRun._FinalStage
-
-