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:
  • Constructor Details

    • CreatePlayerSessionsResult

      public CreatePlayerSessionsResult()
  • Method Details

    • 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) or withPlayerSessions(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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      Overrides:
      clone in class Object