Class CfnFleet.ServerProcessProperty.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnFleet.ServerProcessProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleet.ServerProcessProperty>
- Enclosing interface:
- CfnFleet.ServerProcessProperty
@Stability(Stable)
public static final class CfnFleet.ServerProcessProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleet.ServerProcessProperty>
A builder for
CfnFleet.ServerProcessProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.concurrentExecutions(Number concurrentExecutions) Sets the value ofCfnFleet.ServerProcessProperty.getConcurrentExecutions()launchPath(String launchPath) Sets the value ofCfnFleet.ServerProcessProperty.getLaunchPath()parameters(String parameters) Sets the value ofCfnFleet.ServerProcessProperty.getParameters()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
concurrentExecutions
@Stability(Stable) public CfnFleet.ServerProcessProperty.Builder concurrentExecutions(Number concurrentExecutions) Sets the value ofCfnFleet.ServerProcessProperty.getConcurrentExecutions()- Parameters:
concurrentExecutions- The number of server processes using this configuration that run concurrently on each instance. This parameter is required.- Returns:
this
-
launchPath
Sets the value ofCfnFleet.ServerProcessProperty.getLaunchPath()- Parameters:
launchPath- The location of a game build executable or the Realtime script file that contains theInit()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"
- Windows (custom game builds only):
- Returns:
this
-
parameters
Sets the value ofCfnFleet.ServerProcessProperty.getParameters()- Parameters:
parameters- An optional list of parameters to pass to the server executable or Realtime script on launch.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFleet.ServerProcessProperty>- Returns:
- a new instance of
CfnFleet.ServerProcessProperty - Throws:
NullPointerException- if any required attribute was not provided
-