public ListPermissionGroupsResult withPermissionGroups(PermissionGroup... permissionGroups) {
        if (this.permissionGroups == null) {
            setPermissionGroups(new java.util.ArrayList<PermissionGroup>(permissionGroups.length));
        }
        for (PermissionGroup ele : permissionGroups) {
            this.permissionGroups.add(ele);
        }
        return this;
    }
<p>
A list of all the permission groups.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPermissionGroups(java.util.Collection)} or {@link #withPermissionGroups(java.util.Collection)} if you
want to override the existing values.
</p>

@param permissionGroups
       A list of all the permission groups.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-finspacedata/src/main/java/com/amazonaws/services/finspacedata/model/ListPermissionGroupsResult.java