public PlayerSession withPort(Integer port) {
        setPort(port);
        return this;
    }
<p>
Port number for the game session. To connect to a Amazon GameLift server process, an app needs both the IP
address and port number.
</p>

@param port
       Port number for the game session. To connect to a Amazon GameLift server process, an app needs both the IP
       address and port number.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-gamelift/src/main/java/com/amazonaws/services/gamelift/model/PlayerSession.java