Package com.mongodb.client.model
Class DBCreateViewOptions
- java.lang.Object
-
- com.mongodb.client.model.DBCreateViewOptions
-
public class DBCreateViewOptions extends Object
The options to apply when creating a view- Since:
- 3.4
- MongoDB documentation
- Create Command
- Since server release
- 3.4
-
-
Constructor Summary
Constructors Constructor Description DBCreateViewOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DBCreateViewOptions
collation(Collation collation)
Sets the collationCollation
getCollation()
Returns the collation options
-
-
-
Method Detail
-
getCollation
public Collation getCollation()
Returns the collation options- Returns:
- the collation options
-
collation
public DBCreateViewOptions collation(Collation collation)
Sets the collation- Parameters:
collation
- the collation- Returns:
- this
-
-