Class BatchWorkflowRunCreateRequestInputsItem.Builder
- java.lang.Object
-
- ai.extend.resources.batchworkflowrun.types.BatchWorkflowRunCreateRequestInputsItem.Builder
-
- Enclosing class:
- BatchWorkflowRunCreateRequestInputsItem
public static final class BatchWorkflowRunCreateRequestInputsItem.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchWorkflowRunCreateRequestInputsItembuild()BatchWorkflowRunCreateRequestInputsItem.Builderfile(BatchWorkflowRunFileInput file)BatchWorkflowRunCreateRequestInputsItem.Builderfile(java.util.Optional<BatchWorkflowRunFileInput> file)The file to be processed.BatchWorkflowRunCreateRequestInputsItem.Builderfrom(BatchWorkflowRunCreateRequestInputsItem other)BatchWorkflowRunCreateRequestInputsItem.Buildermetadata(java.util.Map<java.lang.String,java.lang.Object> metadata)BatchWorkflowRunCreateRequestInputsItem.Buildermetadata(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> metadata)An optional object containing arbitrary key-value pairs to associate with this specific workflow run.BatchWorkflowRunCreateRequestInputsItem.BuilderrawText(java.lang.String rawText)BatchWorkflowRunCreateRequestInputsItem.BuilderrawText(java.util.Optional<java.lang.String> rawText)A string containing raw text data to be processed.BatchWorkflowRunCreateRequestInputsItem.Buildersecrets(java.util.Map<java.lang.String,java.lang.Object> secrets)BatchWorkflowRunCreateRequestInputsItem.Buildersecrets(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> secrets)An optional object containing secrets to be used by processors within the workflow for this specific run.
-
-
-
Method Detail
-
from
public BatchWorkflowRunCreateRequestInputsItem.Builder from(BatchWorkflowRunCreateRequestInputsItem other)
-
file
public BatchWorkflowRunCreateRequestInputsItem.Builder file(java.util.Optional<BatchWorkflowRunFileInput> file)
The file to be processed. Either
fileorrawTextmust be provided for each input.
-
file
public BatchWorkflowRunCreateRequestInputsItem.Builder file(BatchWorkflowRunFileInput file)
-
rawText
public BatchWorkflowRunCreateRequestInputsItem.Builder rawText(java.util.Optional<java.lang.String> rawText)
A string containing raw text data to be processed. This will be treated as a
.txtfile by the workflow. Use thefileparameter for structured data or specific file types. EitherfileorrawTextmust be provided for each input.
-
rawText
public BatchWorkflowRunCreateRequestInputsItem.Builder rawText(java.lang.String rawText)
-
metadata
public BatchWorkflowRunCreateRequestInputsItem.Builder metadata(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> metadata)
An optional object containing arbitrary key-value pairs to associate with this specific workflow run. This metadata will be included in webhook payloads and responses when fetching the workflow run details.
-
metadata
public BatchWorkflowRunCreateRequestInputsItem.Builder metadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
-
secrets
public BatchWorkflowRunCreateRequestInputsItem.Builder secrets(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> secrets)
An optional object containing secrets to be used by processors within the workflow for this specific run.
-
secrets
public BatchWorkflowRunCreateRequestInputsItem.Builder secrets(java.util.Map<java.lang.String,java.lang.Object> secrets)
-
build
public BatchWorkflowRunCreateRequestInputsItem build()
-
-