Class WorkflowRunSummary.Builder
- java.lang.Object
-
- ai.extend.types.WorkflowRunSummary.Builder
-
- All Implemented Interfaces:
WorkflowRunSummary._FinalStage,WorkflowRunSummary.CreatedAtStage,WorkflowRunSummary.DashboardUrlStage,WorkflowRunSummary.IdStage,WorkflowRunSummary.StatusStage,WorkflowRunSummary.UpdatedAtStage,WorkflowRunSummary.WorkflowStage,WorkflowRunSummary.WorkflowVersionStage
- Enclosing class:
- WorkflowRunSummary
public static final class WorkflowRunSummary.Builder extends java.lang.Object implements WorkflowRunSummary.IdStage, WorkflowRunSummary.StatusStage, WorkflowRunSummary.WorkflowStage, WorkflowRunSummary.WorkflowVersionStage, WorkflowRunSummary.DashboardUrlStage, WorkflowRunSummary.CreatedAtStage, WorkflowRunSummary.UpdatedAtStage, WorkflowRunSummary._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowRunSummary._FinalStagebatchId(Nullable<java.lang.String> batchId)The batch ID of the workflow run.WorkflowRunSummary._FinalStagebatchId(java.lang.String batchId)The batch ID of the workflow run.WorkflowRunSummary._FinalStagebatchId(java.util.Optional<java.lang.String> batchId)The batch ID of the workflow run.WorkflowRunSummarybuild()WorkflowRunSummary.UpdatedAtStagecreatedAt(java.time.OffsetDateTime createdAt)WorkflowRunSummary.CreatedAtStagedashboardUrl(java.lang.String dashboardUrl)A URL to view this workflow run in the Extend dashboard.WorkflowRunSummary._FinalStageendTime(Nullable<java.time.OffsetDateTime> endTime)The end time (in UTC) that the workflow finished.WorkflowRunSummary._FinalStageendTime(java.time.OffsetDateTime endTime)The end time (in UTC) that the workflow finished.WorkflowRunSummary._FinalStageendTime(java.util.Optional<java.time.OffsetDateTime> endTime)The end time (in UTC) that the workflow finished.WorkflowRunSummary.Builderfrom(WorkflowRunSummary other)WorkflowRunSummary.StatusStageid(java.lang.String id)The ID of the workflow run.WorkflowRunSummary._FinalStageinitialRunAt(Nullable<java.time.OffsetDateTime> initialRunAt)The time (in UTC) at which the workflow was initially created.WorkflowRunSummary._FinalStageinitialRunAt(java.time.OffsetDateTime initialRunAt)The time (in UTC) at which the workflow was initially created.WorkflowRunSummary._FinalStageinitialRunAt(java.util.Optional<java.time.OffsetDateTime> initialRunAt)The time (in UTC) at which the workflow was initially created.WorkflowRunSummary._FinalStagerejectionNote(Nullable<java.lang.String> rejectionNote)The note that was added when the workflow run was rejected.WorkflowRunSummary._FinalStagerejectionNote(java.lang.String rejectionNote)The note that was added when the workflow run was rejected.WorkflowRunSummary._FinalStagerejectionNote(java.util.Optional<java.lang.String> rejectionNote)The note that was added when the workflow run was rejected.WorkflowRunSummary._FinalStagereviewedAt(Nullable<java.time.OffsetDateTime> reviewedAt)The time (in UTC) at which the workflow run was reviewed.WorkflowRunSummary._FinalStagereviewedAt(java.time.OffsetDateTime reviewedAt)The time (in UTC) at which the workflow run was reviewed.WorkflowRunSummary._FinalStagereviewedAt(java.util.Optional<java.time.OffsetDateTime> reviewedAt)The time (in UTC) at which the workflow run was reviewed.WorkflowRunSummary._FinalStagereviewedByUser(Nullable<java.lang.String> reviewedByUser)The user of the person who reviewed the workflow run.WorkflowRunSummary._FinalStagereviewedByUser(java.lang.String reviewedByUser)The user of the person who reviewed the workflow run.WorkflowRunSummary._FinalStagereviewedByUser(java.util.Optional<java.lang.String> reviewedByUser)The user of the person who reviewed the workflow run.WorkflowRunSummary._FinalStagestartTime(Nullable<java.time.OffsetDateTime> startTime)The start time (in UTC) that the workflow actually started executing.WorkflowRunSummary._FinalStagestartTime(java.time.OffsetDateTime startTime)The start time (in UTC) that the workflow actually started executing.WorkflowRunSummary._FinalStagestartTime(java.util.Optional<java.time.OffsetDateTime> startTime)The start time (in UTC) that the workflow actually started executing.WorkflowRunSummary.WorkflowStagestatus(WorkflowRunStatus status)WorkflowRunSummary._FinalStageupdatedAt(java.time.OffsetDateTime updatedAt)WorkflowRunSummary._FinalStageusage(Nullable<RunUsage> usage)WorkflowRunSummary._FinalStageusage(RunUsage usage)WorkflowRunSummary._FinalStageusage(java.util.Optional<RunUsage> usage)WorkflowRunSummary.WorkflowVersionStageworkflow(WorkflowSummary workflow)WorkflowRunSummary.DashboardUrlStageworkflowVersion(WorkflowVersionSummary workflowVersion)
-
-
-
Method Detail
-
from
public WorkflowRunSummary.Builder from(WorkflowRunSummary other)
- Specified by:
fromin interfaceWorkflowRunSummary.IdStage
-
id
public WorkflowRunSummary.StatusStage id(@NotNull java.lang.String id)
The ID of the workflow run.
Example:
"workflow_run_Zk9mNP12Qw4-yTv8BdR3H"The ID of the workflow run.
Example:
"workflow_run_Zk9mNP12Qw4-yTv8BdR3H"- Specified by:
idin interfaceWorkflowRunSummary.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
status
public WorkflowRunSummary.WorkflowStage status(@NotNull WorkflowRunStatus status)
- Specified by:
statusin interfaceWorkflowRunSummary.StatusStage
-
workflow
public WorkflowRunSummary.WorkflowVersionStage workflow(@NotNull WorkflowSummary workflow)
- Specified by:
workflowin interfaceWorkflowRunSummary.WorkflowStage
-
workflowVersion
public WorkflowRunSummary.DashboardUrlStage workflowVersion(@NotNull WorkflowVersionSummary workflowVersion)
- Specified by:
workflowVersionin interfaceWorkflowRunSummary.WorkflowVersionStage
-
dashboardUrl
public WorkflowRunSummary.CreatedAtStage dashboardUrl(@NotNull java.lang.String dashboardUrl)
A URL to view this workflow run in the Extend dashboard.
Example:
"https://dashboard.extend.ai/workflows/workflow_run_xKm9pNv3qWsY_jL2tR5Dh"A URL to view this workflow run in the Extend dashboard.
Example:
"https://dashboard.extend.ai/workflows/workflow_run_xKm9pNv3qWsY_jL2tR5Dh"- Specified by:
dashboardUrlin interfaceWorkflowRunSummary.DashboardUrlStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public WorkflowRunSummary.UpdatedAtStage createdAt(@NotNull java.time.OffsetDateTime createdAt)
- Specified by:
createdAtin interfaceWorkflowRunSummary.CreatedAtStage
-
updatedAt
public WorkflowRunSummary._FinalStage updatedAt(@NotNull java.time.OffsetDateTime updatedAt)
- Specified by:
updatedAtin interfaceWorkflowRunSummary.UpdatedAtStage
-
usage
public WorkflowRunSummary._FinalStage usage(Nullable<RunUsage> usage)
- Specified by:
usagein interfaceWorkflowRunSummary._FinalStage
-
usage
public WorkflowRunSummary._FinalStage usage(RunUsage usage)
- Specified by:
usagein interfaceWorkflowRunSummary._FinalStage
-
usage
public WorkflowRunSummary._FinalStage usage(java.util.Optional<RunUsage> usage)
- Specified by:
usagein interfaceWorkflowRunSummary._FinalStage
-
rejectionNote
public WorkflowRunSummary._FinalStage rejectionNote(Nullable<java.lang.String> rejectionNote)
The note that was added when the workflow run was rejected.
Example:
"Invalid invoice format"- Specified by:
rejectionNotein interfaceWorkflowRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
rejectionNote
public WorkflowRunSummary._FinalStage rejectionNote(java.lang.String rejectionNote)
The note that was added when the workflow run was rejected.
Example:
"Invalid invoice format"- Specified by:
rejectionNotein interfaceWorkflowRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
rejectionNote
public WorkflowRunSummary._FinalStage rejectionNote(java.util.Optional<java.lang.String> rejectionNote)
The note that was added when the workflow run was rejected.
Example:
"Invalid invoice format"- Specified by:
rejectionNotein interfaceWorkflowRunSummary._FinalStage
-
batchId
public WorkflowRunSummary._FinalStage batchId(Nullable<java.lang.String> batchId)
The batch ID of the workflow run. If that workflow run was created from a batch of files, all runs in that batch will have the same batch ID.
Example:
"batch_7Ws31-F5"- Specified by:
batchIdin interfaceWorkflowRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
batchId
public WorkflowRunSummary._FinalStage batchId(java.lang.String batchId)
The batch ID of the workflow run. If that workflow run was created from a batch of files, all runs in that batch will have the same batch ID.
Example:
"batch_7Ws31-F5"- Specified by:
batchIdin interfaceWorkflowRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
batchId
public WorkflowRunSummary._FinalStage batchId(java.util.Optional<java.lang.String> batchId)
The batch ID of the workflow run. If that workflow run was created from a batch of files, all runs in that batch will have the same batch ID.
Example:
"batch_7Ws31-F5"- Specified by:
batchIdin interfaceWorkflowRunSummary._FinalStage
-
endTime
public WorkflowRunSummary._FinalStage endTime(Nullable<java.time.OffsetDateTime> endTime)
The end time (in UTC) that the workflow finished. Will follow the RFC 3339 format. Will be null if not finished.
Example:
"2024-03-21T15:35:00Z"- Specified by:
endTimein interfaceWorkflowRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
endTime
public WorkflowRunSummary._FinalStage endTime(java.time.OffsetDateTime endTime)
The end time (in UTC) that the workflow finished. Will follow the RFC 3339 format. Will be null if not finished.
Example:
"2024-03-21T15:35:00Z"- Specified by:
endTimein interfaceWorkflowRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
endTime
public WorkflowRunSummary._FinalStage endTime(java.util.Optional<java.time.OffsetDateTime> endTime)
The end time (in UTC) that the workflow finished. Will follow the RFC 3339 format. Will be null if not finished.
Example:
"2024-03-21T15:35:00Z"- Specified by:
endTimein interfaceWorkflowRunSummary._FinalStage
-
startTime
public WorkflowRunSummary._FinalStage startTime(Nullable<java.time.OffsetDateTime> startTime)
The start time (in UTC) that the workflow actually started executing. This occurs after the
initialRunAttime. Will follow the RFC 3339 format. Will be null if not started.Example:
"2024-03-21T15:30:00Z"- Specified by:
startTimein interfaceWorkflowRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
startTime
public WorkflowRunSummary._FinalStage startTime(java.time.OffsetDateTime startTime)
The start time (in UTC) that the workflow actually started executing. This occurs after the
initialRunAttime. Will follow the RFC 3339 format. Will be null if not started.Example:
"2024-03-21T15:30:00Z"- Specified by:
startTimein interfaceWorkflowRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
startTime
public WorkflowRunSummary._FinalStage startTime(java.util.Optional<java.time.OffsetDateTime> startTime)
The start time (in UTC) that the workflow actually started executing. This occurs after the
initialRunAttime. Will follow the RFC 3339 format. Will be null if not started.Example:
"2024-03-21T15:30:00Z"- Specified by:
startTimein interfaceWorkflowRunSummary._FinalStage
-
initialRunAt
public WorkflowRunSummary._FinalStage initialRunAt(Nullable<java.time.OffsetDateTime> initialRunAt)
The time (in UTC) at which the workflow was initially created. Will follow the RFC 3339 format. Will be null if the run hasn't started yet.
Example:
"2024-03-21T15:30:00Z"- Specified by:
initialRunAtin interfaceWorkflowRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
initialRunAt
public WorkflowRunSummary._FinalStage initialRunAt(java.time.OffsetDateTime initialRunAt)
The time (in UTC) at which the workflow was initially created. Will follow the RFC 3339 format. Will be null if the run hasn't started yet.
Example:
"2024-03-21T15:30:00Z"- Specified by:
initialRunAtin interfaceWorkflowRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
initialRunAt
public WorkflowRunSummary._FinalStage initialRunAt(java.util.Optional<java.time.OffsetDateTime> initialRunAt)
The time (in UTC) at which the workflow was initially created. Will follow the RFC 3339 format. Will be null if the run hasn't started yet.
Example:
"2024-03-21T15:30:00Z"- Specified by:
initialRunAtin interfaceWorkflowRunSummary._FinalStage
-
reviewedAt
public WorkflowRunSummary._FinalStage reviewedAt(Nullable<java.time.OffsetDateTime> reviewedAt)
The time (in UTC) at which the workflow run was reviewed. Will follow the RFC 3339 format. Will be null if the workflow run has not been reviewed.
Example:
"2024-03-21T16:45:00Z"- Specified by:
reviewedAtin interfaceWorkflowRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
reviewedAt
public WorkflowRunSummary._FinalStage reviewedAt(java.time.OffsetDateTime reviewedAt)
The time (in UTC) at which the workflow run was reviewed. Will follow the RFC 3339 format. Will be null if the workflow run has not been reviewed.
Example:
"2024-03-21T16:45:00Z"- Specified by:
reviewedAtin interfaceWorkflowRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
reviewedAt
public WorkflowRunSummary._FinalStage reviewedAt(java.util.Optional<java.time.OffsetDateTime> reviewedAt)
The time (in UTC) at which the workflow run was reviewed. Will follow the RFC 3339 format. Will be null if the workflow run has not been reviewed.
Example:
"2024-03-21T16:45:00Z"- Specified by:
reviewedAtin interfaceWorkflowRunSummary._FinalStage
-
reviewedByUser
public WorkflowRunSummary._FinalStage reviewedByUser(Nullable<java.lang.String> reviewedByUser)
The user of the person who reviewed the workflow run. Will be null if the workflow run has not been reviewed.
Example:
"jane.doe@example.com"- Specified by:
reviewedByUserin interfaceWorkflowRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
reviewedByUser
public WorkflowRunSummary._FinalStage reviewedByUser(java.lang.String reviewedByUser)
The user of the person who reviewed the workflow run. Will be null if the workflow run has not been reviewed.
Example:
"jane.doe@example.com"- Specified by:
reviewedByUserin interfaceWorkflowRunSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
reviewedByUser
public WorkflowRunSummary._FinalStage reviewedByUser(java.util.Optional<java.lang.String> reviewedByUser)
The user of the person who reviewed the workflow run. Will be null if the workflow run has not been reviewed.
Example:
"jane.doe@example.com"- Specified by:
reviewedByUserin interfaceWorkflowRunSummary._FinalStage
-
build
public WorkflowRunSummary build()
- Specified by:
buildin interfaceWorkflowRunSummary._FinalStage
-
-