public static interface GameSession.Builder extends SdkPojo, CopyableBuilder<GameSession.Builder,GameSession>
| Modifier and Type | Method and Description |
|---|---|
GameSession.Builder |
creationTime(Instant creationTime)
A time stamp indicating when this data object was created.
|
GameSession.Builder |
creatorId(String creatorId)
A unique identifier for a player.
|
GameSession.Builder |
currentPlayerSessionCount(Integer currentPlayerSessionCount)
Number of players currently in the game session.
|
GameSession.Builder |
dnsName(String dnsName)
The DNS identifier assigned to the instance that is running the game session.
|
GameSession.Builder |
fleetArn(String fleetArn)
The Amazon Resource Name (ARN) associated with the
GameLift fleet that this game session is running on.
|
GameSession.Builder |
fleetId(String fleetId)
A unique identifier for the fleet that the game session is running on.
|
GameSession.Builder |
gameProperties(Collection<GameProperty> gameProperties)
A set of custom properties for a game session, formatted as key:value pairs.
|
GameSession.Builder |
gameProperties(Consumer<GameProperty.Builder>... gameProperties)
A set of custom properties for a game session, formatted as key:value pairs.
|
GameSession.Builder |
gameProperties(GameProperty... gameProperties)
A set of custom properties for a game session, formatted as key:value pairs.
|
GameSession.Builder |
gameSessionData(String gameSessionData)
A set of custom game session properties, formatted as a single string value.
|
GameSession.Builder |
gameSessionId(String gameSessionId)
A unique identifier for the game session.
|
GameSession.Builder |
ipAddress(String ipAddress)
The IP address of the game session.
|
GameSession.Builder |
location(String location)
The fleet location where the game session is running.
|
GameSession.Builder |
matchmakerData(String matchmakerData)
Information about the matchmaking process that was used to create the game session.
|
GameSession.Builder |
maximumPlayerSessionCount(Integer maximumPlayerSessionCount)
The maximum number of players that can be connected simultaneously to the game session.
|
GameSession.Builder |
name(String name)
A 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)
The 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)
A time stamp indicating when this data object was terminated.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildGameSession.Builder gameSessionId(String gameSessionId)
A 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 - A 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)
A descriptive label that is associated with a game session. Session names do not need to be unique.
name - A descriptive label that is associated with a game session. Session names do not need to be unique.GameSession.Builder fleetId(String fleetId)
A unique identifier for the fleet that the game session is running on.
fleetId - A unique identifier for the fleet that the game session is running on.GameSession.Builder fleetArn(String fleetArn)
The Amazon Resource Name (ARN) associated with the GameLift fleet that this game session is running on.
fleetArn - The Amazon Resource Name (ARN) associated with the
GameLift fleet that this game session is running on.GameSession.Builder creationTime(Instant creationTime)
A time stamp indicating when this data object was created. Format is a number expressed in Unix time as
milliseconds (for example "1469498468.057").
creationTime - A 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)
A time stamp indicating when this data object was terminated. Format is a number expressed in Unix time as
milliseconds (for example "1469498468.057").
terminationTime - A 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)
The maximum number of players that can be connected simultaneously to the game session.
maximumPlayerSessionCount - The 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,
GameSessionStatusGameSession.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,
GameSessionStatusGameSession.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,
GameSessionStatusReasonGameSession.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,
GameSessionStatusReasonGameSession.Builder gameProperties(Collection<GameProperty> gameProperties)
A set of custom properties for a game session, formatted as key:value pairs. These properties are passed to a game server process with a request to start a new game session (see Start a Game Session).
gameProperties - A set of custom properties for a game session, formatted as key:value pairs. These properties are
passed to a game server process with a request to start a new game session (see Start a Game Session).GameSession.Builder gameProperties(GameProperty... gameProperties)
A set of custom properties for a game session, formatted as key:value pairs. These properties are passed to a game server process with a request to start a new game session (see Start a Game Session).
gameProperties - A set of custom properties for a game session, formatted as key:value pairs. These properties are
passed to a game server process with a request to start a new game session (see Start a Game Session).GameSession.Builder gameProperties(Consumer<GameProperty.Builder>... gameProperties)
A set of custom properties for a game session, formatted as key:value pairs. These properties are passed to a game server process with a request to start a new game session (see Start a Game Session).
This is a convenience method that creates an instance of theGameProperty.Builder avoiding the need to create one
manually via GameProperty.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #gameProperties(List.
gameProperties - a consumer that will call methods on
GameProperty.Builder#gameProperties(java.util.Collection) GameSession.Builder ipAddress(String ipAddress)
The 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 - The 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 dnsName(String dnsName)
The DNS identifier assigned to the instance that is running the game session. Values have the following format:
TLS-enabled fleets: <unique identifier>.<region identifier>.amazongamelift.com.
Non-TLS-enabled fleets: ec2-<unique identifier>.compute.amazonaws.com. (See Amazon EC2 Instance IP Addressing.)
When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not the IP address.
dnsName - The DNS identifier assigned to the instance that is running the game session. Values have the
following format:
TLS-enabled fleets:
<unique identifier>.<region identifier>.amazongamelift.com.
Non-TLS-enabled fleets: ec2-<unique identifier>.compute.amazonaws.com. (See Amazon EC2 Instance IP Addressing.)
When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not the IP address.
GameSession.Builder port(Integer port)
The 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 - The 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,
PlayerSessionCreationPolicyGameSession.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,
PlayerSessionCreationPolicyGameSession.Builder creatorId(String creatorId)
A 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 - A 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)
A set of custom game session properties, formatted as a single string value. This data is passed to a game server process with a request to start a new game session (see Start a Game Session).
gameSessionData - A set of custom game session properties, formatted as a single string value. This data is passed to a
game server process 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).GameSession.Builder location(String location)
The fleet location where the game session is running. This value might specify the fleet's home Region or a
remote location. Location is expressed as an Amazon Web Services Region code such as us-west-2.
location - The fleet location where the game session is running. This value might specify the fleet's home Region
or a remote location. Location is expressed as an Amazon Web Services Region code such as
us-west-2.Copyright © 2023. All rights reserved.