@SdkInternalApi
    final GetPersonalizedRankingResult executeGetPersonalizedRanking(GetPersonalizedRankingRequest getPersonalizedRankingRequest) {

        ExecutionContext executionContext = createExecutionContext(getPersonalizedRankingRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<GetPersonalizedRankingRequest> request = null;
        Response<GetPersonalizedRankingResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new GetPersonalizedRankingRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getPersonalizedRankingRequest));
                // 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, "Personalize Runtime");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetPersonalizedRanking");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

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

            HttpResponseHandler<AmazonWebServiceResponse<GetPersonalizedRankingResult>> responseHandler = protocolFactory.createResponseHandler(
                    new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
                    new GetPersonalizedRankingResultJsonUnmarshaller());
            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Re-ranks a list of recommended items for the given user. The first item in the list is deemed the most likely
item to be of interest to the user.
</p>
<note>
<p>
The solution backing the campaign must have been created using a recipe of type PERSONALIZED_RANKING.
</p>
</note>

@param getPersonalizedRankingRequest
@return Result of the GetPersonalizedRanking operation returned by the service.
@throws InvalidInputException
        Provide a valid value for the field or parameter.
@throws ResourceNotFoundException
        The specified resource does not exist.
@sample AmazonPersonalizeRuntime.GetPersonalizedRanking
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetPersonalizedRanking"
     target="_top">AWS API Documentation</a>
aws-java-sdk-personalizeruntime/src/main/java/com/amazonaws/services/personalizeruntime/AmazonPersonalizeRuntimeClient.java