public CustomRoutingListener withPortRanges(java.util.Collection<PortRange> portRanges) {
        setPortRanges(portRanges);
        return this;
    }
<p>
The port range to support for connections from clients to your accelerator.
</p>
<p>
Separately, you set port ranges for endpoints. For more information, see <a
href="https://docs.aws.amazon.com/global-accelerator/latest/dg/about-custom-routing-endpoints.html">About
endpoints for custom routing accelerators</a>.
</p>

@param portRanges
       The port range to support for connections from clients to your accelerator.</p>
       <p>
       Separately, you set port ranges for endpoints. For more information, see <a
       href="https://docs.aws.amazon.com/global-accelerator/latest/dg/about-custom-routing-endpoints.html">About
       endpoints for custom routing accelerators</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-globalaccelerator/src/main/java/com/amazonaws/services/globalaccelerator/model/CustomRoutingListener.java