Interface ResourceCreationLimitPolicy.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ResourceCreationLimitPolicy.Builder,ResourceCreationLimitPolicy>,SdkBuilder<ResourceCreationLimitPolicy.Builder,ResourceCreationLimitPolicy>,SdkPojo
- Enclosing class:
- ResourceCreationLimitPolicy
public static interface ResourceCreationLimitPolicy.Builder extends SdkPojo, CopyableBuilder<ResourceCreationLimitPolicy.Builder,ResourceCreationLimitPolicy>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceCreationLimitPolicy.BuildernewGameSessionsPerCreator(Integer newGameSessionsPerCreator)A policy that puts limits on the number of game sessions that a player can create within a specified span of time.ResourceCreationLimitPolicy.BuilderpolicyPeriodInMinutes(Integer policyPeriodInMinutes)The time span used in evaluating the resource creation limit policy.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
newGameSessionsPerCreator
ResourceCreationLimitPolicy.Builder newGameSessionsPerCreator(Integer 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 checks that the player (identified byCreatorId) has created fewer than game session limit in the specified time period.- 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 checks that the player (identified byCreatorId) has created fewer than game session limit in the specified time period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyPeriodInMinutes
ResourceCreationLimitPolicy.Builder policyPeriodInMinutes(Integer policyPeriodInMinutes)
The time span used in evaluating the resource creation limit policy.
- Parameters:
policyPeriodInMinutes- The time span used in evaluating the resource creation limit policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-