Package com.fauna.client
Class FaunaScope.Builder
- java.lang.Object
-
- com.fauna.client.FaunaScope.Builder
-
- Enclosing class:
- FaunaScope
public static class FaunaScope.Builder extends java.lang.ObjectA builder class for creating instances of FaunaScope.
-
-
Constructor Summary
Constructors Constructor Description Builder(java.lang.String database)Constructs a Builder for FaunaScope.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FaunaScopebuild()Builds a FaunaScope instance using the current builder settings.FaunaScope.BuilderwithRole(FaunaRole role)Sets the role for the FaunaScope.
-
-
-
Method Detail
-
withRole
public FaunaScope.Builder withRole(FaunaRole role)
Sets the role for the FaunaScope.- Parameters:
role- the FaunaRole to associate with the scope- Returns:
- the Builder instance for method chaining
-
build
public FaunaScope build()
Builds a FaunaScope instance using the current builder settings.- Returns:
- a newly created FaunaScope
-
-