@SdkInternalApi
    final UpdateRecommendationLifecycleResult executeUpdateRecommendationLifecycle(UpdateRecommendationLifecycleRequest updateRecommendationLifecycleRequest) {

        ExecutionContext executionContext = createExecutionContext(updateRecommendationLifecycleRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<UpdateRecommendationLifecycleRequest> request = null;
        Response<UpdateRecommendationLifecycleResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new UpdateRecommendationLifecycleRequestProtocolMarshaller(protocolFactory).marshall(super
                        .beforeMarshalling(updateRecommendationLifecycleRequest));
                // 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, "TrustedAdvisor");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateRecommendationLifecycle");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

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

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

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Update the lifecyle of a Recommendation. This API only supports prioritized recommendations.
</p>

@param updateRecommendationLifecycleRequest
@return Result of the UpdateRecommendationLifecycle operation returned by the service.
@throws AccessDeniedException
        Exception that access has been denied due to insufficient access
@throws ConflictException
        Exception that the request was denied due to conflictions in state
@throws InternalServerException
        Exception to notify that an unexpected internal error occurred during processing of the request
@throws ValidationException
        Exception that the request failed to satisfy service constraints
@throws ResourceNotFoundException
        Exception that the requested resource has not been found
@throws ThrottlingException
        Exception to notify that requests are being throttled
@sample AWSTrustedAdvisor.UpdateRecommendationLifecycle
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/trustedadvisor-2022-09-15/UpdateRecommendationLifecycle"
     target="_top">AWS API Documentation</a>
aws-java-sdk-trustedadvisor/src/main/java/com/amazonaws/services/trustedadvisor/AWSTrustedAdvisorClient.java