@Generated(value="software.amazon.awssdk:codegen") public final class GameSessionConnectionInfo extends Object implements SdkPojo, Serializable, ToCopyableBuilder<GameSessionConnectionInfo.Builder,GameSessionConnectionInfo>
Connection information for a new game session that is created in response to a StartMatchmaking request. Once a match is made, the FlexMatch engine 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() |
String |
dnsName()
DNS identifier assigned to the instance that is running the game session.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(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() |
boolean |
hasMatchedPlayerSessions()
Returns true if the MatchedPlayerSessions property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
String |
ipAddress()
IP address of the instance that is running the game session.
|
List<MatchedPlayerSession> |
matchedPlayerSessions()
A 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.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GameSessionConnectionInfo.Builder> |
serializableBuilderClass() |
GameSessionConnectionInfo.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String gameSessionArn()
Amazon Resource Name (ARN) that is assigned to a game session and uniquely identifies it.
public final String ipAddress()
IP address of the instance that is running the game session. When connecting to a Amazon GameLift game server, a client needs to reference an IP address (or DNS name) and port number.
public final String dnsName()
DNS identifier assigned to the instance that is running the game session. Values have the following format:
TLS-enabled fleets: <unique identifier>.<region identifier>.amazongamelift.com.
Non-TLS-enabled fleets: ec2-<unique identifier>.compute.amazonaws.com. (See Amazon EC2 Instance IP Addressing.)
When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not the IP address.
TLS-enabled fleets: <unique identifier>.<region identifier>.amazongamelift.com.
Non-TLS-enabled fleets: ec2-<unique identifier>.compute.amazonaws.com. (See Amazon EC2 Instance IP Addressing.)
When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not the IP address.
public final 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 final boolean hasMatchedPlayerSessions()
public final List<MatchedPlayerSession> matchedPlayerSessions()
A 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.
You can use hasMatchedPlayerSessions() to see if a value was sent in this field.
public GameSessionConnectionInfo.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<GameSessionConnectionInfo.Builder,GameSessionConnectionInfo>public static GameSessionConnectionInfo.Builder builder()
public static Class<? extends GameSessionConnectionInfo.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.