public BatchChannelMemberships withType(String type) {
        setType(type);
        return this;
    }
<p>
The membership types set for the channel users.
</p>

@param type
       The membership types set for the channel users.
@return Returns a reference to this object so that method calls can be chained together.
@see ChannelMembershipType
aws-java-sdk-chime/src/main/java/com/amazonaws/services/chime/model/BatchChannelMemberships.java