Package com.mongodb.client.model
Class CreateViewOptions
- java.lang.Object
-
- com.mongodb.client.model.CreateViewOptions
-
public class CreateViewOptions extends Object
Options for creating a view- Since:
- 3.4
- MongoDB documentation
- Create Command
- Since server release
- 3.4
-
-
Constructor Summary
Constructors Constructor Description CreateViewOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateViewOptions
collation(Collation collation)
Sets the collation optionsCollation
getCollation()
Returns the collation optionsString
toString()
-
-
-
Method Detail
-
getCollation
@Nullable public Collation getCollation()
Returns the collation options- Returns:
- the collation options
-
collation
public CreateViewOptions collation(@Nullable Collation collation)
Sets the collation optionsA null value represents the server default.
- Parameters:
collation
- the collation options to use- Returns:
- this
-
-