Class MatchedPlayerSession
- java.lang.Object
-
- software.amazon.awssdk.services.gamelift.model.MatchedPlayerSession
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MatchedPlayerSession.Builder,MatchedPlayerSession>
@Generated("software.amazon.awssdk:codegen") public final class MatchedPlayerSession extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MatchedPlayerSession.Builder,MatchedPlayerSession>
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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMatchedPlayerSession.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MatchedPlayerSession.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringplayerId()A unique identifier for a playerStringplayerSessionId()A unique identifier for a player sessionList<SdkField<?>>sdkFields()static Class<? extends MatchedPlayerSession.Builder>serializableBuilderClass()MatchedPlayerSession.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
playerId
public final String playerId()
A unique identifier for a player
- Returns:
- A unique identifier for a player
-
playerSessionId
public final String playerSessionId()
A unique identifier for a player session
- Returns:
- A unique identifier for a player session
-
toBuilder
public MatchedPlayerSession.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<MatchedPlayerSession.Builder,MatchedPlayerSession>
-
builder
public static MatchedPlayerSession.Builder builder()
-
serializableBuilderClass
public static Class<? extends MatchedPlayerSession.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-