CopyableBuilder<GameSession.Builder,GameSession>
, SdkBuilder<GameSession.Builder,GameSession>
public static interface GameSession.Builder extends CopyableBuilder<GameSession.Builder,GameSession>
Modifier and Type | Method | Description |
---|---|---|
GameSession.Builder |
creationTime(Date creationTime) |
Time stamp indicating when this data object was created.
|
GameSession.Builder |
creatorId(String creatorId) |
Unique identifier for a player.
|
GameSession.Builder |
currentPlayerSessionCount(Integer currentPlayerSessionCount) |
Number of players currently in the game session.
|
GameSession.Builder |
fleetId(String fleetId) |
Unique identifier for a fleet the game session is running on.
|
GameSession.Builder |
gameProperties(Collection<GameProperty> gameProperties) |
Set of developer-defined properties for a game session.
|
GameSession.Builder |
gameProperties(GameProperty... gameProperties) |
Set of developer-defined properties for a game session.
|
GameSession.Builder |
gameSessionId(String gameSessionId) |
Unique identifier for the game session.
|
GameSession.Builder |
ipAddress(String ipAddress) |
IP address of the game session.
|
GameSession.Builder |
maximumPlayerSessionCount(Integer maximumPlayerSessionCount) |
Maximum number of players that can be connected simultaneously to the game session.
|
GameSession.Builder |
name(String name) |
Descriptive label that is associated with a game session.
|
GameSession.Builder |
playerSessionCreationPolicy(String playerSessionCreationPolicy) |
Indicates whether or not the game session is accepting new players.
|
GameSession.Builder |
playerSessionCreationPolicy(PlayerSessionCreationPolicy playerSessionCreationPolicy) |
Indicates whether or not the game session is accepting new players.
|
GameSession.Builder |
port(Integer port) |
Port number for the game session.
|
GameSession.Builder |
status(String status) |
Current status of the game session.
|
GameSession.Builder |
status(GameSessionStatus status) |
Current status of the game session.
|
GameSession.Builder |
terminationTime(Date terminationTime) |
Time stamp indicating when this data object was terminated.
|
copy
apply, build
GameSession.Builder gameSessionId(String gameSessionId)
Unique identifier for the game session. A game session ID has the following format:
arn:aws:gamelift:<region>::gamesession/<fleet ID>/<custom ID string or idempotency token>
.
gameSessionId
- Unique identifier for the game session. A game session ID has the following format:
arn:aws:gamelift:<region>::gamesession/<fleet ID>/<custom ID string or idempotency token>
.GameSession.Builder name(String name)
Descriptive label that is associated with a game session. Session names do not need to be unique.
name
- Descriptive label that is associated with a game session. Session names do not need to be unique.GameSession.Builder fleetId(String fleetId)
Unique identifier for a fleet the game session is running on.
fleetId
- Unique identifier for a fleet the game session is running on.GameSession.Builder creationTime(Date creationTime)
Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").
creationTime
- Time stamp indicating when this data object was created. Format is a number expressed in Unix time as
milliseconds (for example "1469498468.057").GameSession.Builder terminationTime(Date terminationTime)
Time stamp indicating when this data object was terminated. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").
terminationTime
- Time stamp indicating when this data object was terminated. Format is a number expressed in Unix time
as milliseconds (for example "1469498468.057").GameSession.Builder currentPlayerSessionCount(Integer currentPlayerSessionCount)
Number of players currently in the game session.
currentPlayerSessionCount
- Number of players currently in the game session.GameSession.Builder maximumPlayerSessionCount(Integer maximumPlayerSessionCount)
Maximum number of players that can be connected simultaneously to the game session.
maximumPlayerSessionCount
- Maximum number of players that can be connected simultaneously to the game session.GameSession.Builder status(String status)
Current status of the game session. A game session must have an ACTIVE
status to have player
sessions.
status
- Current status of the game session. A game session must have an ACTIVE
status to have
player sessions.GameSessionStatus
GameSession.Builder status(GameSessionStatus status)
Current status of the game session. A game session must have an ACTIVE
status to have player
sessions.
status
- Current status of the game session. A game session must have an ACTIVE
status to have
player sessions.GameSessionStatus
GameSession.Builder gameProperties(Collection<GameProperty> gameProperties)
Set of developer-defined properties for a game session. These properties are passed to the server process hosting the game session.
gameProperties
- Set of developer-defined properties for a game session. These properties are passed to the server
process hosting the game session.GameSession.Builder gameProperties(GameProperty... gameProperties)
Set of developer-defined properties for a game session. These properties are passed to the server process hosting the game session.
NOTE: This method appends the values to the existing list (if any). Use
#setGameProperties(java.util.Collection)
or #withGameProperties(java.util.Collection)
if you
want to override the existing values.
gameProperties
- Set of developer-defined properties for a game session. These properties are passed to the server
process hosting the game session.GameSession.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.GameSession.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.GameSession.Builder playerSessionCreationPolicy(String playerSessionCreationPolicy)
Indicates whether or not the game session is accepting new players.
playerSessionCreationPolicy
- Indicates whether or not the game session is accepting new players.PlayerSessionCreationPolicy
GameSession.Builder playerSessionCreationPolicy(PlayerSessionCreationPolicy playerSessionCreationPolicy)
Indicates whether or not the game session is accepting new players.
playerSessionCreationPolicy
- Indicates whether or not the game session is accepting new players.PlayerSessionCreationPolicy
GameSession.Builder creatorId(String creatorId)
Unique identifier for a player. This ID is used to enforce a resource protection policy (if one exists), that limits the number of game sessions a player can create.
creatorId
- Unique identifier for a player. This ID is used to enforce a resource protection policy (if one
exists), that limits the number of game sessions a player can create.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.