@Generated(value="software.amazon.awssdk:codegen") public final class GameServer extends Object implements SdkPojo, Serializable, ToCopyableBuilder<GameServer.Builder,GameServer>
This data type is part of Amazon GameLift FleetIQ with game server groups, which is in preview release and is subject to change.
Properties describing a game server resource.
A game server resource is created by a successful call to RegisterGameServer and deleted by calling DeregisterGameServer.
| Modifier and Type | Class and Description |
|---|---|
static interface |
GameServer.Builder |
| Modifier and Type | Method and Description |
|---|---|
static GameServer.Builder |
builder() |
GameServerClaimStatus |
claimStatus()
Indicates when an available game server has been reserved but has not yet started hosting a game.
|
String |
claimStatusAsString()
Indicates when an available game server has been reserved but has not yet started hosting a game.
|
String |
connectionInfo()
The port and IP address that must be used to establish a client connection to the game server.
|
String |
customSortKey()
A game server tag that can be used to request sorted lists of game servers when calling ListGameServers.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
gameServerData()
A set of custom game server properties, formatted as a single string value.
|
String |
gameServerGroupArn()
The ARN identifier for the game server group where the game server is located.
|
String |
gameServerGroupName()
The name identifier for the game server group where the game server is located.
|
String |
gameServerId()
A custom string that uniquely identifies the game server.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
instanceId()
The unique identifier for the instance where the game server is located.
|
Instant |
lastClaimTime()
Time stamp indicating the last time the game server was claimed with a ClaimGameServer request.
|
Instant |
lastHealthCheckTime()
Time stamp indicating the last time the game server was updated with health status using an
UpdateGameServer request.
|
Instant |
registrationTime()
Time stamp indicating when the game server resource was created with a RegisterGameServer request.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GameServer.Builder> |
serializableBuilderClass() |
GameServer.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
GameServerUtilizationStatus |
utilizationStatus()
Indicates whether the game server is currently available for new games or is busy.
|
String |
utilizationStatusAsString()
Indicates whether the game server is currently available for new games or is busy.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String gameServerGroupName()
The name identifier for the game server group where the game server is located.
public String gameServerGroupArn()
The ARN identifier for the game server group where the game server is located.
public String gameServerId()
A custom string that uniquely identifies the game server. Game server IDs are developer-defined and are unique across all game server groups in an AWS account.
public String instanceId()
The unique identifier for the instance where the game server is located.
public String connectionInfo()
The port and IP address that must be used to establish a client connection to the game server.
public String gameServerData()
A set of custom game server properties, formatted as a single string value. This data is passed to a game client or service in response to requests ListGameServers or ClaimGameServer. This property can be updated using UpdateGameServer.
public String customSortKey()
A game server tag that can be used to request sorted lists of game servers when calling ListGameServers. Custom sort keys are developer-defined. This property can be updated using UpdateGameServer.
public GameServerClaimStatus claimStatus()
Indicates when an available game server has been reserved but has not yet started hosting a game. Once it is claimed, game server remains in CLAIMED status for a maximum of one minute. During this time, game clients must connect to the game server and start the game, which triggers the game server to update its utilization status. After one minute, the game server claim status reverts to null.
If the service returns an enum value that is not available in the current SDK version, claimStatus will
return GameServerClaimStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from claimStatusAsString().
GameServerClaimStatuspublic String claimStatusAsString()
Indicates when an available game server has been reserved but has not yet started hosting a game. Once it is claimed, game server remains in CLAIMED status for a maximum of one minute. During this time, game clients must connect to the game server and start the game, which triggers the game server to update its utilization status. After one minute, the game server claim status reverts to null.
If the service returns an enum value that is not available in the current SDK version, claimStatus will
return GameServerClaimStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from claimStatusAsString().
GameServerClaimStatuspublic GameServerUtilizationStatus utilizationStatus()
Indicates whether the game server is currently available for new games or is busy. Possible statuses include:
AVAILABLE - The game server is available to be claimed. A game server that has been claimed remains in this status until it reports game hosting activity.
IN_USE - The game server is currently hosting a game session with players.
If the service returns an enum value that is not available in the current SDK version, utilizationStatus
will return GameServerUtilizationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from utilizationStatusAsString().
AVAILABLE - The game server is available to be claimed. A game server that has been claimed remains in this status until it reports game hosting activity.
IN_USE - The game server is currently hosting a game session with players.
GameServerUtilizationStatuspublic String utilizationStatusAsString()
Indicates whether the game server is currently available for new games or is busy. Possible statuses include:
AVAILABLE - The game server is available to be claimed. A game server that has been claimed remains in this status until it reports game hosting activity.
IN_USE - The game server is currently hosting a game session with players.
If the service returns an enum value that is not available in the current SDK version, utilizationStatus
will return GameServerUtilizationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from utilizationStatusAsString().
AVAILABLE - The game server is available to be claimed. A game server that has been claimed remains in this status until it reports game hosting activity.
IN_USE - The game server is currently hosting a game session with players.
GameServerUtilizationStatuspublic Instant registrationTime()
Time stamp indicating when the game server resource was created with a RegisterGameServer request. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").
public Instant lastClaimTime()
Time stamp indicating the last time the game server was claimed with a ClaimGameServer request. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057"). This value is used to calculate when the game server's claim status.
public Instant lastHealthCheckTime()
Time stamp indicating the last time the game server was updated with health status using an UpdateGameServer request. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057"). After game server registration, this property is only changed when a game server update specifies a health check value.
public GameServer.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<GameServer.Builder,GameServer>public static GameServer.Builder builder()
public static Class<? extends GameServer.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.