Package com.mongodb.client.model
Class DropCollectionOptions
java.lang.Object
com.mongodb.client.model.DropCollectionOptions
Options for dropping a collection
- Since:
- 4.7
- MongoDB documentation
- Drop Collection
- Client side encryption
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionencryptedFields
(Bson encryptedFields) Sets the encrypted fields documentGets any explicitly set encrypted fields.toString()
-
Constructor Details
-
DropCollectionOptions
public DropCollectionOptions()
-
-
Method Details
-
getEncryptedFields
Gets any explicitly set encrypted fields.Note: If not set the driver will lookup the namespace in
AutoEncryptionSettings.getEncryptedFieldsMap()
- Returns:
- the encrypted fields document
- Since:
- 4.7
-
encryptedFields
Sets the encrypted fields documentExplicitly set encrypted fields.
Note: If not set the driver will lookup the namespace in
AutoEncryptionSettings.getEncryptedFieldsMap()
- Parameters:
encryptedFields
- the encrypted fields document- Returns:
- this
- Since:
- 4.7
- MongoDB documentation
- Client side encryption
-
toString
-