public AppInstanceUserMembershipSummary withType(ChannelMembershipType type) {
        this.type = type.toString();
        return this;
    }
<p>
The type of <code>ChannelMembership</code>.
</p>

@param type
       The type of <code>ChannelMembership</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see ChannelMembershipType
aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/AppInstanceUserMembershipSummary.java