public void setRoleArn(String roleArn) {
        this.roleArn = roleArn;
    }
<p>
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
</p>
<p>
If you're setting an event bus in another account as the target and that account granted permission to your
account through an organization instead of directly by the account ID, you must specify a <code>RoleArn</code>
with proper permissions in the <code>Target</code> structure, instead of here in this parameter.
</p>

@param roleArn
       The Amazon Resource Name (ARN) of the IAM role associated with the rule.</p>
       <p>
       If you're setting an event bus in another account as the target and that account granted permission to
       your account through an organization instead of directly by the account ID, you must specify a
       <code>RoleArn</code> with proper permissions in the <code>Target</code> structure, instead of here in this
       parameter.
aws-java-sdk-events/src/main/java/com/amazonaws/services/cloudwatchevents/model/PutRuleRequest.java