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
- In-use 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
- Since server release
- 7.0
-
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
- In-use encryption
- Since server release
- 7.0
-
toString
-