Class BatchWorkflowRunCreateRequest.Builder
- java.lang.Object
-
- ai.extend.resources.batchworkflowrun.requests.BatchWorkflowRunCreateRequest.Builder
-
- All Implemented Interfaces:
BatchWorkflowRunCreateRequest._FinalStage,BatchWorkflowRunCreateRequest.WorkflowIdStage
- Enclosing class:
- BatchWorkflowRunCreateRequest
public static final class BatchWorkflowRunCreateRequest.Builder extends java.lang.Object implements BatchWorkflowRunCreateRequest.WorkflowIdStage, BatchWorkflowRunCreateRequest._FinalStage
-
-
Method Summary
-
-
-
Method Detail
-
from
public BatchWorkflowRunCreateRequest.Builder from(BatchWorkflowRunCreateRequest other)
- Specified by:
fromin interfaceBatchWorkflowRunCreateRequest.WorkflowIdStage
-
workflowId
public BatchWorkflowRunCreateRequest._FinalStage workflowId(@NotNull java.lang.String workflowId)
The ID of the workflow to run. This ID will start with "workflow_". This ID can be found viewing the workflow on the Extend platform.
Example:
"workflow_BMdfq_yWM3sT-ZzvCnA3f"The ID of the workflow to run. This ID will start with "workflow_". This ID can be found viewing the workflow on the Extend platform.
Example:
"workflow_BMdfq_yWM3sT-ZzvCnA3f"- Specified by:
workflowIdin interfaceBatchWorkflowRunCreateRequest.WorkflowIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addAllInputs
public BatchWorkflowRunCreateRequest._FinalStage addAllInputs(java.util.List<BatchWorkflowRunCreateRequestInputsItem> inputs)
An array of input objects to be processed by the workflow. Each object represents a single workflow run to be created. The array must contain at least 1 input and at most 1000 inputs.
- Specified by:
addAllInputsin interfaceBatchWorkflowRunCreateRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addInputs
public BatchWorkflowRunCreateRequest._FinalStage addInputs(BatchWorkflowRunCreateRequestInputsItem inputs)
An array of input objects to be processed by the workflow. Each object represents a single workflow run to be created. The array must contain at least 1 input and at most 1000 inputs.
- Specified by:
addInputsin interfaceBatchWorkflowRunCreateRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
inputs
public BatchWorkflowRunCreateRequest._FinalStage inputs(java.util.List<BatchWorkflowRunCreateRequestInputsItem> inputs)
An array of input objects to be processed by the workflow. Each object represents a single workflow run to be created. The array must contain at least 1 input and at most 1000 inputs.
- Specified by:
inputsin interfaceBatchWorkflowRunCreateRequest._FinalStage
-
version
public BatchWorkflowRunCreateRequest._FinalStage version(java.lang.String version)
An optional version of the workflow to use. This can be a specific version number (e.g.,
"1","2") found on the Extend platform, or"draft"to use the current unpublished draft version. When a version is not supplied, the latest deployed version of the workflow will be used. If no deployed version exists, the draft version will be used.- Specified by:
versionin interfaceBatchWorkflowRunCreateRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
version
public BatchWorkflowRunCreateRequest._FinalStage version(java.util.Optional<java.lang.String> version)
An optional version of the workflow to use. This can be a specific version number (e.g.,
"1","2") found on the Extend platform, or"draft"to use the current unpublished draft version. When a version is not supplied, the latest deployed version of the workflow will be used. If no deployed version exists, the draft version will be used.- Specified by:
versionin interfaceBatchWorkflowRunCreateRequest._FinalStage
-
build
public BatchWorkflowRunCreateRequest build()
- Specified by:
buildin interfaceBatchWorkflowRunCreateRequest._FinalStage
-
-