@SdkInternalApi
    final ListLakeFormationOptInsResult executeListLakeFormationOptIns(ListLakeFormationOptInsRequest listLakeFormationOptInsRequest) {

        ExecutionContext executionContext = createExecutionContext(listLakeFormationOptInsRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<ListLakeFormationOptInsRequest> request = null;
        Response<ListLakeFormationOptInsResult> response = null;

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

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

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

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Retrieve the current list of resources and principals that are opt in to enforce Lake Formation permissions.
</p>

@param listLakeFormationOptInsRequest
@return Result of the ListLakeFormationOptIns operation returned by the service.
@throws InvalidInputException
        The input provided was not valid.
@throws InternalServiceException
        An internal service error occurred.
@throws OperationTimeoutException
        The operation timed out.
@throws AccessDeniedException
        Access to a resource was denied.
@sample AWSLakeFormation.ListLakeFormationOptIns
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/ListLakeFormationOptIns"
     target="_top">AWS API Documentation</a>
aws-java-sdk-lakeformation/src/main/java/com/amazonaws/services/lakeformation/AWSLakeFormationClient.java