Interface GameSessionConnectionInfo.Builder
- All Superinterfaces:
 Buildable,CopyableBuilder<GameSessionConnectionInfo.Builder,,GameSessionConnectionInfo> SdkBuilder<GameSessionConnectionInfo.Builder,,GameSessionConnectionInfo> SdkPojo
- Enclosing class:
 GameSessionConnectionInfo
- 
Method Summary
Modifier and TypeMethodDescriptionThe DNS identifier assigned to the instance that is running the game session.gameSessionArn(String gameSessionArn) A unique identifier for the game session.The IP address of the game session.matchedPlayerSessions(Collection<MatchedPlayerSession> matchedPlayerSessions) A collection of player session IDs, one for each player ID that was included in the original matchmaking request.matchedPlayerSessions(Consumer<MatchedPlayerSession.Builder>... matchedPlayerSessions) A collection of player session IDs, one for each player ID that was included in the original matchmaking request.matchedPlayerSessions(MatchedPlayerSession... matchedPlayerSessions) A collection of player session IDs, one for each player ID that was included in the original matchmaking request.The port number for the game session.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields 
- 
Method Details
- 
gameSessionArn
A unique identifier for the game session. Use the game session ID.
- Parameters:
 gameSessionArn- A unique identifier for the game session. Use the game session ID.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
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.
- Parameters:
 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.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
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.
- Parameters:
 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.
- 
        
 - Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
 
 - 
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.
- Parameters:
 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.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
matchedPlayerSessions
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.
- Parameters:
 matchedPlayerSessions- A collection of player session IDs, one for each player ID that was included in the original matchmaking request.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
matchedPlayerSessions
GameSessionConnectionInfo.Builder matchedPlayerSessions(MatchedPlayerSession... matchedPlayerSessions) A collection of player session IDs, one for each player ID that was included in the original matchmaking request.
- Parameters:
 matchedPlayerSessions- A collection of player session IDs, one for each player ID that was included in the original matchmaking request.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
matchedPlayerSessions
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.Builderavoiding the need to create one manually viaMatchedPlayerSession.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomatchedPlayerSessions(List<MatchedPlayerSession>).- Parameters:
 matchedPlayerSessions- a consumer that will call methods onMatchedPlayerSession.Builder- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 
 -