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

        this.portRanges = new java.util.ArrayList<PortRange>(portRanges);
    }
<p>
A list of port ranges for the destination.
</p>

@param portRanges
       A list of port ranges for the destination.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/NetworkPathComponentDetails.java