@Generated(value="software.amazon.awssdk:codegen") public final class Player extends Object implements StructuredPojo, ToCopyableBuilder<Player.Builder,Player>
Represents a player in matchmaking. When starting a matchmaking request, a player has a player ID, attributes, and may have latency data. Team information is added after a match has been successfully completed.
Modifier and Type | Class and Description |
---|---|
static interface |
Player.Builder |
Modifier and Type | Method and Description |
---|---|
static Player.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Map<String,Integer> |
latencyInMs()
Set of values, expressed in milliseconds, indicating the amount of latency that a player experiences when
connected to AWS regions.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
Map<String,AttributeValue> |
playerAttributes()
Collection of name:value pairs containing player information for use in matchmaking.
|
String |
playerId()
Unique identifier for a player
|
static Class<? extends Player.Builder> |
serializableBuilderClass() |
String |
team()
Name of the team that the player is assigned to in a match.
|
Player.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String playerId()
Unique identifier for a player
public Map<String,AttributeValue> playerAttributes()
Collection of name:value pairs containing player information for use in matchmaking. Player attribute names need
to match playerAttributes names in the rule set being used. Example:
"PlayerAttributes": {"skill": {"N": "23"}, "gameMode": {"S": "deathmatch"}}
.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
"PlayerAttributes": {"skill": {"N": "23"}, "gameMode": {"S": "deathmatch"}}
.public String team()
Name of the team that the player is assigned to in a match. Team names are defined in a matchmaking rule set.
public Map<String,Integer> latencyInMs()
Set of values, expressed in milliseconds, indicating the amount of latency that a player experiences when connected to AWS regions. If this property is present, FlexMatch considers placing the match only in regions for which latency is reported.
If a matchmaker has a rule that evaluates player latency, players must report latency in order to be matched. If no latency is reported in this scenario, FlexMatch assumes that no regions are available to the player and the ticket is not matchable.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
If a matchmaker has a rule that evaluates player latency, players must report latency in order to be matched. If no latency is reported in this scenario, FlexMatch assumes that no regions are available to the player and the ticket is not matchable.
public Player.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Player.Builder,Player>
public static Player.Builder builder()
public static Class<? extends Player.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.