public CreateDetectorModelRequest withRoleArn(String roleArn) {
        setRoleArn(roleArn);
        return this;
    }
<p>
The ARN of the role that grants permission to AWS IoT Events to perform its operations.
</p>

@param roleArn
       The ARN of the role that grants permission to AWS IoT Events to perform its operations.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iotevents/src/main/java/com/amazonaws/services/iotevents/model/CreateDetectorModelRequest.java