public AnalysisPacketHeader withDestinationPortRanges(PortRange... destinationPortRanges) {
        if (this.destinationPortRanges == null) {
            setDestinationPortRanges(new com.amazonaws.internal.SdkInternalList<PortRange>(destinationPortRanges.length));
        }
        for (PortRange ele : destinationPortRanges) {
            this.destinationPortRanges.add(ele);
        }
        return this;
    }
<p>
The destination port ranges.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDestinationPortRanges(java.util.Collection)} or
{@link #withDestinationPortRanges(java.util.Collection)} if you want to override the existing values.
</p>

@param destinationPortRanges
       The destination port ranges.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/AnalysisPacketHeader.java