@SdkInternalApi
    final ListHealthEventsResult executeListHealthEvents(ListHealthEventsRequest listHealthEventsRequest) {

        ExecutionContext executionContext = createExecutionContext(listHealthEventsRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<ListHealthEventsRequest> request = null;
        Response<ListHealthEventsResult> response = null;

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

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

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

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Lists all health events for a monitor in Amazon CloudWatch Internet Monitor. Returns information for health
events including the event start and end times, and the status.
</p>
<note>
<p>
Health events that have start times during the time frame that is requested are not included in the list of
health events.
</p>
</note>

@param listHealthEventsRequest
@return Result of the ListHealthEvents operation returned by the service.
@throws InternalServerException
        An internal error occurred.
@throws AccessDeniedException
        You don't have sufficient permission to perform this action.
@throws ThrottlingException
        The request was denied due to request throttling.
@throws ValidationException
        Invalid request.
@sample AmazonInternetMonitor.ListHealthEvents
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/internetmonitor-2021-06-03/ListHealthEvents"
     target="_top">AWS API Documentation</a>
aws-java-sdk-internetmonitor/src/main/java/com/amazonaws/services/internetmonitor/AmazonInternetMonitorClient.java