Class CreatePlayerSessionsResult
- java.lang.Object
-
- com.amazonaws.services.gamelift.model.CreatePlayerSessionsResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class CreatePlayerSessionsResult extends Object implements Serializable, Cloneable
Represents the returned data in response to a request action.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CreatePlayerSessionsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreatePlayerSessionsResult
clone()
boolean
equals(Object obj)
List<PlayerSession>
getPlayerSessions()
Collection of player session objects created for the added players.int
hashCode()
void
setPlayerSessions(Collection<PlayerSession> playerSessions)
Collection of player session objects created for the added players.String
toString()
Returns a string representation of this object; useful for testing and debugging.CreatePlayerSessionsResult
withPlayerSessions(PlayerSession... playerSessions)
Collection of player session objects created for the added players.CreatePlayerSessionsResult
withPlayerSessions(Collection<PlayerSession> playerSessions)
Collection of player session objects created for the added players.
-
-
-
Method Detail
-
getPlayerSessions
public List<PlayerSession> getPlayerSessions()
Collection of player session objects created for the added players.
- Returns:
- Collection of player session objects created for the added players.
-
setPlayerSessions
public void setPlayerSessions(Collection<PlayerSession> playerSessions)
Collection of player session objects created for the added players.
- Parameters:
playerSessions
- Collection of player session objects created for the added players.
-
withPlayerSessions
public CreatePlayerSessionsResult withPlayerSessions(PlayerSession... playerSessions)
Collection of player session objects created for the added players.
NOTE: This method appends the values to the existing list (if any). Use
setPlayerSessions(java.util.Collection)
orwithPlayerSessions(java.util.Collection)
if you want to override the existing values.- Parameters:
playerSessions
- Collection of player session objects created for the added players.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withPlayerSessions
public CreatePlayerSessionsResult withPlayerSessions(Collection<PlayerSession> playerSessions)
Collection of player session objects created for the added players.
- Parameters:
playerSessions
- Collection of player session objects created for the added players.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreatePlayerSessionsResult clone()
-
-