Class WorkflowRunsCreateRequest.Builder
- java.lang.Object
-
- ai.extend.resources.workflowruns.requests.WorkflowRunsCreateRequest.Builder
-
- All Implemented Interfaces:
WorkflowRunsCreateRequest._FinalStage,WorkflowRunsCreateRequest.FileStage,WorkflowRunsCreateRequest.WorkflowStage
- Enclosing class:
- WorkflowRunsCreateRequest
public static final class WorkflowRunsCreateRequest.Builder extends java.lang.Object implements WorkflowRunsCreateRequest.WorkflowStage, WorkflowRunsCreateRequest.FileStage, WorkflowRunsCreateRequest._FinalStage
-
-
Method Summary
-
-
-
Method Detail
-
from
public WorkflowRunsCreateRequest.Builder from(WorkflowRunsCreateRequest other)
- Specified by:
fromin interfaceWorkflowRunsCreateRequest.WorkflowStage
-
workflow
public WorkflowRunsCreateRequest.FileStage workflow(@NotNull WorkflowReference workflow)
- Specified by:
workflowin interfaceWorkflowRunsCreateRequest.WorkflowStage
-
file
public WorkflowRunsCreateRequest._FinalStage file(@NotNull WorkflowRunsCreateRequestFile file)
The file to be processed. Supported file types can be found here. Files can be provided as a URL, an Extend file ID, or raw text. If you wish to process more at a time, consider using the Batch Run Workflow endpoint.
The file to be processed. Supported file types can be found here. Files can be provided as a URL, an Extend file ID, or raw text. If you wish to process more at a time, consider using the Batch Run Workflow endpoint.
- Specified by:
filein interfaceWorkflowRunsCreateRequest.FileStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
secrets
public WorkflowRunsCreateRequest._FinalStage secrets(java.util.Map<java.lang.String,java.lang.Object> secrets)
- Specified by:
secretsin interfaceWorkflowRunsCreateRequest._FinalStage
-
secrets
public WorkflowRunsCreateRequest._FinalStage secrets(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> secrets)
- Specified by:
secretsin interfaceWorkflowRunsCreateRequest._FinalStage
-
metadata
public WorkflowRunsCreateRequest._FinalStage metadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
- Specified by:
metadatain interfaceWorkflowRunsCreateRequest._FinalStage
-
metadata
public WorkflowRunsCreateRequest._FinalStage metadata(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> metadata)
- Specified by:
metadatain interfaceWorkflowRunsCreateRequest._FinalStage
-
priority
public WorkflowRunsCreateRequest._FinalStage priority(java.lang.Integer priority)
- Specified by:
priorityin interfaceWorkflowRunsCreateRequest._FinalStage
-
priority
public WorkflowRunsCreateRequest._FinalStage priority(java.util.Optional<java.lang.Integer> priority)
- Specified by:
priorityin interfaceWorkflowRunsCreateRequest._FinalStage
-
outputs
public WorkflowRunsCreateRequest._FinalStage outputs(java.util.List<WorkflowRunsCreateRequestOutputsItem> outputs)
Predetermined outputs to be used for the workflow run. Generally not recommended for most use cases, however, can be useful in cases of overriding a classification in a workflow, or a subset of extraction fields when data is known.
- Specified by:
outputsin interfaceWorkflowRunsCreateRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
outputs
public WorkflowRunsCreateRequest._FinalStage outputs(java.util.Optional<java.util.List<WorkflowRunsCreateRequestOutputsItem>> outputs)
Predetermined outputs to be used for the workflow run. Generally not recommended for most use cases, however, can be useful in cases of overriding a classification in a workflow, or a subset of extraction fields when data is known.
- Specified by:
outputsin interfaceWorkflowRunsCreateRequest._FinalStage
-
build
public WorkflowRunsCreateRequest build()
- Specified by:
buildin interfaceWorkflowRunsCreateRequest._FinalStage
-
-