@Override
    public GetInstanceAccessResult getInstanceAccess(GetInstanceAccessRequest request) {
        request = beforeClientExecution(request);
        return executeGetInstanceAccess(request);
    }
<p>
Requests authorization to remotely connect to an instance in an Amazon GameLift managed fleet. Use this operation
to connect to instances with game servers that use Amazon GameLift server SDK 4.x or earlier. To connect to
instances with game servers that use server SDK 5.x or later, call <a>GetComputeAccess</a>.
</p>
<p>
To request access to an instance, specify IDs for the instance and the fleet it belongs to. You can retrieve
instance IDs for a fleet by calling <a
href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeInstances.html">DescribeInstances</a>
with the fleet ID.
</p>
<p>
If successful, this operation returns an IP address and credentials. The returned credentials match the operating
system of the instance, as follows:
</p>
<ul>
<li>
<p>
For a Windows instance: returns a user name and secret (password) for use with a Windows Remote Desktop client.
</p>
</li>
<li>
<p>
For a Linux instance: returns a user name and secret (RSA private key) for use with an SSH client. You must save
the secret to a <code>.pem</code> file. If you're using the CLI, see the example <a href=
"https://docs.aws.amazon.com/gamelift/latest/apireference/API_GetInstanceAccess.html#API_GetInstanceAccess_Examples"
> Get credentials for a Linux instance</a> for tips on automatically saving the secret to a <code>.pem</code>
file.
</p>
</li>
</ul>
<p>
<b>Learn more</b>
</p>
<p>
<a href="https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-remote-access.html">Remotely connect
to fleet instances</a>
</p>
<p>
<a href="https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-creating-debug.html">Debug fleet
issues</a>
</p>
<p>
<b>Related actions</b>
</p>
<p>
<a href=
"https://docs.aws.amazon.com/gamelift/latest/developerguide/reference-awssdk.html#reference-awssdk-resources-fleets"
>All APIs by task</a>
</p>

@param getInstanceAccessRequest
@return Result of the GetInstanceAccess operation returned by the service.
@throws UnauthorizedException
        The client failed authentication. Clients should not retry such requests.
@throws InvalidRequestException
        One or more parameter values in the request are invalid. Correct the invalid parameter values before
        retrying.
@throws NotFoundException
        THe requested resources was not found. The resource was either not created yet or deleted.
@throws InternalServiceException
        The service encountered an unrecoverable internal failure while processing the request. Clients can retry
        such requests immediately or after a waiting period.
@sample AmazonGameLift.GetInstanceAccess
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/GetInstanceAccess" target="_top">AWS API
     Documentation</a>
aws-java-sdk-gamelift/src/main/java/com/amazonaws/services/gamelift/AmazonGameLiftClient.java