public void setDocument(Document document) {
        this.document = document;
    }
<p>
The input document as base64-encoded bytes or an Amazon S3 object. If you use the AWS CLI to call Amazon Textract
operations, you can't pass image bytes. The document must be an image in JPEG or PNG format.
</p>
<p>
If you're using an AWS SDK to call Amazon Textract, you might not need to base64-encode image bytes that are
passed using the <code>Bytes</code> field.
</p>

@param document
       The input document as base64-encoded bytes or an Amazon S3 object. If you use the AWS CLI to call Amazon
       Textract operations, you can't pass image bytes. The document must be an image in JPEG or PNG format.</p>
       <p>
       If you're using an AWS SDK to call Amazon Textract, you might not need to base64-encode image bytes that
       are passed using the <code>Bytes</code> field.
aws-java-sdk-textract/src/main/java/com/amazonaws/services/textract/model/DetectDocumentTextRequest.java