@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DesiredPlayerSession extends Object implements Serializable, Cloneable, StructuredPojo
Player information for use when creating player sessions using a game session placement request.
| Constructor and Description |
|---|
DesiredPlayerSession() |
| Modifier and Type | Method and Description |
|---|---|
DesiredPlayerSession |
clone() |
boolean |
equals(Object obj) |
String |
getPlayerData()
Developer-defined information related to a player.
|
String |
getPlayerId()
A unique identifier for a player to associate with the player session.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setPlayerData(String playerData)
Developer-defined information related to a player.
|
void |
setPlayerId(String playerId)
A unique identifier for a player to associate with the player session.
|
String |
toString()
Returns a string representation of this object.
|
DesiredPlayerSession |
withPlayerData(String playerData)
Developer-defined information related to a player.
|
DesiredPlayerSession |
withPlayerId(String playerId)
A unique identifier for a player to associate with the player session.
|
public void setPlayerId(String playerId)
A unique identifier for a player to associate with the player session.
playerId - A unique identifier for a player to associate with the player session.public String getPlayerId()
A unique identifier for a player to associate with the player session.
public DesiredPlayerSession withPlayerId(String playerId)
A unique identifier for a player to associate with the player session.
playerId - A unique identifier for a player to associate with the player session.public void setPlayerData(String playerData)
Developer-defined information related to a player. Amazon GameLift does not use this data, so it can be formatted as needed for use in the game.
playerData - Developer-defined information related to a player. Amazon GameLift does not use this data, so it can be
formatted as needed for use in the game.public String getPlayerData()
Developer-defined information related to a player. Amazon GameLift does not use this data, so it can be formatted as needed for use in the game.
public DesiredPlayerSession withPlayerData(String playerData)
Developer-defined information related to a player. Amazon GameLift does not use this data, so it can be formatted as needed for use in the game.
playerData - Developer-defined information related to a player. Amazon GameLift does not use this data, so it can be
formatted as needed for use in the game.public String toString()
toString in class ObjectObject.toString()public DesiredPlayerSession clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.