@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 with StartGameSessionPlacement.
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()
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)
Unique identifier for a player to associate with the player session.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
DesiredPlayerSession |
withPlayerData(String playerData)
Developer-defined information related to a player.
|
DesiredPlayerSession |
withPlayerId(String playerId)
Unique identifier for a player to associate with the player session.
|
public void setPlayerId(String playerId)
Unique identifier for a player to associate with the player session.
playerId
- Unique identifier for a player to associate with the player session.public String getPlayerId()
Unique identifier for a player to associate with the player session.
public DesiredPlayerSession withPlayerId(String playerId)
Unique identifier for a player to associate with the player session.
playerId
- 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 Object
Object.toString()
public DesiredPlayerSession 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.