public DescribeParameterGroupsResult withParameterGroups(ParameterGroup... parameterGroups) {
        if (this.parameterGroups == null) {
            setParameterGroups(new java.util.ArrayList<ParameterGroup>(parameterGroups.length));
        }
        for (ParameterGroup ele : parameterGroups) {
            this.parameterGroups.add(ele);
        }
        return this;
    }
<p>
A list of parameter groups. Each element in the list contains detailed information about one parameter group.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setParameterGroups(java.util.Collection)} or {@link #withParameterGroups(java.util.Collection)} if you
want to override the existing values.
</p>

@param parameterGroups
       A list of parameter groups. Each element in the list contains detailed information about one parameter
       group.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-memorydb/src/main/java/com/amazonaws/services/memorydb/model/DescribeParameterGroupsResult.java