@Generated(value="software.amazon.awssdk:codegen") public class PlayerLatencyPolicy extends Object implements StructuredPojo, ToCopyableBuilder<PlayerLatencyPolicy.Builder,PlayerLatencyPolicy>
Queue setting that determines the highest latency allowed for individual players when placing a game session. When a latency policy is in force, a game session cannot be placed at any destination in a region where a player is reporting latency higher than the cap. Latency policies are only enforced when the placement request contains player latency information.
Queue-related operations include:
Modifier and Type | Class and Description |
---|---|
static interface |
PlayerLatencyPolicy.Builder |
Modifier and Type | Method and Description |
---|---|
static PlayerLatencyPolicy.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 |
maximumIndividualPlayerLatencyMilliseconds()
The maximum latency value that is allowed for any player, in milliseconds.
|
Integer |
policyDurationSeconds()
The length of time, in seconds, that the policy is enforced while placing a new game session.
|
static Class<? extends PlayerLatencyPolicy.Builder> |
serializableBuilderClass() |
PlayerLatencyPolicy.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 maximumIndividualPlayerLatencyMilliseconds()
The maximum latency value that is allowed for any player, in milliseconds. All policies must have a value set for this property.
public Integer policyDurationSeconds()
The length of time, in seconds, that the policy is enforced while placing a new game session. A null value for this property means that the policy is enforced until the queue times out.
public PlayerLatencyPolicy.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<PlayerLatencyPolicy.Builder,PlayerLatencyPolicy>
public static PlayerLatencyPolicy.Builder builder()
public static Class<? extends PlayerLatencyPolicy.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.