Class GameSessionCreationLimitPolicy
- java.lang.Object
-
- software.amazon.awssdk.services.gamelift.model.GameSessionCreationLimitPolicy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<GameSessionCreationLimitPolicy.Builder,GameSessionCreationLimitPolicy>
@Generated("software.amazon.awssdk:codegen") public final class GameSessionCreationLimitPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<GameSessionCreationLimitPolicy.Builder,GameSessionCreationLimitPolicy>
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.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGameSessionCreationLimitPolicy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GameSessionCreationLimitPolicy.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegernewGameSessionsPerCreator()A policy that puts limits on the number of game sessions that a player can create within a specified span of time.IntegerpolicyPeriodInMinutes()The time span used in evaluating the resource creation limit policy.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends GameSessionCreationLimitPolicy.Builder>serializableBuilderClass()GameSessionCreationLimitPolicy.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
newGameSessionsPerCreator
public 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 evaluates 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:
- 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 evaluates 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.
-
policyPeriodInMinutes
public final Integer policyPeriodInMinutes()
The time span used in evaluating the resource creation limit policy.
- Returns:
- The time span used in evaluating the resource creation limit policy.
-
toBuilder
public GameSessionCreationLimitPolicy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GameSessionCreationLimitPolicy.Builder,GameSessionCreationLimitPolicy>
-
builder
public static GameSessionCreationLimitPolicy.Builder builder()
-
serializableBuilderClass
public static Class<? extends GameSessionCreationLimitPolicy.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-