public DetectDocumentTextResult withDocumentMetadata(DocumentMetadata documentMetadata) {
        setDocumentMetadata(documentMetadata);
        return this;
    }
<p>
Metadata about the document. It contains the number of pages that are detected in the document.
</p>

@param documentMetadata
       Metadata about the document. It contains the number of pages that are detected in the document.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-textract/src/main/java/com/amazonaws/services/textract/model/DetectDocumentTextResult.java