Package com.fauna.client
Class FaunaConfig.FaunaEnvironment
- java.lang.Object
-
- com.fauna.client.FaunaConfig.FaunaEnvironment
-
- Enclosing class:
- FaunaConfig
public static class FaunaConfig.FaunaEnvironment extends java.lang.Object
This class handles reading Fauna environment variables for the client.
-
-
Constructor Summary
Constructors Constructor Description FaunaEnvironment()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<java.lang.String>
faunaDebug()
static java.util.Optional<java.lang.String>
faunaEndpoint()
static java.util.Optional<java.lang.String>
faunaSecret()
-
-
-
Method Detail
-
faunaSecret
public static java.util.Optional<java.lang.String> faunaSecret()
- Returns:
- The (non-empty, non-blank) value of the FAUNA_SECRET environment variable, or Optional.empty().
-
faunaEndpoint
public static java.util.Optional<java.lang.String> faunaEndpoint()
- Returns:
- The (non-empty, non-blank) value of the FAUNA_ENDPOINT environment variable, or Optional.empty().
-
faunaDebug
public static java.util.Optional<java.lang.String> faunaDebug()
- Returns:
- The (non-empty, non-blank) value of the FAUNA_DEBUG environment variable, or Optional.empty().
-
-