Package com.mongodb.client.model
Class DeleteOptions
- java.lang.Object
 - 
- com.mongodb.client.model.DeleteOptions
 
 
- 
public class DeleteOptions extends Object
The options to apply when deleting documents.- Since:
 - 3.4
 - MongoDB documentation
 - Remove documents
 - Delete Command
 
 
- 
- 
Constructor Summary
Constructors Constructor Description DeleteOptions() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeleteOptionscollation(Collation collation)Sets the collation optionsCollationgetCollation()Returns the collation optionsStringtoString() 
 - 
 
- 
- 
Method Detail
- 
getCollation
@Nullable public Collation getCollation()
Returns the collation options- Returns:
 - the collation options
 - Since server release
 - 3.4
 
 
- 
collation
public DeleteOptions collation(@Nullable Collation collation)
Sets the collation optionsA null value represents the server default.
- Parameters:
 collation- the collation options to use- Returns:
 - this
 - Since server release
 - 3.4
 
 
 - 
 
 -