public CreateApplicationRequest withRoleArn(String roleArn) {
        setRoleArn(roleArn);
        return this;
    }
<p>
The ARN of the role that the web application assumes when it interacts with Amazon Web Services IoT Core.
</p>
<note>
<p>
The name of the role must be in the form <code>AWSIotFleetHub_<i>random_string</i> </code>.
</p>
</note>

@param roleArn
       The ARN of the role that the web application assumes when it interacts with Amazon Web Services IoT
       Core.</p> <note>
       <p>
       The name of the role must be in the form <code>AWSIotFleetHub_<i>random_string</i> </code>.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iotfleethub/src/main/java/com/amazonaws/services/iotfleethub/model/CreateApplicationRequest.java