Package com.fauna.client
Class FaunaConfig.Builder
- java.lang.Object
-
- com.fauna.client.FaunaConfig.Builder
-
- Enclosing class:
- FaunaConfig
public static class FaunaConfig.Builder extends java.lang.Object
Builder class for FaunaConfig. Follows the Builder Design Pattern.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FaunaConfig
build()
Builds and returns a new FaunaConfig instance.FaunaConfig.Builder
endpoint(java.lang.String endpoint)
Sets the endpoint URL.FaunaConfig.Builder
secret(java.lang.String secret)
Sets the secret key.
-
-
-
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.
-
-