Interface CreatePlayerSessionsRequest.Builder

    • Method Detail

      • gameSessionId

        CreatePlayerSessionsRequest.Builder gameSessionId​(String gameSessionId)

        A unique identifier for the game session to add players to.

        Parameters:
        gameSessionId - A unique identifier for the game session to add players to.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • playerIds

        CreatePlayerSessionsRequest.Builder playerIds​(Collection<String> playerIds)

        List of unique identifiers for the players to be added.

        Parameters:
        playerIds - List of unique identifiers for the players to be added.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • playerIds

        CreatePlayerSessionsRequest.Builder playerIds​(String... playerIds)

        List of unique identifiers for the players to be added.

        Parameters:
        playerIds - List of unique identifiers for the players to be added.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • playerDataMap

        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. Any player data strings for player IDs that are not included in the PlayerIds parameter are ignored.

        Parameters:
        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. Any player data strings for player IDs that are not included in the PlayerIds parameter are ignored.
        Returns:
        Returns a reference to this object so that method calls can be chained together.