Class ServerProcess.Builder

java.lang.Object
software.amazon.awscdk.services.gamelift.alpha.ServerProcess.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<ServerProcess>
Enclosing interface:
ServerProcess

@Stability(Experimental) public static final class ServerProcess.Builder extends Object implements software.amazon.jsii.Builder<ServerProcess>
A builder for ServerProcess
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • launchPath

      @Stability(Experimental) public ServerProcess.Builder launchPath(String launchPath)
      Parameters:
      launchPath - The location of a game build executable or the Realtime script file that contains the Init() function. This parameter is required. Game builds and Realtime scripts are installed on instances at the root:

      • Windows (custom game builds only): C:\game. Example: C:\game\MyGame\server.exe
      • Linux: /local/game. Examples: /local/game/MyGame/server.exe or /local/game/MyRealtimeScript.js
      Returns:
      this
    • concurrentExecutions

      @Stability(Experimental) public ServerProcess.Builder concurrentExecutions(Number concurrentExecutions)
      Parameters:
      concurrentExecutions - The number of server processes using this configuration that run concurrently on each instance. Minimum is 1
      Returns:
      this
    • parameters

      @Stability(Experimental) public ServerProcess.Builder parameters(String parameters)
      Parameters:
      parameters - An optional list of parameters to pass to the server executable or Realtime script on launch.
      Returns:
      this
    • build

      @Stability(Experimental) public ServerProcess build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<ServerProcess>
      Returns:
      a new instance of ServerProcess
      Throws:
      NullPointerException - if any required attribute was not provided