Class CfnContainerFleetPropsMixin.GameSessionCreationLimitPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.gamelift.CfnContainerFleetPropsMixin.GameSessionCreationLimitPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainerFleetPropsMixin.GameSessionCreationLimitPolicyProperty>
- Enclosing interface:
CfnContainerFleetPropsMixin.GameSessionCreationLimitPolicyProperty
@Stability(Stable)
public static final class CfnContainerFleetPropsMixin.GameSessionCreationLimitPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContainerFleetPropsMixin.GameSessionCreationLimitPolicyProperty>
-
Constructor Summary
Constructors -
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 CfnContainerFleetPropsMixin.GameSessionCreationLimitPolicyProperty.Builder newGameSessionsPerCreator(Number newGameSessionsPerCreator) Sets the value ofCfnContainerFleetPropsMixin.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
CreateGameSessionrequest, Amazon GameLift Servers checks that the player (identified byCreatorId) has created fewer than game session limit in the specified time period.- Returns:
this
-
policyPeriodInMinutes
@Stability(Stable) public CfnContainerFleetPropsMixin.GameSessionCreationLimitPolicyProperty.Builder policyPeriodInMinutes(Number policyPeriodInMinutes) Sets the value ofCfnContainerFleetPropsMixin.GameSessionCreationLimitPolicyProperty.getPolicyPeriodInMinutes()- Parameters:
policyPeriodInMinutes- The time span used in evaluating the resource creation limit policy.- Returns:
this
-
build
@Stability(Stable) public CfnContainerFleetPropsMixin.GameSessionCreationLimitPolicyProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnContainerFleetPropsMixin.GameSessionCreationLimitPolicyProperty>- Returns:
- a new instance of
CfnContainerFleetPropsMixin.GameSessionCreationLimitPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-