@Generated(value="software.amazon.awssdk:codegen") public final class ResourceCreationLimitPolicy extends Object implements StructuredPojo, ToCopyableBuilder<ResourceCreationLimitPolicy.Builder,ResourceCreationLimitPolicy>
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, with 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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
Integer |
newGameSessionsPerCreator()
Maximum number of game sessions that an individual can create during the policy period.
|
Integer |
policyPeriodInMinutes()
Time span used in evaluating the resource creation limit policy.
|
static Class<? extends ResourceCreationLimitPolicy.Builder> |
serializableBuilderClass() |
ResourceCreationLimitPolicy.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public Integer newGameSessionsPerCreator()
Maximum number of game sessions that an individual can create during the policy period.
public Integer policyPeriodInMinutes()
Time span used in evaluating the resource creation limit policy.
public ResourceCreationLimitPolicy.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ResourceCreationLimitPolicy.Builder,ResourceCreationLimitPolicy>
public static ResourceCreationLimitPolicy.Builder builder()
public static Class<? extends ResourceCreationLimitPolicy.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.