public NetworkPathComponentDetails withPortRanges(java.util.Collection<PortRange> portRanges) {
        setPortRanges(portRanges);
        return this;
    }
<p>
A list of port ranges for the destination.
</p>

@param portRanges
       A list of port ranges for the destination.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/NetworkPathComponentDetails.java