@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 |
getGameSessionArn()
Amazon Resource Name (ARN) that
is assigned to a game session and uniquely identifies it.
|
String |
getIpAddress()
IP address of the game session.
|
List<MatchedPlayerSession> |
getMatchedPlayerSessions()
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 |
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 game session.
|
void |
setMatchedPlayerSessions(Collection<MatchedPlayerSession> matchedPlayerSessions)
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; useful for testing and debugging.
|
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 game session.
|
GameSessionConnectionInfo |
withMatchedPlayerSessions(Collection<MatchedPlayerSession> matchedPlayerSessions)
Collection of player session IDs, one for each player ID that was included in the original matchmaking request.
|
GameSessionConnectionInfo |
withMatchedPlayerSessions(MatchedPlayerSession... matchedPlayerSessions)
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 game session. To connect to a Amazon GameLift game server, an app needs both the IP address and port number.
ipAddress
- IP address of the game session. To connect to a Amazon GameLift game server, an app needs both the IP
address and port number.public String getIpAddress()
IP address of the game session. To connect to a Amazon GameLift game server, an app needs both the IP address and port number.
public GameSessionConnectionInfo withIpAddress(String ipAddress)
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
- IP address of the game session. To connect to a Amazon GameLift game server, an app needs both the IP
address and port number.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()
Collection of player session IDs, one for each player ID that was included in the original matchmaking request.
public void setMatchedPlayerSessions(Collection<MatchedPlayerSession> matchedPlayerSessions)
Collection of player session IDs, one for each player ID that was included in the original matchmaking request.
matchedPlayerSessions
- Collection of player session IDs, one for each player ID that was included in the original matchmaking
request.public GameSessionConnectionInfo withMatchedPlayerSessions(MatchedPlayerSession... matchedPlayerSessions)
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
- Collection of player session IDs, one for each player ID that was included in the original matchmaking
request.public GameSessionConnectionInfo withMatchedPlayerSessions(Collection<MatchedPlayerSession> matchedPlayerSessions)
Collection of player session IDs, one for each player ID that was included in the original matchmaking request.
matchedPlayerSessions
- 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.