public static interface GameSessionConnectionInfo.Builder extends SdkPojo, CopyableBuilder<GameSessionConnectionInfo.Builder,GameSessionConnectionInfo>
| Modifier and Type | Method and Description |
|---|---|
GameSessionConnectionInfo.Builder |
dnsName(String dnsName)
The DNS identifier assigned to the instance that is running the game session.
|
GameSessionConnectionInfo.Builder |
gameSessionArn(String gameSessionArn)
A unique identifier for the game session.
|
GameSessionConnectionInfo.Builder |
ipAddress(String ipAddress)
The IP address of the game session.
|
GameSessionConnectionInfo.Builder |
matchedPlayerSessions(Collection<MatchedPlayerSession> matchedPlayerSessions)
A collection of player session IDs, one for each player ID that was included in the original matchmaking
request.
|
GameSessionConnectionInfo.Builder |
matchedPlayerSessions(Consumer<MatchedPlayerSession.Builder>... matchedPlayerSessions)
A collection of player session IDs, one for each player ID that was included in the original matchmaking
request.
|
GameSessionConnectionInfo.Builder |
matchedPlayerSessions(MatchedPlayerSession... matchedPlayerSessions)
A collection of player session IDs, one for each player ID that was included in the original matchmaking
request.
|
GameSessionConnectionInfo.Builder |
port(Integer port)
The port number for the game session.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildGameSessionConnectionInfo.Builder gameSessionArn(String gameSessionArn)
A unique identifier for the game session. Use the game session ID.
gameSessionArn - A unique identifier for the game session. Use the game session ID.GameSessionConnectionInfo.Builder ipAddress(String ipAddress)
The IP address of the game session. To connect to a Amazon GameLift game server, an app needs both the IP address and port number.
ipAddress - The IP address of the game session. To connect to a Amazon GameLift game server, an app needs both the
IP address and port number.GameSessionConnectionInfo.Builder dnsName(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.
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.
GameSessionConnectionInfo.Builder port(Integer port)
The port number for the game session. To connect to a Amazon GameLift game server, an app needs both the IP address and port number.
port - The port number for the game session. To connect to a Amazon GameLift game server, an app needs both
the IP address and port number.GameSessionConnectionInfo.Builder matchedPlayerSessions(Collection<MatchedPlayerSession> matchedPlayerSessions)
A collection of player session IDs, one for each player ID that was included in the original matchmaking request.
matchedPlayerSessions - A collection of player session IDs, one for each player ID that was included in the original
matchmaking request.GameSessionConnectionInfo.Builder matchedPlayerSessions(MatchedPlayerSession... matchedPlayerSessions)
A collection of player session IDs, one for each player ID that was included in the original matchmaking request.
matchedPlayerSessions - A collection of player session IDs, one for each player ID that was included in the original
matchmaking request.GameSessionConnectionInfo.Builder matchedPlayerSessions(Consumer<MatchedPlayerSession.Builder>... matchedPlayerSessions)
A collection of player session IDs, one for each player ID that was included in the original matchmaking request.
This is a convenience method that creates an instance of theMatchedPlayerSession.Builder avoiding the need to
create one manually via MatchedPlayerSession.builder()
.
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #matchedPlayerSessions(List.
matchedPlayerSessions - a consumer that will call methods on
MatchedPlayerSession.Builder#matchedPlayerSessions(java.util.Collection) Copyright © 2023. All rights reserved.