Class ProcessorRunListRequest
- java.lang.Object
-
- ai.extend.resources.processorrun.requests.ProcessorRunListRequest
-
public final class ProcessorRunListRequest extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProcessorRunListRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProcessorRunListRequest.Builderbuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.util.Optional<java.lang.String>getFileNameContains()java.util.Optional<java.lang.Integer>getMaxPageSize()java.util.Optional<java.lang.String>getNextPageToken()java.util.Optional<java.lang.String>getProcessorId()java.util.Optional<LegacyProcessorType>getProcessorType()java.util.Optional<LegacySortByEnum>getSortBy()java.util.Optional<LegacySortDirEnum>getSortDir()java.util.Optional<ProcessorRunListRequestSource>getSource()java.util.Optional<java.lang.String>getSourceId()java.util.Optional<LegacyProcessorStatus>getStatus()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getStatus
public java.util.Optional<LegacyProcessorStatus> getStatus()
- Returns:
- Filters processor runs by their status. If not provided, no filter is applied.
The status of a processor run:
"PENDING"- The processor run has not started yet"PROCESSING"- The processor run is in progress"PROCESSED"- The processor run completed successfully"FAILED"- The processor run encountered an error"CANCELLED"- The processor run was cancelled
-
getProcessorId
public java.util.Optional<java.lang.String> getProcessorId()
- Returns:
- Filters processor runs by the processor ID. If not provided, runs for all processors are returned.
Example:
"ex_BMdfq_yWM3sT-ZzvCnA3f"
-
getProcessorType
public java.util.Optional<LegacyProcessorType> getProcessorType()
- Returns:
- Filters processor runs by the processor type. If not provided, runs for all processor types are returned.
Example:
"EXTRACT"
-
getSourceId
public java.util.Optional<java.lang.String> getSourceId()
- Returns:
- Filters processor runs by the source ID. The source ID corresponds to the entity that created the processor run.
Example:
"workflow_run_123"
-
getSource
public java.util.Optional<ProcessorRunListRequestSource> getSource()
- Returns:
- Filters processor runs by the source that created them. If not provided, runs from all sources are returned.
The source of the processor run:
"ADMIN"- Created by admin"BATCH_PROCESSOR_RUN"- Created from a batch processor run"PLAYGROUND"- Created from playground"WORKFLOW_CONFIGURATION"- Created from workflow configuration"WORKFLOW_RUN"- Created from a workflow run"STUDIO"- Created from Studio"API"- Created via API
-
getFileNameContains
public java.util.Optional<java.lang.String> getFileNameContains()
- Returns:
- Filters processor runs by the name of the file. Only returns processor runs where the file name contains this string.
Example:
"invoice"
-
getSortBy
public java.util.Optional<LegacySortByEnum> getSortBy()
- Returns:
- Sorts the processor runs by the given field.
-
getSortDir
public java.util.Optional<LegacySortDirEnum> getSortDir()
- Returns:
- Sorts the processor runs in ascending or descending order. Ascending order means the earliest processor run is returned first.
-
getNextPageToken
public java.util.Optional<java.lang.String> getNextPageToken()
-
getMaxPageSize
public java.util.Optional<java.lang.Integer> getMaxPageSize()
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static ProcessorRunListRequest.Builder builder()
-
-