Class PlayerLatency
- java.lang.Object
-
- software.amazon.awssdk.services.gamelift.model.PlayerLatency
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PlayerLatency.Builder,PlayerLatency>
@Generated("software.amazon.awssdk:codegen") public final class PlayerLatency extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PlayerLatency.Builder,PlayerLatency>
Regional latency information for a player, used when requesting a new game session. This value indicates the amount of time lag that exists when the player is connected to a fleet in the specified Region. The relative difference between a player's latency values for multiple Regions are used to determine which fleets are best suited to place a new game session for the player.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePlayerLatency.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PlayerLatency.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()FloatlatencyInMilliseconds()Amount of time that represents the time lag experienced by the player when connected to the specified Region.StringplayerId()A unique identifier for a player associated with the latency data.StringregionIdentifier()Name of the Region that is associated with the latency value.List<SdkField<?>>sdkFields()static Class<? extends PlayerLatency.Builder>serializableBuilderClass()PlayerLatency.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
-
playerId
public final String playerId()
A unique identifier for a player associated with the latency data.
- Returns:
- A unique identifier for a player associated with the latency data.
-
regionIdentifier
public final String regionIdentifier()
Name of the Region that is associated with the latency value.
- Returns:
- Name of the Region that is associated with the latency value.
-
latencyInMilliseconds
public final Float latencyInMilliseconds()
Amount of time that represents the time lag experienced by the player when connected to the specified Region.
- Returns:
- Amount of time that represents the time lag experienced by the player when connected to the specified Region.
-
toBuilder
public PlayerLatency.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PlayerLatency.Builder,PlayerLatency>
-
builder
public static PlayerLatency.Builder builder()
-
serializableBuilderClass
public static Class<? extends PlayerLatency.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.
-
-