Class CfnContainerFleet.GameSessionCreationLimitPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnContainerFleet.GameSessionCreationLimitPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainerFleet.GameSessionCreationLimitPolicyProperty>
- Enclosing interface:
CfnContainerFleet.GameSessionCreationLimitPolicyProperty
@Stability(Stable)
public static final class CfnContainerFleet.GameSessionCreationLimitPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContainerFleet.GameSessionCreationLimitPolicyProperty>
A builder for
CfnContainerFleet.GameSessionCreationLimitPolicyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.newGameSessionsPerCreator
(Number newGameSessionsPerCreator) policyPeriodInMinutes
(Number policyPeriodInMinutes)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
newGameSessionsPerCreator
@Stability(Stable) public CfnContainerFleet.GameSessionCreationLimitPolicyProperty.Builder newGameSessionsPerCreator(Number newGameSessionsPerCreator) Sets the value ofCfnContainerFleet.GameSessionCreationLimitPolicyProperty.getNewGameSessionsPerCreator()
- Parameters:
newGameSessionsPerCreator
- A policy that puts limits on the number of game sessions that a player can create within a specified span of time. With this policy, you can control players' ability to consume available resources.The policy evaluates when a player tries to create a new game session. On receiving a
CreateGameSession
request, Amazon GameLift checks that the player (identified byCreatorId
) has created fewer than game session limit in the specified time period.- Returns:
this
-
policyPeriodInMinutes
@Stability(Stable) public CfnContainerFleet.GameSessionCreationLimitPolicyProperty.Builder policyPeriodInMinutes(Number policyPeriodInMinutes) Sets the value ofCfnContainerFleet.GameSessionCreationLimitPolicyProperty.getPolicyPeriodInMinutes()
- Parameters:
policyPeriodInMinutes
- The time span used in evaluating the resource creation limit policy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnContainerFleet.GameSessionCreationLimitPolicyProperty>
- Returns:
- a new instance of
CfnContainerFleet.GameSessionCreationLimitPolicyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-