public void setRole(String role) {
        this.role = role;
    }
<p>
The role that the message plays in the message.
</p>

@param role
       The role that the message plays in the message.
@see ConversationRole
aws-java-sdk-bedrockruntime/src/main/java/com/amazonaws/services/bedrockruntime/model/Message.java