public CreateFleetRequest withInstanceRoleCredentialsProvider(InstanceRoleCredentialsProvider instanceRoleCredentialsProvider) {
        this.instanceRoleCredentialsProvider = instanceRoleCredentialsProvider.toString();
        return this;
    }
<p>
Prompts Amazon GameLift to generate a shared credentials file for the IAM role that's defined in
<code>InstanceRoleArn</code>. The shared credentials file is stored on each fleet instance and refreshed as
needed. Use shared credentials for applications that are deployed along with the game server executable, if the
game server is integrated with server SDK version 5.x. For more information about using shared credentials, 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>.
</p>

@param instanceRoleCredentialsProvider
       Prompts Amazon GameLift to generate a shared credentials file for the IAM role that's defined in
       <code>InstanceRoleArn</code>. The shared credentials file is stored on each fleet instance and refreshed
       as needed. Use shared credentials for applications that are deployed along with the game server
       executable, if the game server is integrated with server SDK version 5.x. For more information about using
       shared credentials, 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>.
@return Returns a reference to this object so that method calls can be chained together.
@see InstanceRoleCredentialsProvider
aws-java-sdk-gamelift/src/main/java/com/amazonaws/services/gamelift/model/CreateFleetRequest.java