T
- the target id type.public static class ReactiveGridFsUpload.ReactiveGridFsUploadBuilder<T> extends Object
ReactiveGridFsUpload
in a fluent way.Modifier and Type | Method and Description |
---|---|
ReactiveGridFsUpload<T> |
build() |
ReactiveGridFsUpload.ReactiveGridFsUploadBuilder<T> |
chunkSize(int chunkSize)
Set the upload chunk size in bytes.
|
ReactiveGridFsUpload.ReactiveGridFsUploadBuilder<T> |
content(org.reactivestreams.Publisher<org.springframework.core.io.buffer.DataBuffer> source)
Define the content of the file to upload.
|
ReactiveGridFsUpload.ReactiveGridFsUploadBuilder<T> |
contentType(String contentType)
Set the content type.
|
ReactiveGridFsUpload.ReactiveGridFsUploadBuilder<T> |
filename(String filename)
Set the filename.
|
ReactiveGridFsUpload.ReactiveGridFsUploadBuilder<T> |
gridFsFile(com.mongodb.client.gridfs.model.GridFSFile gridFSFile)
Set id, filename, metadata and chunk size from given file.
|
<T1> ReactiveGridFsUpload.ReactiveGridFsUploadBuilder<T1> |
id(T1 id)
Set the id to use.
|
ReactiveGridFsUpload.ReactiveGridFsUploadBuilder<T> |
metadata(org.bson.Document metadata)
Set the file metadata.
|
ReactiveGridFsUpload.ReactiveGridFsUploadBuilder<T> |
options(GridFsObject.Options options)
Set additional file information.
|
public ReactiveGridFsUpload.ReactiveGridFsUploadBuilder<T> content(org.reactivestreams.Publisher<org.springframework.core.io.buffer.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–2021 Pivotal Software, Inc.. All rights reserved.