Class BatchProcessorRun.Builder

    • Method Detail

      • object

        public BatchProcessorRun.IdStage object​(@NotNull
                                                java.lang.String object)

        The type of response. In this case, it will always be "batch_processor_run".

        The type of response. In this case, it will always be "batch_processor_run".

        Specified by:
        object in interface BatchProcessorRun.ObjectStage
        Returns:
        Reference to this so that method calls can be chained together.
      • id

        public BatchProcessorRun.ProcessorIdStage id​(@NotNull
                                                     java.lang.String id)

        The unique identifier for this batch processor run.

        Example: "batch_processor_run_Xj8mK2pL9nR4vT7qY5wZ"

        The unique identifier for this batch processor run.

        Example: "batch_processor_run_Xj8mK2pL9nR4vT7qY5wZ"

        Specified by:
        id in interface BatchProcessorRun.IdStage
        Returns:
        Reference to this so that method calls can be chained together.
      • status

        public BatchProcessorRun.SourceStage status​(@NotNull
                                                    BatchProcessorRunStatus status)

        The current status of the batch processor run:

        • "PENDING" - The batch processor run is waiting to start
        • "PROCESSING" - The batch processor run is in progress
        • "PROCESSED" - The batch processor run completed successfully
        • "FAILED" - The batch processor run encountered an error

        The current status of the batch processor run:

        • "PENDING" - The batch processor run is waiting to start
        • "PROCESSING" - The batch processor run is in progress
        • "PROCESSED" - The batch processor run completed successfully
        • "FAILED" - The batch processor run encountered an error
        Specified by:
        status in interface BatchProcessorRun.StatusStage
        Returns:
        Reference to this so that method calls can be chained together.
      • source

        public BatchProcessorRun.RunCountStage source​(@NotNull
                                                      BatchProcessorRunSource source)

        The source of the batch processor run:

        • "EVAL_SET" - The batch processor run was made from an evaluation set. The sourceId will be the ID of the evaluation set (e.g., "ev_1234")
        • "PLAYGROUND" - The batch processor run was made from the playground. The sourceId will not be set
        • "STUDIO" - The batch processor run was made for a processor in Studio. The sourceId will be the ID of the processor (e.g., "ex_1234")

        The source of the batch processor run:

        • "EVAL_SET" - The batch processor run was made from an evaluation set. The sourceId will be the ID of the evaluation set (e.g., "ev_1234")
        • "PLAYGROUND" - The batch processor run was made from the playground. The sourceId will not be set
        • "STUDIO" - The batch processor run was made for a processor in Studio. The sourceId will be the ID of the processor (e.g., "ex_1234")
        Specified by:
        source in interface BatchProcessorRun.SourceStage
        Returns:
        Reference to this so that method calls can be chained together.
      • createdAt

        public BatchProcessorRun.UpdatedAtStage createdAt​(@NotNull
                                                          java.time.OffsetDateTime createdAt)

        The time (in UTC) at which the batch processor run was created. Will follow the RFC 3339 format.

        Example: "2024-03-21T15:30:00Z"

        The time (in UTC) at which the batch processor run was created. Will follow the RFC 3339 format.

        Example: "2024-03-21T15:30:00Z"

        Specified by:
        createdAt in interface BatchProcessorRun.CreatedAtStage
        Returns:
        Reference to this so that method calls can be chained together.
      • updatedAt

        public BatchProcessorRun._FinalStage updatedAt​(@NotNull
                                                       java.time.OffsetDateTime updatedAt)

        The time (in UTC) at which the batch processor run was last updated. Will follow the RFC 3339 format.

        Example: "2024-03-21T16:45:00Z"

        The time (in UTC) at which the batch processor run was last updated. Will follow the RFC 3339 format.

        Example: "2024-03-21T16:45:00Z"

        Specified by:
        updatedAt in interface BatchProcessorRun.UpdatedAtStage
        Returns:
        Reference to this so that method calls can be chained together.
      • sourceId

        public BatchProcessorRun._FinalStage sourceId​(java.lang.String sourceId)

        The ID of the source of the batch processor run. See the source field for more details. Example: "ev_1234" for EVAL_SET source, "ex_1234" for STUDIO source

        Specified by:
        sourceId in interface BatchProcessorRun._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • sourceId

        public BatchProcessorRun._FinalStage sourceId​(java.util.Optional<java.lang.String> sourceId)

        The ID of the source of the batch processor run. See the source field for more details. Example: "ev_1234" for EVAL_SET source, "ex_1234" for STUDIO source

        Specified by:
        sourceId in interface BatchProcessorRun._FinalStage