public static interface PlayerSession.Builder extends SdkPojo, CopyableBuilder<PlayerSession.Builder,PlayerSession>
| Modifier and Type | Method and Description |
|---|---|
PlayerSession.Builder |
creationTime(Instant creationTime)
A time stamp indicating when this data object was created.
|
PlayerSession.Builder |
dnsName(String dnsName)
The DNS identifier assigned to the instance that is running the game session.
|
PlayerSession.Builder |
fleetArn(String fleetArn)
The Amazon Resource Name (ARN) associated with the
GameLift fleet that the player's game session is running on.
|
PlayerSession.Builder |
fleetId(String fleetId)
A unique identifier for the fleet that the player's game session is running on.
|
PlayerSession.Builder |
gameSessionId(String gameSessionId)
A unique identifier for the game session that the player session is connected to.
|
PlayerSession.Builder |
ipAddress(String ipAddress)
The IP address of the game session.
|
PlayerSession.Builder |
playerData(String playerData)
Developer-defined information related to a player.
|
PlayerSession.Builder |
playerId(String playerId)
A unique identifier for a player that is associated with this player session.
|
PlayerSession.Builder |
playerSessionId(String playerSessionId)
A unique identifier for a player session.
|
PlayerSession.Builder |
port(Integer port)
Port number for the game session.
|
PlayerSession.Builder |
status(PlayerSessionStatus status)
Current status of the player session.
|
PlayerSession.Builder |
status(String status)
Current status of the player session.
|
PlayerSession.Builder |
terminationTime(Instant terminationTime)
A time stamp indicating when this data object was terminated.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildPlayerSession.Builder playerSessionId(String playerSessionId)
A unique identifier for a player session.
playerSessionId - A unique identifier for a player session.PlayerSession.Builder playerId(String playerId)
A unique identifier for a player that is associated with this player session.
playerId - A unique identifier for a player that is associated with this player session.PlayerSession.Builder gameSessionId(String gameSessionId)
A unique identifier for the game session that the player session is connected to.
gameSessionId - A unique identifier for the game session that the player session is connected to.PlayerSession.Builder fleetId(String fleetId)
A unique identifier for the fleet that the player's game session is running on.
fleetId - A unique identifier for the fleet that the player's game session is running on.PlayerSession.Builder fleetArn(String fleetArn)
The Amazon Resource Name (ARN) associated with the GameLift fleet that the player's game session is running on.
fleetArn - The Amazon Resource Name (ARN) associated with the
GameLift fleet that the player's game session is running on.PlayerSession.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").PlayerSession.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").PlayerSession.Builder status(String status)
Current status of the player session.
Possible player session statuses include the following:
RESERVED -- The player session request has been received, but the player has not yet connected to the server process and/or been validated.
ACTIVE -- The player has been validated by the server process and is currently connected.
COMPLETED -- The player connection has been dropped.
TIMEDOUT -- A player session request was received, but the player did not connect and/or was not validated within the timeout limit (60 seconds).
status - Current status of the player session.
Possible player session statuses include the following:
RESERVED -- The player session request has been received, but the player has not yet connected to the server process and/or been validated.
ACTIVE -- The player has been validated by the server process and is currently connected.
COMPLETED -- The player connection has been dropped.
TIMEDOUT -- A player session request was received, but the player did not connect and/or was not validated within the timeout limit (60 seconds).
PlayerSessionStatus,
PlayerSessionStatusPlayerSession.Builder status(PlayerSessionStatus status)
Current status of the player session.
Possible player session statuses include the following:
RESERVED -- The player session request has been received, but the player has not yet connected to the server process and/or been validated.
ACTIVE -- The player has been validated by the server process and is currently connected.
COMPLETED -- The player connection has been dropped.
TIMEDOUT -- A player session request was received, but the player did not connect and/or was not validated within the timeout limit (60 seconds).
status - Current status of the player session.
Possible player session statuses include the following:
RESERVED -- The player session request has been received, but the player has not yet connected to the server process and/or been validated.
ACTIVE -- The player has been validated by the server process and is currently connected.
COMPLETED -- The player connection has been dropped.
TIMEDOUT -- A player session request was received, but the player did not connect and/or was not validated within the timeout limit (60 seconds).
PlayerSessionStatus,
PlayerSessionStatusPlayerSession.Builder ipAddress(String ipAddress)
The IP address of the game session. To connect to a 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 GameLift game server, an app needs both the IP
address and port number.PlayerSession.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.
PlayerSession.Builder port(Integer port)
Port number for the game session. To connect to a Amazon GameLift server process, an app needs both the IP address and port number.
port - Port number for the game session. To connect to a Amazon GameLift server process, an app needs both
the IP address and port number.PlayerSession.Builder playerData(String playerData)
Developer-defined information related to a player. GameLift does not use this data, so it can be formatted as needed for use in the game.
playerData - Developer-defined information related to a player. GameLift does not use this data, so it can be
formatted as needed for use in the game.Copyright © 2021. All rights reserved.