public UpdateFleetRequest withIamRoleArn(String iamRoleArn) {
        setIamRoleArn(iamRoleArn);
        return this;
    }
<p>
The Amazon Resource Name (ARN) of the IAM role to apply to the fleet. To assume a role, a fleet instance calls
the AWS Security Token Service (STS) <code>AssumeRole</code> API operation and passes the ARN of the role to use.
The operation creates a new session with temporary credentials. AppStream 2.0 retrieves the temporary credentials
and creates the <b>appstream_machine_role</b> credential profile on the instance.
</p>
<p>
For more information, see <a href=
"https://docs.aws.amazon.com/appstream2/latest/developerguide/using-iam-roles-to-grant-permissions-to-applications-scripts-streaming-instances.html"
>Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming
Instances</a> in the <i>Amazon AppStream 2.0 Administration Guide</i>.
</p>

@param iamRoleArn
       The Amazon Resource Name (ARN) of the IAM role to apply to the fleet. To assume a role, a fleet instance
       calls the AWS Security Token Service (STS) <code>AssumeRole</code> API operation and passes the ARN of the
       role to use. The operation creates a new session with temporary credentials. AppStream 2.0 retrieves the
       temporary credentials and creates the <b>appstream_machine_role</b> credential profile on the
       instance.</p>
       <p>
       For more information, see <a href=
       "https://docs.aws.amazon.com/appstream2/latest/developerguide/using-iam-roles-to-grant-permissions-to-applications-scripts-streaming-instances.html"
       >Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming
       Instances</a> in the <i>Amazon AppStream 2.0 Administration Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-appstream/src/main/java/com/amazonaws/services/appstream/model/UpdateFleetRequest.java