T - the target id type.public static class ReactiveGridFsUpload.ReactiveGridFsUploadBuilder<T> extends Object
ReactiveGridFsUpload in a fluent way.public ReactiveGridFsUpload.ReactiveGridFsUploadBuilder<T> content(org.reactivestreams.Publisher<DataBuffer> source)
source - the upload content.public <T1> ReactiveGridFsUpload.ReactiveGridFsUploadBuilder<T1> id(T1 id)
T1 - id - the id to save the content to.public ReactiveGridFsUpload.ReactiveGridFsUploadBuilder<T> filename(String filename)
filename - the filename to use.public ReactiveGridFsUpload.ReactiveGridFsUploadBuilder<T> options(GridFsObject.Options options)
options - must not be null.public ReactiveGridFsUpload.ReactiveGridFsUploadBuilder<T> metadata(org.bson.Document metadata)
metadata - must not be null.public ReactiveGridFsUpload.ReactiveGridFsUploadBuilder<T> chunkSize(int chunkSize)
chunkSize - use negative number for default.public ReactiveGridFsUpload.ReactiveGridFsUploadBuilder<T> gridFsFile(com.mongodb.client.gridfs.model.GridFSFile gridFSFile)
gridFSFile - must not be null.public ReactiveGridFsUpload.ReactiveGridFsUploadBuilder<T> contentType(String contentType)
contentType - must not be null.public ReactiveGridFsUpload<T> build()
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.