public Session withRole(String role) {
        setRole(role);
        return this;
    }
<p>
The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.
</p>

@param role
       The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-glue/src/main/java/com/amazonaws/services/glue/model/Session.java