@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PlayerLatency extends Object implements Serializable, Cloneable, StructuredPojo
Regional latency information for a player, used when requesting a new game session with StartGameSessionPlacement. 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.
Constructor and Description |
---|
PlayerLatency() |
Modifier and Type | Method and Description |
---|---|
PlayerLatency |
clone() |
boolean |
equals(Object obj) |
Float |
getLatencyInMilliseconds()
Amount of time that represents the time lag experienced by the player when connected to the specified region.
|
String |
getPlayerId()
Unique identifier for a player associated with the latency data.
|
String |
getRegionIdentifier()
Name of the region that is associated with the latency value.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setLatencyInMilliseconds(Float latencyInMilliseconds)
Amount of time that represents the time lag experienced by the player when connected to the specified region.
|
void |
setPlayerId(String playerId)
Unique identifier for a player associated with the latency data.
|
void |
setRegionIdentifier(String regionIdentifier)
Name of the region that is associated with the latency value.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
PlayerLatency |
withLatencyInMilliseconds(Float latencyInMilliseconds)
Amount of time that represents the time lag experienced by the player when connected to the specified region.
|
PlayerLatency |
withPlayerId(String playerId)
Unique identifier for a player associated with the latency data.
|
PlayerLatency |
withRegionIdentifier(String regionIdentifier)
Name of the region that is associated with the latency value.
|
public void setPlayerId(String playerId)
Unique identifier for a player associated with the latency data.
playerId
- Unique identifier for a player associated with the latency data.public String getPlayerId()
Unique identifier for a player associated with the latency data.
public PlayerLatency withPlayerId(String playerId)
Unique identifier for a player associated with the latency data.
playerId
- Unique identifier for a player associated with the latency data.public void setRegionIdentifier(String regionIdentifier)
Name of the region that is associated with the latency value.
regionIdentifier
- Name of the region that is associated with the latency value.public String getRegionIdentifier()
Name of the region that is associated with the latency value.
public PlayerLatency withRegionIdentifier(String regionIdentifier)
Name of the region that is associated with the latency value.
regionIdentifier
- Name of the region that is associated with the latency value.public void setLatencyInMilliseconds(Float latencyInMilliseconds)
Amount of time that represents the time lag experienced by the player when connected to the specified region.
latencyInMilliseconds
- Amount of time that represents the time lag experienced by the player when connected to the specified
region.public Float getLatencyInMilliseconds()
Amount of time that represents the time lag experienced by the player when connected to the specified region.
public PlayerLatency withLatencyInMilliseconds(Float latencyInMilliseconds)
Amount of time that represents the time lag experienced by the player when connected to the specified region.
latencyInMilliseconds
- Amount of time that represents the time lag experienced by the player when connected to the specified
region.public String toString()
toString
in class Object
Object.toString()
public PlayerLatency clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.