Package io.vertx.mongo.client.model
Class RenameCollectionOptions
- java.lang.Object
-
- io.vertx.mongo.client.model.RenameCollectionOptions
-
public class RenameCollectionOptions extends java.lang.Object
The options to apply when renaming a collection.- Since:
- 3.0
- MongoDB documentation
- renameCollection
-
-
Constructor Summary
Constructors Constructor Description RenameCollectionOptions()
RenameCollectionOptions(JsonObject json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
isDropTarget()
Gets if mongod should drop the target of renameCollection prior to renaming the collection.RenameCollectionOptions
setDropTarget(java.lang.Boolean dropTarget)
Sets if mongod should drop the target of renameCollection prior to renaming the collection.JsonObject
toJson()
-
-
-
Constructor Detail
-
RenameCollectionOptions
public RenameCollectionOptions()
-
RenameCollectionOptions
public RenameCollectionOptions(JsonObject json)
-
-
Method Detail
-
toJson
public JsonObject toJson()
-
setDropTarget
public RenameCollectionOptions setDropTarget(java.lang.Boolean dropTarget)
Sets if mongod should drop the target of renameCollection prior to renaming the collection.- Parameters:
dropTarget
- true if mongod should drop the target of renameCollection prior to renaming the collection.- Returns:
- this
-
isDropTarget
public java.lang.Boolean isDropTarget()
Gets if mongod should drop the target of renameCollection prior to renaming the collection.- Returns:
- true if mongod should drop the target of renameCollection prior to renaming the collection.
-
-