Class WorkflowRunsCreateBatchRequest.Builder
- java.lang.Object
-
- ai.extend.resources.workflowruns.requests.WorkflowRunsCreateBatchRequest.Builder
-
- All Implemented Interfaces:
WorkflowRunsCreateBatchRequest._FinalStage,WorkflowRunsCreateBatchRequest.WorkflowStage
- Enclosing class:
- WorkflowRunsCreateBatchRequest
public static final class WorkflowRunsCreateBatchRequest.Builder extends java.lang.Object implements WorkflowRunsCreateBatchRequest.WorkflowStage, WorkflowRunsCreateBatchRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowRunsCreateBatchRequest._FinalStageaddAllInputs(java.util.List<WorkflowRunsCreateBatchRequestInputsItem> inputs)An array of input objects to be processed by the workflow.WorkflowRunsCreateBatchRequest._FinalStageaddInputs(WorkflowRunsCreateBatchRequestInputsItem inputs)An array of input objects to be processed by the workflow.WorkflowRunsCreateBatchRequestbuild()WorkflowRunsCreateBatchRequest.Builderfrom(WorkflowRunsCreateBatchRequest other)WorkflowRunsCreateBatchRequest._FinalStageinputs(java.util.List<WorkflowRunsCreateBatchRequestInputsItem> inputs)An array of input objects to be processed by the workflow.WorkflowRunsCreateBatchRequest._FinalStagepriority(java.lang.Integer priority)An optional value used to determine the relative order of runs when rate limiting is in effect.WorkflowRunsCreateBatchRequest._FinalStagepriority(java.util.Optional<java.lang.Integer> priority)An optional value used to determine the relative order of runs when rate limiting is in effect.WorkflowRunsCreateBatchRequest._FinalStageworkflow(WorkflowReference workflow)
-
-
-
Method Detail
-
from
public WorkflowRunsCreateBatchRequest.Builder from(WorkflowRunsCreateBatchRequest other)
- Specified by:
fromin interfaceWorkflowRunsCreateBatchRequest.WorkflowStage
-
workflow
public WorkflowRunsCreateBatchRequest._FinalStage workflow(@NotNull WorkflowReference workflow)
- Specified by:
workflowin interfaceWorkflowRunsCreateBatchRequest.WorkflowStage
-
priority
public WorkflowRunsCreateBatchRequest._FinalStage priority(java.lang.Integer priority)
An optional value used to determine the relative order of runs when rate limiting is in effect. Lower values will be prioritized before higher values. Defaults to 90 if not specified.
- Specified by:
priorityin interfaceWorkflowRunsCreateBatchRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
priority
public WorkflowRunsCreateBatchRequest._FinalStage priority(java.util.Optional<java.lang.Integer> priority)
An optional value used to determine the relative order of runs when rate limiting is in effect. Lower values will be prioritized before higher values. Defaults to 90 if not specified.
- Specified by:
priorityin interfaceWorkflowRunsCreateBatchRequest._FinalStage
-
addAllInputs
public WorkflowRunsCreateBatchRequest._FinalStage addAllInputs(java.util.List<WorkflowRunsCreateBatchRequestInputsItem> 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 interfaceWorkflowRunsCreateBatchRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addInputs
public WorkflowRunsCreateBatchRequest._FinalStage addInputs(WorkflowRunsCreateBatchRequestInputsItem 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 interfaceWorkflowRunsCreateBatchRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
inputs
public WorkflowRunsCreateBatchRequest._FinalStage inputs(java.util.List<WorkflowRunsCreateBatchRequestInputsItem> 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 interfaceWorkflowRunsCreateBatchRequest._FinalStage
-
build
public WorkflowRunsCreateBatchRequest build()
- Specified by:
buildin interfaceWorkflowRunsCreateBatchRequest._FinalStage
-
-