Class CfnFleet.RuntimeConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnFleet.RuntimeConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleet.RuntimeConfigurationProperty>
- Enclosing interface:
CfnFleet.RuntimeConfigurationProperty
@Stability(Stable)
public static final class CfnFleet.RuntimeConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleet.RuntimeConfigurationProperty>
A builder for
CfnFleet.RuntimeConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.gameSessionActivationTimeoutSeconds
(Number gameSessionActivationTimeoutSeconds) maxConcurrentGameSessionActivations
(Number maxConcurrentGameSessionActivations) serverProcesses
(List<? extends Object> serverProcesses) Sets the value ofCfnFleet.RuntimeConfigurationProperty.getServerProcesses()
serverProcesses
(IResolvable serverProcesses) Sets the value ofCfnFleet.RuntimeConfigurationProperty.getServerProcesses()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
gameSessionActivationTimeoutSeconds
@Stability(Stable) public CfnFleet.RuntimeConfigurationProperty.Builder gameSessionActivationTimeoutSeconds(Number gameSessionActivationTimeoutSeconds) - Parameters:
gameSessionActivationTimeoutSeconds
- The maximum amount of time (in seconds) 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 toTERMINATED
.- Returns:
this
-
maxConcurrentGameSessionActivations
@Stability(Stable) public CfnFleet.RuntimeConfigurationProperty.Builder maxConcurrentGameSessionActivations(Number maxConcurrentGameSessionActivations) - 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
-
serverProcesses
@Stability(Stable) public CfnFleet.RuntimeConfigurationProperty.Builder serverProcesses(IResolvable serverProcesses) Sets the value ofCfnFleet.RuntimeConfigurationProperty.getServerProcesses()
- Parameters:
serverProcesses
- A collection of server process configurations that identify what server processes to run on each instance in a fleet.- Returns:
this
-
serverProcesses
@Stability(Stable) public CfnFleet.RuntimeConfigurationProperty.Builder serverProcesses(List<? extends Object> serverProcesses) Sets the value ofCfnFleet.RuntimeConfigurationProperty.getServerProcesses()
- Parameters:
serverProcesses
- A collection of server process configurations that identify what server processes to run on each instance in a fleet.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFleet.RuntimeConfigurationProperty>
- Returns:
- a new instance of
CfnFleet.RuntimeConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-