@Generated(value="software.amazon.awssdk:codegen") public final class GameSessionConnectionInfo extends Object implements StructuredPojo, ToCopyableBuilder<GameSessionConnectionInfo.Builder,GameSessionConnectionInfo>
Connection information for the new game session that is created with matchmaking. (with StartMatchmaking). Once a match is set, the FlexMatch engine places the match and creates a new game session for it. This information, including the game session endpoint and player sessions for each player in the original matchmaking request, is added to the MatchmakingTicket, which can be retrieved by calling DescribeMatchmaking.
Modifier and Type | Class and Description |
---|---|
static interface |
GameSessionConnectionInfo.Builder |
Modifier and Type | Method and Description |
---|---|
static GameSessionConnectionInfo.Builder |
builder() |
boolean |
equals(Object obj) |
String |
gameSessionArn()
Amazon Resource Name (ARN) that
is assigned to a game session and uniquely identifies it.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
ipAddress()
IP address of the game session.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
List<MatchedPlayerSession> |
matchedPlayerSessions()
Collection of player session IDs, one for each player ID that was included in the original matchmaking request.
|
Integer |
port()
Port number for the game session.
|
static Class<? extends GameSessionConnectionInfo.Builder> |
serializableBuilderClass() |
GameSessionConnectionInfo.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String gameSessionArn()
Amazon Resource Name (ARN) that is assigned to a game session and uniquely identifies it.
public String ipAddress()
IP address of the game session. To connect to a Amazon GameLift game server, an app needs both the IP address and port number.
public Integer port()
Port number for the game session. To connect to a Amazon GameLift game server, an app needs both the IP address and port number.
public List<MatchedPlayerSession> matchedPlayerSessions()
Collection of player session IDs, one for each player ID that was included in the original matchmaking request.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public GameSessionConnectionInfo.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GameSessionConnectionInfo.Builder,GameSessionConnectionInfo>
public static GameSessionConnectionInfo.Builder builder()
public static Class<? extends GameSessionConnectionInfo.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.