public UpdateManagedInstanceRoleRequest withIamRole(String iamRole) {
        setIamRole(iamRole);
        return this;
    }
<p>
The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM
role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal
<code>ssm.amazonaws.com</code>. For more information, see <a
href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-service-role.html">Create an IAM
service role for a hybrid and multicloud environment</a> in the <i>Amazon Web Services Systems Manager User
Guide</i>.
</p>
<note>
<p>
You can't specify an IAM service-linked role for this parameter. You must create a unique role.
</p>
</note>

@param iamRole
       The name of the Identity and Access Management (IAM) role that you want to assign to the managed node.
       This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service
       principal <code>ssm.amazonaws.com</code>. For more information, see <a
       href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-service-role.html">Create an IAM
       service role for a hybrid and multicloud environment</a> in the <i>Amazon Web Services Systems Manager
       User Guide</i>.</p> <note>
       <p>
       You can't specify an IAM service-linked role for this parameter. You must create a unique role.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/UpdateManagedInstanceRoleRequest.java