Class CreateGameSessionRequest

    • Constructor Detail

      • CreateGameSessionRequest

        public CreateGameSessionRequest()
    • Method Detail

      • setFleetId

        public void setFleetId​(String fleetId)

        Unique identifier for a fleet. Each request must reference either a fleet ID or alias ID, but not both.

        Parameters:
        fleetId - Unique identifier for a fleet. Each request must reference either a fleet ID or alias ID, but not both.
      • getFleetId

        public String getFleetId()

        Unique identifier for a fleet. Each request must reference either a fleet ID or alias ID, but not both.

        Returns:
        Unique identifier for a fleet. Each request must reference either a fleet ID or alias ID, but not both.
      • withFleetId

        public CreateGameSessionRequest withFleetId​(String fleetId)

        Unique identifier for a fleet. Each request must reference either a fleet ID or alias ID, but not both.

        Parameters:
        fleetId - Unique identifier for a fleet. Each request must reference either a fleet ID or alias ID, but not both.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setAliasId

        public void setAliasId​(String aliasId)

        Unique identifier for a fleet alias. Each request must reference either a fleet ID or alias ID, but not both.

        Parameters:
        aliasId - Unique identifier for a fleet alias. Each request must reference either a fleet ID or alias ID, but not both.
      • getAliasId

        public String getAliasId()

        Unique identifier for a fleet alias. Each request must reference either a fleet ID or alias ID, but not both.

        Returns:
        Unique identifier for a fleet alias. Each request must reference either a fleet ID or alias ID, but not both.
      • withAliasId

        public CreateGameSessionRequest withAliasId​(String aliasId)

        Unique identifier for a fleet alias. Each request must reference either a fleet ID or alias ID, but not both.

        Parameters:
        aliasId - Unique identifier for a fleet alias. Each request must reference either a fleet ID or alias ID, but not both.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setMaximumPlayerSessionCount

        public void setMaximumPlayerSessionCount​(Integer maximumPlayerSessionCount)

        Maximum number of players that can be connected simultaneously to the game session.

        Parameters:
        maximumPlayerSessionCount - Maximum number of players that can be connected simultaneously to the game session.
      • getMaximumPlayerSessionCount

        public Integer getMaximumPlayerSessionCount()

        Maximum number of players that can be connected simultaneously to the game session.

        Returns:
        Maximum number of players that can be connected simultaneously to the game session.
      • withMaximumPlayerSessionCount

        public CreateGameSessionRequest withMaximumPlayerSessionCount​(Integer maximumPlayerSessionCount)

        Maximum number of players that can be connected simultaneously to the game session.

        Parameters:
        maximumPlayerSessionCount - Maximum number of players that can be connected simultaneously to the game session.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setName

        public void setName​(String name)

        Descriptive label associated with this game session. Session names do not need to be unique.

        Parameters:
        name - Descriptive label associated with this game session. Session names do not need to be unique.
      • getName

        public String getName()

        Descriptive label associated with this game session. Session names do not need to be unique.

        Returns:
        Descriptive label associated with this game session. Session names do not need to be unique.
      • withName

        public CreateGameSessionRequest withName​(String name)

        Descriptive label associated with this game session. Session names do not need to be unique.

        Parameters:
        name - Descriptive label associated with this game session. Session names do not need to be unique.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getGameProperties

        public List<GameProperty> getGameProperties()

        Set of properties used to administer a game session. These properties are passed to your game server.

        Returns:
        Set of properties used to administer a game session. These properties are passed to your game server.
      • setGameProperties

        public void setGameProperties​(Collection<GameProperty> gameProperties)

        Set of properties used to administer a game session. These properties are passed to your game server.

        Parameters:
        gameProperties - Set of properties used to administer a game session. These properties are passed to your game server.
      • withGameProperties

        public CreateGameSessionRequest withGameProperties​(GameProperty... gameProperties)

        Set of properties used to administer a game session. These properties are passed to your game server.

        NOTE: This method appends the values to the existing list (if any). Use setGameProperties(java.util.Collection) or withGameProperties(java.util.Collection) if you want to override the existing values.

        Parameters:
        gameProperties - Set of properties used to administer a game session. These properties are passed to your game server.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withGameProperties

        public CreateGameSessionRequest withGameProperties​(Collection<GameProperty> gameProperties)

        Set of properties used to administer a game session. These properties are passed to your game server.

        Parameters:
        gameProperties - Set of properties used to administer a game session. These properties are passed to your game server.
        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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object