public CreateStreamRequest withRoleArn(String roleArn) {
        setRoleArn(roleArn);
        return this;
    }
<p>
An IAM role that allows the IoT service principal to access your S3 files.
</p>

@param roleArn
       An IAM role that allows the IoT service principal to access your S3 files.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/CreateStreamRequest.java