@SdkInternalApi
    final RestoreSnapshotTierResult executeRestoreSnapshotTier(RestoreSnapshotTierRequest restoreSnapshotTierRequest) {

        ExecutionContext executionContext = createExecutionContext(restoreSnapshotTierRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<RestoreSnapshotTierRequest> request = null;
        Response<RestoreSnapshotTierResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new RestoreSnapshotTierRequestMarshaller().marshall(super.beforeMarshalling(restoreSnapshotTierRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
                request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
                request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
                request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
                request.addHandlerContext(HandlerContextKey.SERVICE_ID, "EC2");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RestoreSnapshotTier");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

            } finally {
                awsRequestMetrics.endEvent(Field.RequestMarshallTime);
            }

            StaxResponseHandler<RestoreSnapshotTierResult> responseHandler = new StaxResponseHandler<RestoreSnapshotTierResult>(
                    new RestoreSnapshotTierResultStaxUnmarshaller());

            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Restores an archived Amazon EBS snapshot for use temporarily or permanently, or modifies the restore period or
restore type for a snapshot that was previously temporarily restored.
</p>
<p>
For more information see <a href=
"https://docs.aws.amazon.com/ebs/latest/userguide/working-with-snapshot-archiving.html#restore-archived-snapshot"
> Restore an archived snapshot</a> and <a href=
"https://docs.aws.amazon.com/ebs/latest/userguide/working-with-snapshot-archiving.html#modify-temp-restore-period"
> modify the restore period or restore type for a temporarily restored snapshot</a> in the <i>Amazon EBS User
Guide</i>.
</p>

@param restoreSnapshotTierRequest
@return Result of the RestoreSnapshotTier operation returned by the service.
@sample AmazonEC2.RestoreSnapshotTier
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreSnapshotTier" target="_top">AWS API
     Documentation</a>
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2Client.java