Class ParserRun.Builder

    • Method Detail

      • id

        public ParserRun.FileIdStage id​(@NotNull
                                        java.lang.String id)

        A unique identifier for the parser run. Will always start with "parser_run_"

        Example: "parser_run_xK9mLPqRtN3vS8wF5hB2cQ"

        A unique identifier for the parser run. Will always start with "parser_run_"

        Example: "parser_run_xK9mLPqRtN3vS8wF5hB2cQ"

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

        public ParserRun.StatusStage fileId​(@NotNull
                                            java.lang.String fileId)

        The identifier of the file that was parsed. This can be used as a parameter to other Extend endpoints, such as processor runs.

        The identifier of the file that was parsed. This can be used as a parameter to other Extend endpoints, such as processor runs.

        Specified by:
        fileId in interface ParserRun.FileIdStage
        Returns:
        Reference to this so that method calls can be chained together.
      • status

        public ParserRun.MetricsStage status​(@NotNull
                                             ParserRunStatusEnum status)

        The status of the parser run:

        • "PROCESSED" - The file was successfully processed
        • "FAILED" - The processing failed (see failureReason for details)

        The status of the parser run:

        • "PROCESSED" - The file was successfully processed
        • "FAILED" - The processing failed (see failureReason for details)
        Specified by:
        status in interface ParserRun.StatusStage
        Returns:
        Reference to this so that method calls can be chained together.
      • config

        public ParserRun._FinalStage config​(@NotNull
                                            ParseConfig config)

        The configuration used for the parsing process, including any default values that were applied.

        The configuration used for the parsing process, including any default values that were applied.

        Specified by:
        config in interface ParserRun.ConfigStage
        Returns:
        Reference to this so that method calls can be chained together.
      • failureReason

        public ParserRun._FinalStage failureReason​(java.lang.String failureReason)

        The reason for failure if status is "FAILED".

        Specified by:
        failureReason in interface ParserRun._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.