Class CfnFleetPropsMixin.ResourceCreationLimitPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.gamelift.mixins.CfnFleetPropsMixin.ResourceCreationLimitPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleetPropsMixin.ResourceCreationLimitPolicyProperty>
- Enclosing interface:
CfnFleetPropsMixin.ResourceCreationLimitPolicyProperty
@Stability(Stable)
public static final class CfnFleetPropsMixin.ResourceCreationLimitPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleetPropsMixin.ResourceCreationLimitPolicyProperty>
A builder for
CfnFleetPropsMixin.ResourceCreationLimitPolicyProperty-
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 CfnFleetPropsMixin.ResourceCreationLimitPolicyProperty.Builder newGameSessionsPerCreator(Number newGameSessionsPerCreator) Sets the value ofCfnFleetPropsMixin.ResourceCreationLimitPolicyProperty.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 is evaluated 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 CfnFleetPropsMixin.ResourceCreationLimitPolicyProperty.Builder policyPeriodInMinutes(Number policyPeriodInMinutes) - Parameters:
policyPeriodInMinutes- The time span used in evaluating the resource creation limit policy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFleetPropsMixin.ResourceCreationLimitPolicyProperty>- Returns:
- a new instance of
CfnFleetPropsMixin.ResourceCreationLimitPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-