Interface GetDocumentAnalysisResponse.Builder

    • Method Detail

      • documentMetadata

        GetDocumentAnalysisResponse.Builder documentMetadata​(DocumentMetadata documentMetadata)

        Information about a document that Amazon Textract processed. DocumentMetadata is returned in every page of paginated responses from an Amazon Textract video operation.

        Parameters:
        documentMetadata - Information about a document that Amazon Textract processed. DocumentMetadata is returned in every page of paginated responses from an Amazon Textract video operation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • jobStatus

        GetDocumentAnalysisResponse.Builder jobStatus​(String jobStatus)

        The current status of the text detection job.

        Parameters:
        jobStatus - The current status of the text detection job.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        JobStatus, JobStatus
      • jobStatus

        GetDocumentAnalysisResponse.Builder jobStatus​(JobStatus jobStatus)

        The current status of the text detection job.

        Parameters:
        jobStatus - The current status of the text detection job.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        JobStatus, JobStatus
      • nextToken

        GetDocumentAnalysisResponse.Builder nextToken​(String nextToken)

        If the response is truncated, Amazon Textract returns this token. You can use this token in the subsequent request to retrieve the next set of text detection results.

        Parameters:
        nextToken - If the response is truncated, Amazon Textract returns this token. You can use this token in the subsequent request to retrieve the next set of text detection results.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • blocks

        GetDocumentAnalysisResponse.Builder blocks​(Collection<Block> blocks)

        The results of the text-analysis operation.

        Parameters:
        blocks - The results of the text-analysis operation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • blocks

        GetDocumentAnalysisResponse.Builder blocks​(Block... blocks)

        The results of the text-analysis operation.

        Parameters:
        blocks - The results of the text-analysis operation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • warnings

        GetDocumentAnalysisResponse.Builder warnings​(Collection<Warning> warnings)

        A list of warnings that occurred during the document-analysis operation.

        Parameters:
        warnings - A list of warnings that occurred during the document-analysis operation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • warnings

        GetDocumentAnalysisResponse.Builder warnings​(Warning... warnings)

        A list of warnings that occurred during the document-analysis operation.

        Parameters:
        warnings - A list of warnings that occurred during the document-analysis operation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • statusMessage

        GetDocumentAnalysisResponse.Builder statusMessage​(String statusMessage)

        Returns if the detection job could not be completed. Contains explanation for what error occured.

        Parameters:
        statusMessage - Returns if the detection job could not be completed. Contains explanation for what error occured.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • analyzeDocumentModelVersion

        GetDocumentAnalysisResponse.Builder analyzeDocumentModelVersion​(String analyzeDocumentModelVersion)

        Parameters:
        analyzeDocumentModelVersion -
        Returns:
        Returns a reference to this object so that method calls can be chained together.