public ConnectionPortRange withToPort(Integer toPort) {
        setToPort(toPort);
        return this;
    }
<p>
Ending value for the port. Port numbers are end-inclusive. This value must be equal to or greater than
<code>FromPort</code>.
</p>

@param toPort
       Ending value for the port. Port numbers are end-inclusive. This value must be equal to or greater than
       <code>FromPort</code>.
@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/ConnectionPortRange.java