@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. 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()
A 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)
A 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.
|
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)
A 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)
A unique identifier for a player associated with the latency data.
playerId
- A unique identifier for a player associated with the latency data.public String getPlayerId()
A unique identifier for a player associated with the latency data.
public PlayerLatency withPlayerId(String playerId)
A unique identifier for a player associated with the latency data.
playerId
- A 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.