Class NeptuneConfig.Builder

Enclosing class:
NeptuneConfig

public static class NeptuneConfig.Builder extends AbstractServiceConfigBuilder<NeptuneConfig.Builder,NeptuneConfig>
Builder for NeptuneConfig.
  • Method Details

    • proxyPortRange

      public NeptuneConfig.Builder proxyPortRange(int basePort, int amount)
      Sets the port range for the Neptune proxy.
      Parameters:
      basePort - the base port (default 8182)
      amount - the amount of ports (default 10)
      Returns:
      this builder
    • dbType

      public NeptuneConfig.Builder dbType(String dbType)
      Sets the backend graph engine and query language for Neptune: gremlin (Apache TinkerPop, Gremlin over WebSocket) or neo4j (Neo4j, openCypher over Bolt). Mirrors LocalStack's NEPTUNE_DB_TYPE.
      Parameters:
      dbType - the database type (default "gremlin")
      Returns:
      this builder
    • defaultImage

      public NeptuneConfig.Builder defaultImage(String defaultImage)
      Sets the default Docker image for Neptune (Gremlin Server) instances, used when db-type=gremlin.
      Parameters:
      defaultImage - the image name (default "tinkerpop/gremlin-server:3.7.3")
      Returns:
      this builder
    • defaultNeo4jImage

      public NeptuneConfig.Builder defaultNeo4jImage(String defaultNeo4jImage)
      Sets the default Docker image for Neptune (Neo4j / openCypher) instances, used when db-type=neo4j.
      Parameters:
      defaultNeo4jImage - the image name (default "neo4j:5-community")
      Returns:
      this builder
    • dockerNetwork

      public NeptuneConfig.Builder dockerNetwork(String dockerNetwork)
      Sets the Docker network that Neptune containers should join.
      Parameters:
      dockerNetwork - the network name, or null to use the default bridge
      Returns:
      this builder
    • build

      public NeptuneConfig build()
      Creates an immutable NeptuneConfig from this builder.
      Specified by:
      build in class AbstractServiceConfigBuilder<NeptuneConfig.Builder,NeptuneConfig>
      Returns:
      the Neptune configuration