public RoomMembership withRole(String role) {
        setRole(role);
        return this;
    }
<p>
The membership role.
</p>

@param role
       The membership role.
@return Returns a reference to this object so that method calls can be chained together.
@see RoomMembershipRole
aws-java-sdk-chime/src/main/java/com/amazonaws/services/chime/model/RoomMembership.java