@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 start matchmaking 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 matchmaking ticket.
| Modifier and Type | Class and Description |
|---|---|
static interface |
GameSessionConnectionInfo.Builder |
| Modifier and Type | Method and Description |
|---|---|
static GameSessionConnectionInfo.Builder |
builder() |
String |
dnsName()
The DNS identifier assigned to the instance that is running the game session.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
gameSessionArn()
A unique identifier for the game session.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasMatchedPlayerSessions()
For responses, this returns true if the service returned a value for the MatchedPlayerSessions property.
|
String |
ipAddress()
The IP address of 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()
The 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()
A unique identifier for the game session. Use the game session ID.
public final String ipAddress()
The IP address of the game session. To connect to a GameLift game server, an app needs both the IP address and port number.
public final String dnsName()
The 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()
The port number for the game session. To connect to a GameLift game server, an app needs both the IP address and port number.
public final boolean hasMatchedPlayerSessions()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasMatchedPlayerSessions() method.
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 © 2022. All rights reserved.