@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (documentId != null) {
            sb.append("DocumentId: ").append(documentId).append(",");
        }
        if (versionId != null) {
            sb.append("VersionId: ").append(versionId).append(",");
        }
        if (stream != null) {
            sb.append("Stream: ").append(stream).append(",");
        }
        sb.append("}");
        return sb.toString();
    }
Sets input stream of document.
@param stream Input stream of document.
aws-java-sdk-workdocs/src/main/java/com/amazonaws/services/workdocs/GetDocumentStreamResult.java