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

        this.sourcePortRanges = new com.amazonaws.internal.SdkInternalList<PortRange>(sourcePortRanges);
    }
<p>
The source port ranges.
</p>

@param sourcePortRanges
       The source port ranges.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/AnalysisPacketHeader.java