public void setPortRanges(java.util.Collection<PortRange> portRanges) {
        if (portRanges == null) {
            this.portRanges = null;
            return;
        }

        this.portRanges = new java.util.ArrayList<PortRange>(portRanges);
    }
<p>
The list of port ranges for the connections from clients to the accelerator.
</p>

@param portRanges
       The list of port ranges for the connections from clients to the accelerator.
aws-java-sdk-globalaccelerator/src/main/java/com/amazonaws/services/globalaccelerator/model/Listener.java