public CreateFleetRequest withInstanceRoleArn(String instanceRoleArn) {
        setInstanceRoleArn(instanceRoleArn);
        return this;
    }
<p>
A unique identifier for an IAM role with access permissions to other Amazon Web Services services. Any
application that runs on an instance in the fleet--including install scripts, server processes, and other
processes--can use these permissions to interact with Amazon Web Services resources that you own or have access
to. For more information about using the role with your game server builds, see <a
href="https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-resources.html"> Communicate
with other Amazon Web Services resources from your fleets</a>. This fleet property can't be changed after the
fleet is created.
</p>

@param instanceRoleArn
       A unique identifier for an IAM role with access permissions to other Amazon Web Services services. Any
       application that runs on an instance in the fleet--including install scripts, server processes, and other
       processes--can use these permissions to interact with Amazon Web Services resources that you own or have
       access to. For more information about using the role with your game server builds, see <a
       href="https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-resources.html">
       Communicate with other Amazon Web Services resources from your fleets</a>. This fleet property can't be
       changed after the fleet is created.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-gamelift/src/main/java/com/amazonaws/services/gamelift/model/CreateFleetRequest.java