@SdkInternalApi
    final ListResolverRuleAssociationsResult executeListResolverRuleAssociations(ListResolverRuleAssociationsRequest listResolverRuleAssociationsRequest) {

        ExecutionContext executionContext = createExecutionContext(listResolverRuleAssociationsRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<ListResolverRuleAssociationsRequest> request = null;
        Response<ListResolverRuleAssociationsResult> response = null;

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

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

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

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Lists the associations that were created between Resolver rules and VPCs using the current Amazon Web Services
account.
</p>

@param listResolverRuleAssociationsRequest
@return Result of the ListResolverRuleAssociations operation returned by the service.
@throws InvalidNextTokenException
        The value that you specified for <code>NextToken</code> in a <code>List</code> request isn't valid.
@throws InvalidRequestException
        The request is invalid.
@throws InvalidParameterException
        One or more parameters in this request are not valid.
@throws InternalServiceErrorException
        We encountered an unknown error. Try again in a few minutes.
@throws ThrottlingException
        The request was throttled. Try again in a few minutes.
@sample AmazonRoute53Resolver.ListResolverRuleAssociations
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/ListResolverRuleAssociations"
     target="_top">AWS API Documentation</a>
aws-java-sdk-route53resolver/src/main/java/com/amazonaws/services/route53resolver/AmazonRoute53ResolverClient.java