@Generated(value="software.amazon.awssdk:codegen") public final class ResourceCreationLimitPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResourceCreationLimitPolicy.Builder,ResourceCreationLimitPolicy>
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
CreateGameSession request, GameLift checks that the player (identified by CreatorId) has
created fewer than game session limit in the specified time period.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ResourceCreationLimitPolicy.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ResourceCreationLimitPolicy.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
newGameSessionsPerCreator()
A policy that puts limits on the number of game sessions that a player can create within a specified span of
time.
|
Integer |
policyPeriodInMinutes()
The time span used in evaluating the resource creation limit policy.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ResourceCreationLimitPolicy.Builder> |
serializableBuilderClass() |
ResourceCreationLimitPolicy.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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
CreateGameSession request, GameLift checks that the player (identified by CreatorId)
has created fewer than game session limit in the specified time period.
The policy is evaluated when a player tries to create a new game session. On receiving a
CreateGameSession request, GameLift checks that the player (identified by
CreatorId) has created fewer than game session limit in the specified time period.
public final Integer policyPeriodInMinutes()
The time span used in evaluating the resource creation limit policy.
public ResourceCreationLimitPolicy.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ResourceCreationLimitPolicy.Builder,ResourceCreationLimitPolicy>public static ResourceCreationLimitPolicy.Builder builder()
public static Class<? extends ResourceCreationLimitPolicy.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.