Class ResourceCreationLimitPolicy
- java.lang.Object
-
- software.amazon.awssdk.services.gamelift.model.ResourceCreationLimitPolicy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResourceCreationLimitPolicy.Builder,ResourceCreationLimitPolicy>
@Generated("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
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 interfaceResourceCreationLimitPolicy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourceCreationLimitPolicy.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.List<SdkField<?>>sdkFields()static Class<? extends ResourceCreationLimitPolicy.Builder>serializableBuilderClass()ResourceCreationLimitPolicy.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 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:
- 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.
-
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 ResourceCreationLimitPolicy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResourceCreationLimitPolicy.Builder,ResourceCreationLimitPolicy>
-
builder
public static ResourceCreationLimitPolicy.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResourceCreationLimitPolicy.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.
-
-