@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MatchedPlayerSession extends Object implements Serializable, Cloneable, StructuredPojo
Represents a new player session that is created as a result of a successful FlexMatch match. A successful match automatically creates new player sessions for every player ID in the original matchmaking request.
When players connect to the match's game session, they must include both player ID and player session ID in order to claim their assigned player slot.
Constructor and Description |
---|
MatchedPlayerSession() |
Modifier and Type | Method and Description |
---|---|
MatchedPlayerSession |
clone() |
boolean |
equals(Object obj) |
String |
getPlayerId()
Unique identifier for a player
|
String |
getPlayerSessionId()
Unique identifier for a player session
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPlayerId(String playerId)
Unique identifier for a player
|
void |
setPlayerSessionId(String playerSessionId)
Unique identifier for a player session
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
MatchedPlayerSession |
withPlayerId(String playerId)
Unique identifier for a player
|
MatchedPlayerSession |
withPlayerSessionId(String playerSessionId)
Unique identifier for a player session
|
public void setPlayerId(String playerId)
Unique identifier for a player
playerId
- Unique identifier for a playerpublic String getPlayerId()
Unique identifier for a player
public MatchedPlayerSession withPlayerId(String playerId)
Unique identifier for a player
playerId
- Unique identifier for a playerpublic void setPlayerSessionId(String playerSessionId)
Unique identifier for a player session
playerSessionId
- Unique identifier for a player sessionpublic String getPlayerSessionId()
Unique identifier for a player session
public MatchedPlayerSession withPlayerSessionId(String playerSessionId)
Unique identifier for a player session
playerSessionId
- Unique identifier for a player sessionpublic String toString()
toString
in class Object
Object.toString()
public MatchedPlayerSession 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.