Interface LendingResult.Builder

    • Method Detail

      • page

        LendingResult.Builder page​(Integer page)

        The page number for a page, with regard to whole submission.

        Parameters:
        page - The page number for a page, with regard to whole submission.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • pageClassification

        LendingResult.Builder pageClassification​(PageClassification pageClassification)

        The classifier result for a given page.

        Parameters:
        pageClassification - The classifier result for a given page.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • extractions

        LendingResult.Builder extractions​(Collection<Extraction> extractions)

        An array of Extraction to hold structured data. e.g. normalized key value pairs instead of raw OCR detections .

        Parameters:
        extractions - An array of Extraction to hold structured data. e.g. normalized key value pairs instead of raw OCR detections .
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • extractions

        LendingResult.Builder extractions​(Extraction... extractions)

        An array of Extraction to hold structured data. e.g. normalized key value pairs instead of raw OCR detections .

        Parameters:
        extractions - An array of Extraction to hold structured data. e.g. normalized key value pairs instead of raw OCR detections .
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • extractions

        LendingResult.Builder extractions​(Consumer<Extraction.Builder>... extractions)

        An array of Extraction to hold structured data. e.g. normalized key value pairs instead of raw OCR detections .

        This is a convenience method that creates an instance of the Extraction.Builder avoiding the need to create one manually via Extraction.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #extractions(List).

        Parameters:
        extractions - a consumer that will call methods on Extraction.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #extractions(java.util.Collection)