public ListProtectionGroupsResult withProtectionGroups(ProtectionGroup... protectionGroups) {
        if (this.protectionGroups == null) {
            setProtectionGroups(new java.util.ArrayList<ProtectionGroup>(protectionGroups.length));
        }
        for (ProtectionGroup ele : protectionGroups) {
            this.protectionGroups.add(ele);
        }
        return this;
    }
<p/>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setProtectionGroups(java.util.Collection)} or {@link #withProtectionGroups(java.util.Collection)} if you
want to override the existing values.
</p>

@param protectionGroups
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-shield/src/main/java/com/amazonaws/services/shield/model/ListProtectionGroupsResult.java