@Generated(value="software.amazon.awssdk:codegen") public final class ResourceCreationLimitPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResourceCreationLimitPolicy.Builder,ResourceCreationLimitPolicy>
A policy that limits the number of game sessions a player can create on the same fleet. This optional policy gives game owners control over how players can consume available game server resources. A resource creation policy makes the following statement: "An individual player can create a maximum number of new game sessions within a specified time period".
The policy is evaluated when a player tries to create a new game session. For example: Assume you have a policy of 10
new game sessions and a time period of 60 minutes. On receiving a CreateGameSession request, Amazon
GameLift checks that the player (identified by CreatorId) has created fewer than 10 game sessions in the
past 60 minutes.
| 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()
The maximum number of game sessions that an individual can create during the policy period.
|
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 Integer newGameSessionsPerCreator()
The maximum number of game sessions that an individual can create during the policy period.
public 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 boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.