Class FaunaScope.Builder

  • Enclosing class:
    FaunaScope

    public static class FaunaScope.Builder
    extends java.lang.Object
    A builder class for creating instances of FaunaScope.
    • Constructor Summary

      Constructors 
      Constructor Description
      Builder​(java.lang.String database)
      Constructs a Builder for FaunaScope.
    • Constructor Detail

      • Builder

        public Builder​(java.lang.String database)
        Constructs a Builder for FaunaScope.
        Parameters:
        database - the name of the database
    • 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