CopyableBuilder<CreatePlayerSessionsRequest.Builder,CreatePlayerSessionsRequest>
, SdkBuilder<CreatePlayerSessionsRequest.Builder,CreatePlayerSessionsRequest>
public static interface CreatePlayerSessionsRequest.Builder extends CopyableBuilder<CreatePlayerSessionsRequest.Builder,CreatePlayerSessionsRequest>
Modifier and Type | Method | Description |
---|---|---|
CreatePlayerSessionsRequest.Builder |
gameSessionId(String gameSessionId) |
Unique identifier for the game session to add players to.
|
CreatePlayerSessionsRequest.Builder |
playerDataMap(Map<String,String> playerDataMap) |
Map of string pairs, each specifying a player ID and a set of developer-defined information related to the
player.
|
CreatePlayerSessionsRequest.Builder |
playerIds(String... playerIds) |
List of unique identifiers for the players to be added.
|
CreatePlayerSessionsRequest.Builder |
playerIds(Collection<String> playerIds) |
List of unique identifiers for the players to be added.
|
copy
apply, build
CreatePlayerSessionsRequest.Builder gameSessionId(String gameSessionId)
Unique identifier for the game session to add players to.
gameSessionId
- Unique identifier for the game session to add players to.CreatePlayerSessionsRequest.Builder playerIds(Collection<String> playerIds)
List of unique identifiers for the players to be added.
playerIds
- List of unique identifiers for the players to be added.CreatePlayerSessionsRequest.Builder playerIds(String... playerIds)
List of unique identifiers for the players to be added.
NOTE: This method appends the values to the existing list (if any). Use
#setPlayerIds(java.util.Collection)
or #withPlayerIds(java.util.Collection)
if you want to
override the existing values.
playerIds
- List of unique identifiers for the players to be added.CreatePlayerSessionsRequest.Builder playerDataMap(Map<String,String> playerDataMap)
Map of string pairs, each specifying a player ID and a set of developer-defined information related to the
player. Amazon GameLift does not use this data, so it can be formatted as needed for use in the game. Player
data strings for player IDs not included in the PlayerIds
parameter are ignored.
playerDataMap
- Map of string pairs, each specifying a player ID and a set of developer-defined information related to
the player. Amazon GameLift does not use this data, so it can be formatted as needed for use in the
game. Player data strings for player IDs not included in the PlayerIds
parameter are
ignored.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.