public final UploadDocumentStreamRequest withStream(InputStream stream) {
        this.stream = stream;
        return this;
    }
Sets input stream of document.
@param stream Input stream of document.
@return This object for method chaining.
aws-java-sdk-workdocs/src/main/java/com/amazonaws/services/workdocs/UploadDocumentStreamRequest.java