Class CfnFleetPropsMixin.ServerProcessProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.gamelift.CfnFleetPropsMixin.ServerProcessProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleetPropsMixin.ServerProcessProperty>
- Enclosing interface:
CfnFleetPropsMixin.ServerProcessProperty
@Stability(Stable)
public static final class CfnFleetPropsMixin.ServerProcessProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleetPropsMixin.ServerProcessProperty>
A builder for
CfnFleetPropsMixin.ServerProcessProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.concurrentExecutions(Number concurrentExecutions) Sets the value ofCfnFleetPropsMixin.ServerProcessProperty.getConcurrentExecutions()launchPath(String launchPath) Sets the value ofCfnFleetPropsMixin.ServerProcessProperty.getLaunchPath()parameters(String parameters) Sets the value ofCfnFleetPropsMixin.ServerProcessProperty.getParameters()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
concurrentExecutions
@Stability(Stable) public CfnFleetPropsMixin.ServerProcessProperty.Builder concurrentExecutions(Number concurrentExecutions) Sets the value ofCfnFleetPropsMixin.ServerProcessProperty.getConcurrentExecutions()- Parameters:
concurrentExecutions- The number of server processes using this configuration that run concurrently on each instance or compute.- Returns:
this
-
launchPath
@Stability(Stable) public CfnFleetPropsMixin.ServerProcessProperty.Builder launchPath(String launchPath) Sets the value ofCfnFleetPropsMixin.ServerProcessProperty.getLaunchPath()- Parameters:
launchPath- The location of a game build executable or Realtime script. 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 Servers 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
@Stability(Stable) public CfnFleetPropsMixin.ServerProcessProperty.Builder parameters(String parameters) Sets the value ofCfnFleetPropsMixin.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnFleetPropsMixin.ServerProcessProperty>- Returns:
- a new instance of
CfnFleetPropsMixin.ServerProcessProperty - Throws:
NullPointerException- if any required attribute was not provided
-