public ListDatasetGroupsResult withDatasetGroups(DatasetGroupSummary... datasetGroups) {
        if (this.datasetGroups == null) {
            setDatasetGroups(new java.util.ArrayList<DatasetGroupSummary>(datasetGroups.length));
        }
        for (DatasetGroupSummary ele : datasetGroups) {
            this.datasetGroups.add(ele);
        }
        return this;
    }
<p>
The list of your dataset groups.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDatasetGroups(java.util.Collection)} or {@link #withDatasetGroups(java.util.Collection)} if you want
to override the existing values.
</p>

@param datasetGroups
       The list of your dataset groups.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-personalize/src/main/java/com/amazonaws/services/personalize/model/ListDatasetGroupsResult.java