public UpdateGroupRequest withRoleArn(String roleArn) {
        setRoleArn(roleArn);
        return this;
    }
<p>
The new role Amazon Resource Name (ARN) for the group. This is used for setting the <code>cognito:roles</code>
and <code>cognito:preferred_role</code> claims in the token.
</p>

@param roleArn
       The new role Amazon Resource Name (ARN) for the group. This is used for setting the
       <code>cognito:roles</code> and <code>cognito:preferred_role</code> claims in the token.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/UpdateGroupRequest.java