Class ProcessorVersion.Builder

    • Method Detail

      • object

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

        The type of the object. In this case, it will always be "document_processor_version".

        The type of the object. In this case, it will always be "document_processor_version".

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

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

        The unique identifier for this version of the document processor.

        Example: "dpv_xK9mLPqRtN3vS8wF5hB2cQ"

        The unique identifier for this version of the document processor.

        Example: "dpv_xK9mLPqRtN3vS8wF5hB2cQ"

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

        public ProcessorVersion.ProcessorTypeStage processorId​(@NotNull
                                                               java.lang.String processorId)

        The ID of the parent document processor.

        Example: "dp_Xj8mK2pL9nR4vT7qY5wZ"

        The ID of the parent document processor.

        Example: "dp_Xj8mK2pL9nR4vT7qY5wZ"

        Specified by:
        processorId in interface ProcessorVersion.ProcessorIdStage
        Returns:
        Reference to this so that method calls can be chained together.
      • version

        public ProcessorVersion.ConfigStage version​(@NotNull
                                                    java.lang.String version)

        The version number or identifier for this specific version of the document processor. The draft version will have version="draft".

        Examples: "1.0", "2.1", "draft"

        The version number or identifier for this specific version of the document processor. The draft version will have version="draft".

        Examples: "1.0", "2.1", "draft"

        Specified by:
        version in interface ProcessorVersion.VersionStage
        Returns:
        Reference to this so that method calls can be chained together.
      • config

        public ProcessorVersion.CreatedAtStage config​(@NotNull
                                                      ProcessorVersionConfig config)

        The configuration settings for this version of the document processor. The structure of this object will vary depending on the processor type.

        See the configuration section in the "Guides" tab, for yout specific processor type, for more details on the configuration settings.

        The configuration settings for this version of the document processor. The structure of this object will vary depending on the processor type.

        See the configuration section in the "Guides" tab, for yout specific processor type, for more details on the configuration settings.

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

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

        The time (in UTC) at which this version of the document processor was created. Will follow the RFC 3339 format.

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

        The time (in UTC) at which this version of the document processor was created. Will follow the RFC 3339 format.

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

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

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

        The time (in UTC) at which this version of the document processor was last updated. Will follow the RFC 3339 format.

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

        The time (in UTC) at which this version of the document processor was last updated. Will follow the RFC 3339 format.

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

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

        public ProcessorVersion._FinalStage description​(java.lang.String description)

        An optional description of this version of the document processor.

        Example: "Updated extraction fields for new invoice format"

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