Class RuntimeConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.alpha.RuntimeConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RuntimeConfiguration>
- Enclosing interface:
RuntimeConfiguration
@Stability(Experimental)
public static final class RuntimeConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<RuntimeConfiguration>
A builder for
RuntimeConfiguration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.gameSessionActivationTimeout
(Duration gameSessionActivationTimeout) Sets the value ofRuntimeConfiguration.getGameSessionActivationTimeout()
maxConcurrentGameSessionActivations
(Number maxConcurrentGameSessionActivations) Sets the value ofRuntimeConfiguration.getMaxConcurrentGameSessionActivations()
serverProcesses
(List<? extends ServerProcess> serverProcesses) Sets the value ofRuntimeConfiguration.getServerProcesses()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
serverProcesses
@Stability(Experimental) public RuntimeConfiguration.Builder serverProcesses(List<? extends ServerProcess> serverProcesses) Sets the value ofRuntimeConfiguration.getServerProcesses()
- Parameters:
serverProcesses
- A collection of server process configurations that identify what server processes to run on each instance in a fleet. This parameter is required.- Returns:
this
-
gameSessionActivationTimeout
@Stability(Experimental) public RuntimeConfiguration.Builder gameSessionActivationTimeout(Duration gameSessionActivationTimeout) Sets the value ofRuntimeConfiguration.getGameSessionActivationTimeout()
- Parameters:
gameSessionActivationTimeout
- The maximum amount of time allowed to launch a new game session and have it report ready to host players. During this time, the game session is in statusACTIVATING
.If the game session does not become active before the timeout, it is ended and the game session status is changed to
TERMINATED
.- Returns:
this
-
maxConcurrentGameSessionActivations
@Stability(Experimental) public RuntimeConfiguration.Builder maxConcurrentGameSessionActivations(Number maxConcurrentGameSessionActivations) Sets the value ofRuntimeConfiguration.getMaxConcurrentGameSessionActivations()
- Parameters:
maxConcurrentGameSessionActivations
- The number of game sessions in statusACTIVATING
to allow on an instance. This setting limits the instance resources that can be used for new game activations at any one time.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<RuntimeConfiguration>
- Returns:
- a new instance of
RuntimeConfiguration
- Throws:
NullPointerException
- if any required attribute was not provided
-