@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()
A unique identifier for a player
|
String |
getPlayerSessionId()
A unique identifier for a player session
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPlayerId(String playerId)
A unique identifier for a player
|
void |
setPlayerSessionId(String playerSessionId)
A unique identifier for a player session
|
String |
toString()
Returns a string representation of this object.
|
MatchedPlayerSession |
withPlayerId(String playerId)
A unique identifier for a player
|
MatchedPlayerSession |
withPlayerSessionId(String playerSessionId)
A unique identifier for a player session
|
public void setPlayerId(String playerId)
A unique identifier for a player
playerId
- A unique identifier for a playerpublic String getPlayerId()
A unique identifier for a player
public MatchedPlayerSession withPlayerId(String playerId)
A unique identifier for a player
playerId
- A unique identifier for a playerpublic void setPlayerSessionId(String playerSessionId)
A unique identifier for a player session
playerSessionId
- A unique identifier for a player sessionpublic String getPlayerSessionId()
A unique identifier for a player session
public MatchedPlayerSession withPlayerSessionId(String playerSessionId)
A unique identifier for a player session
playerSessionId
- A 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.