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 CreatePlayerSessionsResultclone()booleanequals(Object obj)List<PlayerSession>getPlayerSessions()Collection of player session objects created for the added players.inthashCode()voidsetPlayerSessions(Collection<PlayerSession> playerSessions)Collection of player session objects created for the added players.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreatePlayerSessionsResultwithPlayerSessions(PlayerSession... playerSessions)Collection of player session objects created for the added players.CreatePlayerSessionsResultwithPlayerSessions(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreatePlayerSessionsResult clone()
-
-