Class FaunaConfig.Builder

  • Enclosing class:
    FaunaConfig

    public static class FaunaConfig.Builder
    extends java.lang.Object
    Builder class for FaunaConfig. Follows the Builder Design Pattern.
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • endpoint

        public FaunaConfig.Builder endpoint​(java.lang.String endpoint)
        Sets the endpoint URL.
        Parameters:
        endpoint - A String representing the endpoint URL.
        Returns:
        The current Builder instance.
      • secret

        public FaunaConfig.Builder secret​(java.lang.String secret)
        Sets the secret key.
        Parameters:
        secret - A String representing the secret key.
        Returns:
        The current Builder instance.
      • build

        public FaunaConfig build()
        Builds and returns a new FaunaConfig instance.
        Returns:
        A new instance of FaunaConfig.