public void setBlocks(java.util.Collection<Block> blocks) {
        if (blocks == null) {
            this.blocks = null;
            return;
        }

        this.blocks = new java.util.ArrayList<Block>(blocks);
    }
<p>
An array of <code>Block</code> objects that contain the text that's detected in the document.
</p>

@param blocks
       An array of <code>Block</code> objects that contain the text that's detected in the document.
aws-java-sdk-textract/src/main/java/com/amazonaws/services/textract/model/DetectDocumentTextResult.java