@SdkInternalApi
    final ListInvestigationsResult executeListInvestigations(ListInvestigationsRequest listInvestigationsRequest) {

        ExecutionContext executionContext = createExecutionContext(listInvestigationsRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<ListInvestigationsRequest> request = null;
        Response<ListInvestigationsResult> response = null;

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

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

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

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Detective investigations lets you investigate IAM users and IAM roles using indicators of compromise. An
indicator of compromise (IOC) is an artifact observed in or on a network, system, or environment that can (with a
high level of confidence) identify malicious activity or a security incident. <code>ListInvestigations</code>
lists all active Detective investigations.
</p>

@param listInvestigationsRequest
@return Result of the ListInvestigations operation returned by the service.
@throws AccessDeniedException
        The request issuer does not have permission to access this resource or perform this operation.
@throws InternalServerException
        The request was valid but failed because of a problem with the service.
@throws ValidationException
        The request parameters are invalid.
@throws ResourceNotFoundException
        The request refers to a nonexistent resource.
@throws TooManyRequestsException
        The request cannot be completed because too many other requests are occurring at the same time.
@sample AmazonDetective.ListInvestigations
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/ListInvestigations" target="_top">AWS
     API Documentation</a>
aws-java-sdk-detective/src/main/java/com/amazonaws/services/detective/AmazonDetectiveClient.java