public static interface GameSessionConnectionInfo.Builder extends CopyableBuilder<GameSessionConnectionInfo.Builder,GameSessionConnectionInfo>
Modifier and Type | Method and Description |
---|---|
GameSessionConnectionInfo.Builder |
gameSessionArn(String gameSessionArn)
Amazon Resource Name (ARN)
that is assigned to a game session and uniquely identifies it.
|
GameSessionConnectionInfo.Builder |
ipAddress(String ipAddress)
IP address of the game session.
|
GameSessionConnectionInfo.Builder |
matchedPlayerSessions(Collection<MatchedPlayerSession> matchedPlayerSessions)
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)
Collection of player session IDs, one for each player ID that was included in the original matchmaking
request.
|
GameSessionConnectionInfo.Builder |
matchedPlayerSessions(MatchedPlayerSession... matchedPlayerSessions)
Collection of player session IDs, one for each player ID that was included in the original matchmaking
request.
|
GameSessionConnectionInfo.Builder |
port(Integer port)
Port number for the game session.
|
copy
applyMutation, build
GameSessionConnectionInfo.Builder gameSessionArn(String gameSessionArn)
Amazon Resource Name (ARN) that is assigned to a game session and uniquely identifies it.
gameSessionArn
- Amazon Resource Name (ARN) that is assigned to
a game session and uniquely identifies it.GameSessionConnectionInfo.Builder ipAddress(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.
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.GameSessionConnectionInfo.Builder port(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.
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.GameSessionConnectionInfo.Builder matchedPlayerSessions(Collection<MatchedPlayerSession> matchedPlayerSessions)
Collection of player session IDs, one for each player ID that was included in the original matchmaking request.
matchedPlayerSessions
- Collection of player session IDs, one for each player ID that was included in the original matchmaking
request.GameSessionConnectionInfo.Builder matchedPlayerSessions(MatchedPlayerSession... matchedPlayerSessions)
Collection of player session IDs, one for each player ID that was included in the original matchmaking request.
matchedPlayerSessions
- 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)
Collection of player session IDs, one for each player ID that was included in the original matchmaking request.
This is a convenience that creates an instance of theList.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately
and its result is passed to #matchedPlayerSessions(List)
.matchedPlayerSessions
- a consumer that will call methods on List.Builder
#matchedPlayerSessions(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.