Class CfnFleet.ResourceCreationLimitPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnFleet.ResourceCreationLimitPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleet.ResourceCreationLimitPolicyProperty>
- Enclosing interface:
CfnFleet.ResourceCreationLimitPolicyProperty
@Stability(Stable)
public static final class CfnFleet.ResourceCreationLimitPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleet.ResourceCreationLimitPolicyProperty>
A builder for
CfnFleet.ResourceCreationLimitPolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.newGameSessionsPerCreator(Number newGameSessionsPerCreator) policyPeriodInMinutes(Number policyPeriodInMinutes) Sets the value ofCfnFleet.ResourceCreationLimitPolicyProperty.getPolicyPeriodInMinutes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
newGameSessionsPerCreator
@Stability(Stable) public CfnFleet.ResourceCreationLimitPolicyProperty.Builder newGameSessionsPerCreator(Number newGameSessionsPerCreator) - 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 CfnFleet.ResourceCreationLimitPolicyProperty.Builder policyPeriodInMinutes(Number policyPeriodInMinutes) Sets the value ofCfnFleet.ResourceCreationLimitPolicyProperty.getPolicyPeriodInMinutes()- 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<CfnFleet.ResourceCreationLimitPolicyProperty>- Returns:
- a new instance of
CfnFleet.ResourceCreationLimitPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-