public ListLineageGroupsResult withLineageGroupSummaries(LineageGroupSummary... lineageGroupSummaries) {
        if (this.lineageGroupSummaries == null) {
            setLineageGroupSummaries(new java.util.ArrayList<LineageGroupSummary>(lineageGroupSummaries.length));
        }
        for (LineageGroupSummary ele : lineageGroupSummaries) {
            this.lineageGroupSummaries.add(ele);
        }
        return this;
    }
<p>
A list of lineage groups and their properties.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setLineageGroupSummaries(java.util.Collection)} or
{@link #withLineageGroupSummaries(java.util.Collection)} if you want to override the existing values.
</p>

@param lineageGroupSummaries
       A list of lineage groups and their properties.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/ListLineageGroupsResult.java