public static interface GameSession.Builder extends SdkPojo, CopyableBuilder<GameSession.Builder,GameSession>
Modifier and Type | Method and Description |
---|---|
GameSession.Builder |
creationTime(Instant 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 that the game session is running on.
|
GameSession.Builder |
gameProperties(Collection<GameProperty> gameProperties)
Set of custom properties for a game session, formatted as key:value pairs.
|
GameSession.Builder |
gameProperties(Consumer<GameProperty.Builder>... gameProperties)
Set of custom properties for a game session, formatted as key:value pairs.
|
GameSession.Builder |
gameProperties(GameProperty... gameProperties)
Set of custom properties for a game session, formatted as key:value pairs.
|
GameSession.Builder |
gameSessionData(String gameSessionData)
Set of custom game session properties, formatted as a single string value.
|
GameSession.Builder |
gameSessionId(String gameSessionId)
Unique identifier for the game session.
|
GameSession.Builder |
ipAddress(String ipAddress)
IP address of the game session.
|
GameSession.Builder |
matchmakerData(String matchmakerData)
Information about the matchmaking process that was used to create 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(PlayerSessionCreationPolicy playerSessionCreationPolicy)
Indicates whether or not the game session is accepting new players.
|
GameSession.Builder |
playerSessionCreationPolicy(String 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(GameSessionStatus status)
Current status of the game session.
|
GameSession.Builder |
status(String status)
Current status of the game session.
|
GameSession.Builder |
statusReason(GameSessionStatusReason statusReason)
Provides additional information about game session status.
|
GameSession.Builder |
statusReason(String statusReason)
Provides additional information about game session status.
|
GameSession.Builder |
terminationTime(Instant terminationTime)
Time stamp indicating when this data object was terminated.
|
copy
applyMutation, build
GameSession.Builder gameSessionId(String gameSessionId)
Unique identifier for the game session. A game session ARN 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 ARN 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 that the game session is running on.
fleetId
- Unique identifier for a fleet that the game session is running on.GameSession.Builder creationTime(Instant 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(Instant 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
,
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
,
GameSessionStatus
GameSession.Builder statusReason(String statusReason)
Provides additional information about game session status. INTERRUPTED
indicates that the game
session was hosted on a spot instance that was reclaimed, causing the active game session to be terminated.
statusReason
- Provides additional information about game session status. INTERRUPTED
indicates that the
game session was hosted on a spot instance that was reclaimed, causing the active game session to be
terminated.GameSessionStatusReason
,
GameSessionStatusReason
GameSession.Builder statusReason(GameSessionStatusReason statusReason)
Provides additional information about game session status. INTERRUPTED
indicates that the game
session was hosted on a spot instance that was reclaimed, causing the active game session to be terminated.
statusReason
- Provides additional information about game session status. INTERRUPTED
indicates that the
game session was hosted on a spot instance that was reclaimed, causing the active game session to be
terminated.GameSessionStatusReason
,
GameSessionStatusReason
GameSession.Builder gameProperties(Collection<GameProperty> gameProperties)
Set of custom properties for a game session, formatted as key:value pairs. These properties are passed to a game server process in the GameSession object with a request to start a new game session (see Start a Game Session). You can search for active game sessions based on this custom data with SearchGameSessions.
gameProperties
- Set of custom properties for a game session, formatted as key:value pairs. These properties are passed
to a game server process in the GameSession object with a request to start a new game session
(see Start a Game Session). You can search for active game sessions based on this custom data with
SearchGameSessions.GameSession.Builder gameProperties(GameProperty... gameProperties)
Set of custom properties for a game session, formatted as key:value pairs. These properties are passed to a game server process in the GameSession object with a request to start a new game session (see Start a Game Session). You can search for active game sessions based on this custom data with SearchGameSessions.
gameProperties
- Set of custom properties for a game session, formatted as key:value pairs. These properties are passed
to a game server process in the GameSession object with a request to start a new game session
(see Start a Game Session). You can search for active game sessions based on this custom data with
SearchGameSessions.GameSession.Builder gameProperties(Consumer<GameProperty.Builder>... gameProperties)
Set of custom properties for a game session, formatted as key:value pairs. These properties are passed to a game server process in the GameSession object with a request to start a new game session (see Start a Game Session). You can search for active game sessions based on this custom data with SearchGameSessions.
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 #gameProperties(List)
.gameProperties
- a consumer that will call methods on List.Builder
#gameProperties(List)
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
,
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
,
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.GameSession.Builder gameSessionData(String gameSessionData)
Set of custom game session properties, formatted as a single string value. This data is passed to a game server process in the GameSession object with a request to start a new game session (see Start a Game Session).
gameSessionData
- Set of custom game session properties, formatted as a single string value. This data is passed to a
game server process in the GameSession object with a request to start a new game session (see
Start a Game Session).GameSession.Builder matchmakerData(String matchmakerData)
Information about the matchmaking process that was used to create the game session. It is in JSON syntax, formatted as a string. In addition the matchmaking configuration used, it contains data on all players assigned to the match, including player attributes and team assignments. For more details on matchmaker data, see Match Data. Matchmaker data is useful when requesting match backfills, and is updated whenever new players are added during a successful backfill (see StartMatchBackfill).
matchmakerData
- Information about the matchmaking process that was used to create the game session. It is in JSON
syntax, formatted as a string. In addition the matchmaking configuration used, it contains data on all
players assigned to the match, including player attributes and team assignments. For more details on
matchmaker data, see Match Data. Matchmaker data is useful when requesting match backfills, and is updated whenever
new players are added during a successful backfill (see StartMatchBackfill).Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.