public CreateResourceRequest withRoleArn(String roleArn) {
        setRoleArn(roleArn);
        return this;
    }
<p>
The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role for Cloud Control API to use when
performing this resource operation. The role specified must have the permissions required for this operation. The
necessary permissions for each event handler are defined in the
<code> <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html#schema-properties-handlers">handlers</a> </code>
section of the <a
href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html">resource type
definition schema</a>.
</p>
<p>
If you do not specify a role, Cloud Control API uses a temporary session created using your Amazon Web Services
user credentials.
</p>
<p>
For more information, see <a href=
"https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations.html#resource-operations-permissions"
>Specifying credentials</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>.
</p>

@param roleArn
       The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role for Cloud Control API to
       use when performing this resource operation. The role specified must have the permissions required for
       this operation. The necessary permissions for each event handler are defined in the
       <code> <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html#schema-properties-handlers">handlers</a> </code>
       section of the <a
       href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html">resource
       type definition schema</a>.</p>
       <p>
       If you do not specify a role, Cloud Control API uses a temporary session created using your Amazon Web
       Services user credentials.
       </p>
       <p>
       For more information, see <a href=
       "https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations.html#resource-operations-permissions"
       >Specifying credentials</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudcontrolapi/src/main/java/com/amazonaws/services/cloudcontrolapi/model/CreateResourceRequest.java