@Generated(value="software.amazon.awssdk:codegen") public final class GameSessionPlacement extends Object implements SdkPojo, Serializable, ToCopyableBuilder<GameSessionPlacement.Builder,GameSessionPlacement>
Object that describes a StartGameSessionPlacement request. This object includes the full details of the original request plus the current status and start/end time stamps.
Game session placement-related operations include:
| Modifier and Type | Class and Description |
|---|---|
static interface |
GameSessionPlacement.Builder |
| Modifier and Type | Method and Description |
|---|---|
static GameSessionPlacement.Builder |
builder() |
String |
dnsName()
DNS identifier assigned to the instance that is running the game session.
|
Instant |
endTime()
Time stamp indicating when this request was completed, canceled, or timed out.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<GameProperty> |
gameProperties()
Set of custom properties for a game session, formatted as key:value pairs.
|
String |
gameSessionArn()
Identifier for the game session created by this placement request.
|
String |
gameSessionData()
Set of custom game session properties, formatted as a single string value.
|
String |
gameSessionId()
A unique identifier for the game session.
|
String |
gameSessionName()
A descriptive label that is associated with a game session.
|
String |
gameSessionQueueName()
A descriptive label that is associated with game session queue.
|
String |
gameSessionRegion()
Name of the Region where the game session created by this placement request is running.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasGameProperties()
Returns true if the GameProperties property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasPlacedPlayerSessions()
Returns true if the PlacedPlayerSessions property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasPlayerLatencies()
Returns true if the PlayerLatencies property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
String |
ipAddress()
IP address of the instance that is running the game session.
|
String |
matchmakerData()
Information on the matchmaking process for this game.
|
Integer |
maximumPlayerSessionCount()
The maximum number of players that can be connected simultaneously to the game session.
|
List<PlacedPlayerSession> |
placedPlayerSessions()
A collection of information on player sessions created in response to the game session placement request.
|
String |
placementId()
A unique identifier for a game session placement.
|
List<PlayerLatency> |
playerLatencies()
Set of values, expressed in milliseconds, indicating the amount of latency that a player experiences when
connected to AWS Regions.
|
Integer |
port()
Port number for the game session.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GameSessionPlacement.Builder> |
serializableBuilderClass() |
Instant |
startTime()
Time stamp indicating when this request was placed in the queue.
|
GameSessionPlacementState |
status()
Current status of the game session placement request.
|
String |
statusAsString()
Current status of the game session placement request.
|
GameSessionPlacement.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String placementId()
A unique identifier for a game session placement.
public final String gameSessionQueueName()
A descriptive label that is associated with game session queue. Queue names must be unique within each Region.
public final GameSessionPlacementState status()
Current status of the game session placement request.
PENDING -- The placement request is currently in the queue waiting to be processed.
FULFILLED -- A new game session and player sessions (if requested) have been successfully created. Values for GameSessionArn and GameSessionRegion are available.
CANCELLED -- The placement request was canceled with a call to StopGameSessionPlacement.
TIMED_OUT -- A new game session was not successfully created before the time limit expired. You can resubmit the placement request as needed.
FAILED -- GameLift is not able to complete the process of placing the game session. Common reasons are the game session terminated before the placement process was completed, or an unexpected internal error.
If the service returns an enum value that is not available in the current SDK version, status will
return GameSessionPlacementState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from statusAsString().
PENDING -- The placement request is currently in the queue waiting to be processed.
FULFILLED -- A new game session and player sessions (if requested) have been successfully created. Values for GameSessionArn and GameSessionRegion are available.
CANCELLED -- The placement request was canceled with a call to StopGameSessionPlacement.
TIMED_OUT -- A new game session was not successfully created before the time limit expired. You can resubmit the placement request as needed.
FAILED -- GameLift is not able to complete the process of placing the game session. Common reasons are the game session terminated before the placement process was completed, or an unexpected internal error.
GameSessionPlacementStatepublic final String statusAsString()
Current status of the game session placement request.
PENDING -- The placement request is currently in the queue waiting to be processed.
FULFILLED -- A new game session and player sessions (if requested) have been successfully created. Values for GameSessionArn and GameSessionRegion are available.
CANCELLED -- The placement request was canceled with a call to StopGameSessionPlacement.
TIMED_OUT -- A new game session was not successfully created before the time limit expired. You can resubmit the placement request as needed.
FAILED -- GameLift is not able to complete the process of placing the game session. Common reasons are the game session terminated before the placement process was completed, or an unexpected internal error.
If the service returns an enum value that is not available in the current SDK version, status will
return GameSessionPlacementState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from statusAsString().
PENDING -- The placement request is currently in the queue waiting to be processed.
FULFILLED -- A new game session and player sessions (if requested) have been successfully created. Values for GameSessionArn and GameSessionRegion are available.
CANCELLED -- The placement request was canceled with a call to StopGameSessionPlacement.
TIMED_OUT -- A new game session was not successfully created before the time limit expired. You can resubmit the placement request as needed.
FAILED -- GameLift is not able to complete the process of placing the game session. Common reasons are the game session terminated before the placement process was completed, or an unexpected internal error.
GameSessionPlacementStatepublic final boolean hasGameProperties()
public final List<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).
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasGameProperties() to see if a value was sent in this field.
public final Integer maximumPlayerSessionCount()
The maximum number of players that can be connected simultaneously to the game session.
public final String gameSessionName()
A descriptive label that is associated with a game session. Session names do not need to be unique.
public final String gameSessionId()
A unique identifier for the game session. This value is set once the new game session is placed (placement status
is FULFILLED).
FULFILLED).public final String gameSessionArn()
Identifier for the game session created by this placement request. This value is set once the new game session is
placed (placement status is FULFILLED). This identifier is unique across all Regions. You can use
this value as a GameSessionId value as needed.
FULFILLED). This identifier is unique across all
Regions. You can use this value as a GameSessionId value as needed.public final String gameSessionRegion()
Name of the Region where the game session created by this placement request is running. This value is set once
the new game session is placed (placement status is FULFILLED).
FULFILLED).public final boolean hasPlayerLatencies()
public final List<PlayerLatency> playerLatencies()
Set of values, expressed in milliseconds, indicating the amount of latency that a player experiences when connected to AWS Regions.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasPlayerLatencies() to see if a value was sent in this field.
public final Instant startTime()
Time stamp indicating when this request was placed in the queue. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").
public final Instant endTime()
Time stamp indicating when this request was completed, canceled, or timed out.
public final String ipAddress()
IP address of the instance that is running the game session. When connecting to a Amazon GameLift game server, a
client needs to reference an IP address (or DNS name) and port number. This value is set once the new game
session is placed (placement status is FULFILLED).
FULFILLED).public final String dnsName()
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.
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.
public final 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. This value is set once the new game session is placed (placement status is
FULFILLED).
FULFILLED).public final boolean hasPlacedPlayerSessions()
public final List<PlacedPlayerSession> placedPlayerSessions()
A collection of information on player sessions created in response to the game session placement request. These
player sessions are created only once a new game session is successfully placed (placement status is
FULFILLED). This information includes the player ID (as provided in the placement request) and the
corresponding player session ID. Retrieve full player sessions by calling DescribePlayerSessions with the
player session ID.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasPlacedPlayerSessions() to see if a value was sent in this field.
FULFILLED). This information includes the player ID (as provided in the placement
request) and the corresponding player session ID. Retrieve full player sessions by calling
DescribePlayerSessions with the player session ID.public final 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).
public final String matchmakerData()
Information on the matchmaking process for this game. Data is in JSON syntax, formatted as a string. It identifies the matchmaking configuration used to create the match, and contains data on all players assigned to the match, including player attributes and team assignments. For more details on matchmaker data, see Match Data.
public GameSessionPlacement.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<GameSessionPlacement.Builder,GameSessionPlacement>public static GameSessionPlacement.Builder builder()
public static Class<? extends GameSessionPlacement.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.