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
-
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 or container.. This parameter is required.- Returns:
this
-
launchPath
Sets the value ofCfnFleet.ServerProcessProperty.getLaunchPath()
- Parameters:
launchPath
- The location of a game build executable or Realtime script. 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
"
Amazon GameLift doesn't support the use of setup scripts that launch the game executable. For custom game builds, this parameter must indicate the executable that calls the server SDK operations
initSDK()
andProcessReady()
.- 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. Length Constraints: Minimum length of 1. Maximum length of 1024.Pattern: [A-Za-z0-9_:.+/- =@{},?'[]"]+
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFleet.ServerProcessProperty>
- Returns:
- a new instance of
CfnFleet.ServerProcessProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-