Class GridFSDownloadOptions
- java.lang.Object
-
- io.vertx.mongo.client.gridfs.model.GridFSDownloadOptions
-
public class GridFSDownloadOptions extends java.lang.ObjectThe GridFS download by name optionsControls the selection of the revision to download
- Since:
- 3.3
-
-
Constructor Summary
Constructors Constructor Description GridFSDownloadOptions()GridFSDownloadOptions(JsonObject json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.IntegergetRevision()Gets the revision to download identifierGridFSDownloadOptionssetRevision(java.lang.Integer revision)Set the revision of the file to retrieve.JsonObjecttoJson()
-
-
-
Constructor Detail
-
GridFSDownloadOptions
public GridFSDownloadOptions()
-
GridFSDownloadOptions
public GridFSDownloadOptions(JsonObject json)
-
-
Method Detail
-
toJson
public JsonObject toJson()
-
setRevision
public GridFSDownloadOptions setRevision(java.lang.Integer revision)
Set the revision of the file to retrieve.Revision numbers are defined as follows:
- 0 = the original stored file
- 1 = the first revision
- 2 = the second revision
- etc..
- -2 = the second most recent revision
- -1 = the most recent revision
- Parameters:
revision- the file revision to download- Returns:
- this
-
getRevision
public java.lang.Integer getRevision()
Gets the revision to download identifier- Returns:
- the revision to download identifier
-
-