public UpdateRoomMembershipRequest withRole(RoomMembershipRole role) {
        this.role = role.toString();
        return this;
    }
<p>
The role of the member.
</p>

@param role
       The role of the member.
@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/UpdateRoomMembershipRequest.java