public ListChannelMembershipsForAppInstanceUserResult withChannelMemberships(ChannelMembershipForAppInstanceUserSummary... channelMemberships) {
        if (this.channelMemberships == null) {
            setChannelMemberships(new java.util.ArrayList<ChannelMembershipForAppInstanceUserSummary>(channelMemberships.length));
        }
        for (ChannelMembershipForAppInstanceUserSummary ele : channelMemberships) {
            this.channelMemberships.add(ele);
        }
        return this;
    }
<p>
The information for the requested channel memberships.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setChannelMemberships(java.util.Collection)} or {@link #withChannelMemberships(java.util.Collection)} if
you want to override the existing values.
</p>

@param channelMemberships
       The information for the requested channel memberships.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-chime/src/main/java/com/amazonaws/services/chime/model/ListChannelMembershipsForAppInstanceUserResult.java