public ListMembershipsResult withMembershipSummaries(MembershipSummary... membershipSummaries) {
        if (this.membershipSummaries == null) {
            setMembershipSummaries(new java.util.ArrayList<MembershipSummary>(membershipSummaries.length));
        }
        for (MembershipSummary ele : membershipSummaries) {
            this.membershipSummaries.add(ele);
        }
        return this;
    }
<p>
The list of memberships returned from the ListMemberships operation.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setMembershipSummaries(java.util.Collection)} or {@link #withMembershipSummaries(java.util.Collection)}
if you want to override the existing values.
</p>

@param membershipSummaries
       The list of memberships returned from the ListMemberships operation.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cleanrooms/src/main/java/com/amazonaws/services/cleanrooms/model/ListMembershipsResult.java