public ResultData withDocument(Document document) {
        setDocument(document);
        return this;
    }
<p>
The document.
</p>

@param document
       The document.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-qconnect/src/main/java/com/amazonaws/services/qconnect/model/ResultData.java