Package com.mongodb.client.model
Class CreateViewOptions
- java.lang.Object
-
- com.mongodb.client.model.CreateViewOptions
-
public class CreateViewOptions extends java.lang.Object
Options for creating a view- Since:
- 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 optionsjava.lang.String
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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-