@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GameSessionConnectionInfo extends Object implements Serializable, Cloneable, StructuredPojo
Connection information for the new game session that is created with matchmaking. (with StartMatchmaking). Once a match is set, the FlexMatch engine places the match and creates a new game session for it. This information, including the game session endpoint and player sessions for each player in the original matchmaking request, is added to the MatchmakingTicket, which can be retrieved by calling DescribeMatchmaking.
Constructor and Description |
---|
GameSessionConnectionInfo() |
Modifier and Type | Method and Description |
---|---|
GameSessionConnectionInfo |
clone() |
boolean |
equals(Object obj) |
String |
getDnsName()
DNS identifier assigned to the instance that is running the game session.
|
String |
getGameSessionArn()
Amazon Resource Name (ARN) that is assigned to a
game session and uniquely identifies it.
|
String |
getIpAddress()
IP address of the instance that is running the game session.
|
List<MatchedPlayerSession> |
getMatchedPlayerSessions()
A collection of player session IDs, one for each player ID that was included in the original matchmaking request.
|
Integer |
getPort()
Port number for the game session.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDnsName(String dnsName)
DNS identifier assigned to the instance that is running the game session.
|
void |
setGameSessionArn(String gameSessionArn)
Amazon Resource Name (ARN) that is assigned to a
game session and uniquely identifies it.
|
void |
setIpAddress(String ipAddress)
IP address of the instance that is running the game session.
|
void |
setMatchedPlayerSessions(Collection<MatchedPlayerSession> matchedPlayerSessions)
A collection of player session IDs, one for each player ID that was included in the original matchmaking request.
|
void |
setPort(Integer port)
Port number for the game session.
|
String |
toString()
Returns a string representation of this object.
|
GameSessionConnectionInfo |
withDnsName(String dnsName)
DNS identifier assigned to the instance that is running the game session.
|
GameSessionConnectionInfo |
withGameSessionArn(String gameSessionArn)
Amazon Resource Name (ARN) that is assigned to a
game session and uniquely identifies it.
|
GameSessionConnectionInfo |
withIpAddress(String ipAddress)
IP address of the instance that is running the game session.
|
GameSessionConnectionInfo |
withMatchedPlayerSessions(Collection<MatchedPlayerSession> matchedPlayerSessions)
A collection of player session IDs, one for each player ID that was included in the original matchmaking request.
|
GameSessionConnectionInfo |
withMatchedPlayerSessions(MatchedPlayerSession... matchedPlayerSessions)
A collection of player session IDs, one for each player ID that was included in the original matchmaking request.
|
GameSessionConnectionInfo |
withPort(Integer port)
Port number for the game session.
|
public void setGameSessionArn(String gameSessionArn)
Amazon Resource Name (ARN) that is assigned to a game session and uniquely identifies it.
gameSessionArn
- Amazon Resource Name (ARN) that is
assigned to a game session and uniquely identifies it.public String getGameSessionArn()
Amazon Resource Name (ARN) that is assigned to a game session and uniquely identifies it.
public GameSessionConnectionInfo withGameSessionArn(String gameSessionArn)
Amazon Resource Name (ARN) that is assigned to a game session and uniquely identifies it.
gameSessionArn
- Amazon Resource Name (ARN) that is
assigned to a game session and uniquely identifies it.public void setIpAddress(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.
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.public String getIpAddress()
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.
public GameSessionConnectionInfo withIpAddress(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.
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.public void setDnsName(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.
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.
public String getDnsName()
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 GameSessionConnectionInfo withDnsName(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.
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.
public void setPort(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.public Integer getPort()
Port number for the game session. To connect to a Amazon GameLift game server, an app needs both the IP address and port number.
public GameSessionConnectionInfo withPort(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.public List<MatchedPlayerSession> getMatchedPlayerSessions()
A collection of player session IDs, one for each player ID that was included in the original matchmaking request.
public void setMatchedPlayerSessions(Collection<MatchedPlayerSession> matchedPlayerSessions)
A collection of player session IDs, one for each player ID that was included in the original matchmaking request.
matchedPlayerSessions
- A collection of player session IDs, one for each player ID that was included in the original matchmaking
request.public GameSessionConnectionInfo withMatchedPlayerSessions(MatchedPlayerSession... matchedPlayerSessions)
A collection of player session IDs, one for each player ID that was included in the original matchmaking request.
NOTE: This method appends the values to the existing list (if any). Use
setMatchedPlayerSessions(java.util.Collection)
or
withMatchedPlayerSessions(java.util.Collection)
if you want to override the existing values.
matchedPlayerSessions
- A collection of player session IDs, one for each player ID that was included in the original matchmaking
request.public GameSessionConnectionInfo withMatchedPlayerSessions(Collection<MatchedPlayerSession> matchedPlayerSessions)
A collection of player session IDs, one for each player ID that was included in the original matchmaking request.
matchedPlayerSessions
- A collection of player session IDs, one for each player ID that was included in the original matchmaking
request.public String toString()
toString
in class Object
Object.toString()
public GameSessionConnectionInfo clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.