public FilterPortRange withToPort(Integer toPort) {
        setToPort(toPort);
        return this;
    }
<p>
The last port in the range.
</p>

@param toPort
       The last port in the range.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/FilterPortRange.java