@SdkInternalApi
    final ListManagedInsightRulesResult executeListManagedInsightRules(ListManagedInsightRulesRequest listManagedInsightRulesRequest) {

        ExecutionContext executionContext = createExecutionContext(listManagedInsightRulesRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<ListManagedInsightRulesRequest> request = null;
        Response<ListManagedInsightRulesResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new ListManagedInsightRulesRequestMarshaller().marshall(super.beforeMarshalling(listManagedInsightRulesRequest));
                // 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, "CloudWatch");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListManagedInsightRules");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

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

            StaxResponseHandler<ListManagedInsightRulesResult> responseHandler = new StaxResponseHandler<ListManagedInsightRulesResult>(
                    new ListManagedInsightRulesResultStaxUnmarshaller());

            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Returns a list that contains the number of managed Contributor Insights rules in your account.
</p>

@param listManagedInsightRulesRequest
@return Result of the ListManagedInsightRules operation returned by the service.
@throws InvalidParameterValueException
        The value of an input parameter is bad or out-of-range.
@throws MissingRequiredParameterException
        An input parameter that is required is missing.
@throws InvalidNextTokenException
        The next token specified is invalid.
@sample AmazonCloudWatch.ListManagedInsightRules
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListManagedInsightRules"
     target="_top">AWS API Documentation</a>
aws-java-sdk-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/AmazonCloudWatchClient.java