All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.waf.AWSWAFRegionalAsyncClient Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS WAF Service module holds the client classes that are used for communicating with AWS WAF Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.waf;

import static java.util.concurrent.Executors.newFixedThreadPool;

import javax.annotation.Generated;

import com.amazonaws.services.waf.model.*;
import com.amazonaws.client.AwsAsyncClientParams;
import com.amazonaws.annotation.ThreadSafe;
import com.amazonaws.ClientConfiguration;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.AWSCredentialsProvider;
import java.util.concurrent.ExecutorService;
import com.amazonaws.auth.DefaultAWSCredentialsProviderChain;

/**
 * Client for accessing WAF Regional asynchronously. Each asynchronous method will return a Java Future object
 * representing the asynchronous operation; overloads which accept an {@code AsyncHandler} can be used to receive
 * notification when an asynchronous operation completes.
 * 

* *

* This is AWS WAF Classic Regional documentation. For more information, see AWS WAF Classic in the * developer guide. *

*

* For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the * latest version, AWS WAF has a single set of endpoints for regional and global use. *

* *

* This is the AWS WAF Regional Classic API Reference for using AWS WAF Classic with the AWS resources, Elastic * Load Balancing (ELB) Application Load Balancers and API Gateway APIs. The AWS WAF Classic actions and data types * listed in the reference are available for protecting Elastic Load Balancing (ELB) Application Load Balancers and API * Gateway APIs. You can use these actions and data types by means of the endpoints listed in AWS Regions and Endpoints. This guide * is for developers who need detailed information about the AWS WAF Classic API actions, data types, and errors. For * detailed information about AWS WAF Classic features and an overview of how to use the AWS WAF Classic API, see the AWS WAF Classic in the * developer guide. *

*/ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AWSWAFRegionalAsyncClient extends AWSWAFRegionalClient implements AWSWAFRegionalAsync { private static final int DEFAULT_THREAD_POOL_SIZE = 50; private final java.util.concurrent.ExecutorService executorService; /** * Constructs a new asynchronous client to invoke service methods on WAF Regional. A credentials provider chain will * be used that searches for credentials in this order: *
    *
  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • *
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • *
  • Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
  • *
  • Instance profile credentials delivered through the Amazon EC2 metadata service
  • *
*

* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default * maximum number of concurrent connections to the service). * * @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain * @see java.util.concurrent.Executors#newFixedThreadPool(int) * @deprecated use {@link AWSWAFRegionalAsyncClientBuilder#defaultClient()} */ @Deprecated public AWSWAFRegionalAsyncClient() { this(DefaultAWSCredentialsProviderChain.getInstance()); } /** * Constructs a new asynchronous client to invoke service methods on WAF Regional. A credentials provider chain will * be used that searches for credentials in this order: *

    *
  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • *
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • *
  • Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
  • *
  • Instance profile credentials delivered through the Amazon EC2 metadata service
  • *
*

* Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the * maximum number of concurrent connections configured via {@code ClientConfiguration.getMaxConnections()}. * * @param clientConfiguration * The client configuration options controlling how this client connects to WAF Regional (ex: proxy settings, * retry counts, etc). * * @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain * @see java.util.concurrent.Executors#newFixedThreadPool(int) * @deprecated use {@link AWSWAFRegionalAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} */ @Deprecated public AWSWAFRegionalAsyncClient(ClientConfiguration clientConfiguration) { this(DefaultAWSCredentialsProviderChain.getInstance(), clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections())); } /** * Constructs a new asynchronous client to invoke service methods on WAF Regional using the specified AWS account * credentials. *

* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default * maximum number of concurrent connections to the service). * * @param awsCredentials * The AWS credentials (access key ID and secret key) to use when authenticating with AWS services. * @see java.util.concurrent.Executors#newFixedThreadPool(int) * @deprecated use {@link AWSWAFRegionalAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} */ @Deprecated public AWSWAFRegionalAsyncClient(AWSCredentials awsCredentials) { this(awsCredentials, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE)); } /** * Constructs a new asynchronous client to invoke service methods on WAF Regional using the specified AWS account * credentials and executor service. Default client settings will be used. * * @param awsCredentials * The AWS credentials (access key ID and secret key) to use when authenticating with AWS services. * @param executorService * The executor service by which all asynchronous requests will be executed. * @deprecated use {@link AWSWAFRegionalAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and * {@link AWSWAFRegionalAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)} */ @Deprecated public AWSWAFRegionalAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService) { this(awsCredentials, configFactory.getConfig(), executorService); } /** * Constructs a new asynchronous client to invoke service methods on WAF Regional using the specified AWS account * credentials, executor service, and client configuration options. * * @param awsCredentials * The AWS credentials (access key ID and secret key) to use when authenticating with AWS services. * @param clientConfiguration * Client configuration options (ex: max retry limit, proxy settings, etc). * @param executorService * The executor service by which all asynchronous requests will be executed. * @deprecated use {@link AWSWAFRegionalAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and * {@link AWSWAFRegionalAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and * {@link AWSWAFRegionalAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)} */ @Deprecated public AWSWAFRegionalAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) { super(awsCredentials, clientConfiguration); this.executorService = executorService; } /** * Constructs a new asynchronous client to invoke service methods on WAF Regional using the specified AWS account * credentials provider. Default client settings will be used. *

* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default * maximum number of concurrent connections to the service). * * @param awsCredentialsProvider * The AWS credentials provider which will provide credentials to authenticate requests with AWS services. * @see java.util.concurrent.Executors#newFixedThreadPool(int) * @deprecated use {@link AWSWAFRegionalAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} */ @Deprecated public AWSWAFRegionalAsyncClient(AWSCredentialsProvider awsCredentialsProvider) { this(awsCredentialsProvider, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE)); } /** * Constructs a new asynchronous client to invoke service methods on WAF Regional using the provided AWS account * credentials provider and client configuration options. *

* Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the * maximum number of concurrent connections configured via {@code ClientConfiguration.getMaxConnections()}. * * @param awsCredentialsProvider * The AWS credentials provider which will provide credentials to authenticate requests with AWS services. * @param clientConfiguration * Client configuration options (ex: max retry limit, proxy settings, etc). * * @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain * @see java.util.concurrent.Executors#newFixedThreadPool(int) * @deprecated use {@link AWSWAFRegionalAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and * {@link AWSWAFRegionalAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} */ @Deprecated public AWSWAFRegionalAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) { this(awsCredentialsProvider, clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections())); } /** * Constructs a new asynchronous client to invoke service methods on WAF Regional using the specified AWS account * credentials provider and executor service. Default client settings will be used. * * @param awsCredentialsProvider * The AWS credentials provider which will provide credentials to authenticate requests with AWS services. * @param executorService * The executor service by which all asynchronous requests will be executed. * @deprecated use {@link AWSWAFRegionalAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and * {@link AWSWAFRegionalAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)} */ @Deprecated public AWSWAFRegionalAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) { this(awsCredentialsProvider, configFactory.getConfig(), executorService); } /** * Constructs a new asynchronous client to invoke service methods on WAF Regional using the specified AWS account * credentials provider, executor service, and client configuration options. * * @param awsCredentialsProvider * The AWS credentials provider which will provide credentials to authenticate requests with AWS services. * @param clientConfiguration * Client configuration options (ex: max retry limit, proxy settings, etc). * @param executorService * The executor service by which all asynchronous requests will be executed. * @deprecated use {@link AWSWAFRegionalAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and * {@link AWSWAFRegionalAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and * {@link AWSWAFRegionalAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)} */ @Deprecated public AWSWAFRegionalAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService) { super(awsCredentialsProvider, clientConfiguration); this.executorService = executorService; } public static AWSWAFRegionalAsyncClientBuilder asyncBuilder() { return AWSWAFRegionalAsyncClientBuilder.standard(); } /** * Constructs a new asynchronous client to invoke service methods on WAF Regional using the specified parameters. * * @param asyncClientParams * Object providing client parameters. */ AWSWAFRegionalAsyncClient(AwsAsyncClientParams asyncClientParams) { this(asyncClientParams, false); } /** * Constructs a new asynchronous client to invoke service methods on WAF Regional using the specified parameters. * * @param asyncClientParams * Object providing client parameters. * @param endpointDiscoveryEnabled * true will enable endpoint discovery if the service supports it. */ AWSWAFRegionalAsyncClient(AwsAsyncClientParams asyncClientParams, boolean endpointDiscoveryEnabled) { super(asyncClientParams, endpointDiscoveryEnabled); this.executorService = asyncClientParams.getExecutor(); } /** * Returns the executor service used by this client to execute async requests. * * @return The executor service used by this client to execute async requests. */ public ExecutorService getExecutorService() { return executorService; } @Override public java.util.concurrent.Future associateWebACLAsync(AssociateWebACLRequest request) { return associateWebACLAsync(request, null); } @Override public java.util.concurrent.Future associateWebACLAsync(final AssociateWebACLRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final AssociateWebACLRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public AssociateWebACLResult call() throws Exception { AssociateWebACLResult result = null; try { result = executeAssociateWebACL(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createByteMatchSetAsync(CreateByteMatchSetRequest request) { return createByteMatchSetAsync(request, null); } @Override public java.util.concurrent.Future createByteMatchSetAsync(final CreateByteMatchSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateByteMatchSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateByteMatchSetResult call() throws Exception { CreateByteMatchSetResult result = null; try { result = executeCreateByteMatchSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createGeoMatchSetAsync(CreateGeoMatchSetRequest request) { return createGeoMatchSetAsync(request, null); } @Override public java.util.concurrent.Future createGeoMatchSetAsync(final CreateGeoMatchSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateGeoMatchSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateGeoMatchSetResult call() throws Exception { CreateGeoMatchSetResult result = null; try { result = executeCreateGeoMatchSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createIPSetAsync(CreateIPSetRequest request) { return createIPSetAsync(request, null); } @Override public java.util.concurrent.Future createIPSetAsync(final CreateIPSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateIPSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateIPSetResult call() throws Exception { CreateIPSetResult result = null; try { result = executeCreateIPSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createRateBasedRuleAsync(CreateRateBasedRuleRequest request) { return createRateBasedRuleAsync(request, null); } @Override public java.util.concurrent.Future createRateBasedRuleAsync(final CreateRateBasedRuleRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateRateBasedRuleRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateRateBasedRuleResult call() throws Exception { CreateRateBasedRuleResult result = null; try { result = executeCreateRateBasedRule(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createRegexMatchSetAsync(CreateRegexMatchSetRequest request) { return createRegexMatchSetAsync(request, null); } @Override public java.util.concurrent.Future createRegexMatchSetAsync(final CreateRegexMatchSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateRegexMatchSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateRegexMatchSetResult call() throws Exception { CreateRegexMatchSetResult result = null; try { result = executeCreateRegexMatchSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createRegexPatternSetAsync(CreateRegexPatternSetRequest request) { return createRegexPatternSetAsync(request, null); } @Override public java.util.concurrent.Future createRegexPatternSetAsync(final CreateRegexPatternSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateRegexPatternSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateRegexPatternSetResult call() throws Exception { CreateRegexPatternSetResult result = null; try { result = executeCreateRegexPatternSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createRuleAsync(CreateRuleRequest request) { return createRuleAsync(request, null); } @Override public java.util.concurrent.Future createRuleAsync(final CreateRuleRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateRuleRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateRuleResult call() throws Exception { CreateRuleResult result = null; try { result = executeCreateRule(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createRuleGroupAsync(CreateRuleGroupRequest request) { return createRuleGroupAsync(request, null); } @Override public java.util.concurrent.Future createRuleGroupAsync(final CreateRuleGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateRuleGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateRuleGroupResult call() throws Exception { CreateRuleGroupResult result = null; try { result = executeCreateRuleGroup(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createSizeConstraintSetAsync(CreateSizeConstraintSetRequest request) { return createSizeConstraintSetAsync(request, null); } @Override public java.util.concurrent.Future createSizeConstraintSetAsync(final CreateSizeConstraintSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateSizeConstraintSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateSizeConstraintSetResult call() throws Exception { CreateSizeConstraintSetResult result = null; try { result = executeCreateSizeConstraintSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createSqlInjectionMatchSetAsync(CreateSqlInjectionMatchSetRequest request) { return createSqlInjectionMatchSetAsync(request, null); } @Override public java.util.concurrent.Future createSqlInjectionMatchSetAsync(final CreateSqlInjectionMatchSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateSqlInjectionMatchSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateSqlInjectionMatchSetResult call() throws Exception { CreateSqlInjectionMatchSetResult result = null; try { result = executeCreateSqlInjectionMatchSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createWebACLAsync(CreateWebACLRequest request) { return createWebACLAsync(request, null); } @Override public java.util.concurrent.Future createWebACLAsync(final CreateWebACLRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateWebACLRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateWebACLResult call() throws Exception { CreateWebACLResult result = null; try { result = executeCreateWebACL(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createWebACLMigrationStackAsync(CreateWebACLMigrationStackRequest request) { return createWebACLMigrationStackAsync(request, null); } @Override public java.util.concurrent.Future createWebACLMigrationStackAsync(final CreateWebACLMigrationStackRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateWebACLMigrationStackRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateWebACLMigrationStackResult call() throws Exception { CreateWebACLMigrationStackResult result = null; try { result = executeCreateWebACLMigrationStack(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createXssMatchSetAsync(CreateXssMatchSetRequest request) { return createXssMatchSetAsync(request, null); } @Override public java.util.concurrent.Future createXssMatchSetAsync(final CreateXssMatchSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateXssMatchSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateXssMatchSetResult call() throws Exception { CreateXssMatchSetResult result = null; try { result = executeCreateXssMatchSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteByteMatchSetAsync(DeleteByteMatchSetRequest request) { return deleteByteMatchSetAsync(request, null); } @Override public java.util.concurrent.Future deleteByteMatchSetAsync(final DeleteByteMatchSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteByteMatchSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteByteMatchSetResult call() throws Exception { DeleteByteMatchSetResult result = null; try { result = executeDeleteByteMatchSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteGeoMatchSetAsync(DeleteGeoMatchSetRequest request) { return deleteGeoMatchSetAsync(request, null); } @Override public java.util.concurrent.Future deleteGeoMatchSetAsync(final DeleteGeoMatchSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteGeoMatchSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteGeoMatchSetResult call() throws Exception { DeleteGeoMatchSetResult result = null; try { result = executeDeleteGeoMatchSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteIPSetAsync(DeleteIPSetRequest request) { return deleteIPSetAsync(request, null); } @Override public java.util.concurrent.Future deleteIPSetAsync(final DeleteIPSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteIPSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteIPSetResult call() throws Exception { DeleteIPSetResult result = null; try { result = executeDeleteIPSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteLoggingConfigurationAsync(DeleteLoggingConfigurationRequest request) { return deleteLoggingConfigurationAsync(request, null); } @Override public java.util.concurrent.Future deleteLoggingConfigurationAsync(final DeleteLoggingConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteLoggingConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteLoggingConfigurationResult call() throws Exception { DeleteLoggingConfigurationResult result = null; try { result = executeDeleteLoggingConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deletePermissionPolicyAsync(DeletePermissionPolicyRequest request) { return deletePermissionPolicyAsync(request, null); } @Override public java.util.concurrent.Future deletePermissionPolicyAsync(final DeletePermissionPolicyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeletePermissionPolicyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeletePermissionPolicyResult call() throws Exception { DeletePermissionPolicyResult result = null; try { result = executeDeletePermissionPolicy(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteRateBasedRuleAsync(DeleteRateBasedRuleRequest request) { return deleteRateBasedRuleAsync(request, null); } @Override public java.util.concurrent.Future deleteRateBasedRuleAsync(final DeleteRateBasedRuleRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteRateBasedRuleRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteRateBasedRuleResult call() throws Exception { DeleteRateBasedRuleResult result = null; try { result = executeDeleteRateBasedRule(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteRegexMatchSetAsync(DeleteRegexMatchSetRequest request) { return deleteRegexMatchSetAsync(request, null); } @Override public java.util.concurrent.Future deleteRegexMatchSetAsync(final DeleteRegexMatchSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteRegexMatchSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteRegexMatchSetResult call() throws Exception { DeleteRegexMatchSetResult result = null; try { result = executeDeleteRegexMatchSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteRegexPatternSetAsync(DeleteRegexPatternSetRequest request) { return deleteRegexPatternSetAsync(request, null); } @Override public java.util.concurrent.Future deleteRegexPatternSetAsync(final DeleteRegexPatternSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteRegexPatternSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteRegexPatternSetResult call() throws Exception { DeleteRegexPatternSetResult result = null; try { result = executeDeleteRegexPatternSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteRuleAsync(DeleteRuleRequest request) { return deleteRuleAsync(request, null); } @Override public java.util.concurrent.Future deleteRuleAsync(final DeleteRuleRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteRuleRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteRuleResult call() throws Exception { DeleteRuleResult result = null; try { result = executeDeleteRule(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteRuleGroupAsync(DeleteRuleGroupRequest request) { return deleteRuleGroupAsync(request, null); } @Override public java.util.concurrent.Future deleteRuleGroupAsync(final DeleteRuleGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteRuleGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteRuleGroupResult call() throws Exception { DeleteRuleGroupResult result = null; try { result = executeDeleteRuleGroup(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteSizeConstraintSetAsync(DeleteSizeConstraintSetRequest request) { return deleteSizeConstraintSetAsync(request, null); } @Override public java.util.concurrent.Future deleteSizeConstraintSetAsync(final DeleteSizeConstraintSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteSizeConstraintSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteSizeConstraintSetResult call() throws Exception { DeleteSizeConstraintSetResult result = null; try { result = executeDeleteSizeConstraintSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteSqlInjectionMatchSetAsync(DeleteSqlInjectionMatchSetRequest request) { return deleteSqlInjectionMatchSetAsync(request, null); } @Override public java.util.concurrent.Future deleteSqlInjectionMatchSetAsync(final DeleteSqlInjectionMatchSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteSqlInjectionMatchSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteSqlInjectionMatchSetResult call() throws Exception { DeleteSqlInjectionMatchSetResult result = null; try { result = executeDeleteSqlInjectionMatchSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteWebACLAsync(DeleteWebACLRequest request) { return deleteWebACLAsync(request, null); } @Override public java.util.concurrent.Future deleteWebACLAsync(final DeleteWebACLRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteWebACLRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteWebACLResult call() throws Exception { DeleteWebACLResult result = null; try { result = executeDeleteWebACL(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteXssMatchSetAsync(DeleteXssMatchSetRequest request) { return deleteXssMatchSetAsync(request, null); } @Override public java.util.concurrent.Future deleteXssMatchSetAsync(final DeleteXssMatchSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteXssMatchSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteXssMatchSetResult call() throws Exception { DeleteXssMatchSetResult result = null; try { result = executeDeleteXssMatchSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future disassociateWebACLAsync(DisassociateWebACLRequest request) { return disassociateWebACLAsync(request, null); } @Override public java.util.concurrent.Future disassociateWebACLAsync(final DisassociateWebACLRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DisassociateWebACLRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DisassociateWebACLResult call() throws Exception { DisassociateWebACLResult result = null; try { result = executeDisassociateWebACL(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getByteMatchSetAsync(GetByteMatchSetRequest request) { return getByteMatchSetAsync(request, null); } @Override public java.util.concurrent.Future getByteMatchSetAsync(final GetByteMatchSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetByteMatchSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetByteMatchSetResult call() throws Exception { GetByteMatchSetResult result = null; try { result = executeGetByteMatchSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getChangeTokenAsync(GetChangeTokenRequest request) { return getChangeTokenAsync(request, null); } @Override public java.util.concurrent.Future getChangeTokenAsync(final GetChangeTokenRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetChangeTokenRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetChangeTokenResult call() throws Exception { GetChangeTokenResult result = null; try { result = executeGetChangeToken(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getChangeTokenStatusAsync(GetChangeTokenStatusRequest request) { return getChangeTokenStatusAsync(request, null); } @Override public java.util.concurrent.Future getChangeTokenStatusAsync(final GetChangeTokenStatusRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetChangeTokenStatusRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetChangeTokenStatusResult call() throws Exception { GetChangeTokenStatusResult result = null; try { result = executeGetChangeTokenStatus(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getGeoMatchSetAsync(GetGeoMatchSetRequest request) { return getGeoMatchSetAsync(request, null); } @Override public java.util.concurrent.Future getGeoMatchSetAsync(final GetGeoMatchSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetGeoMatchSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetGeoMatchSetResult call() throws Exception { GetGeoMatchSetResult result = null; try { result = executeGetGeoMatchSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getIPSetAsync(GetIPSetRequest request) { return getIPSetAsync(request, null); } @Override public java.util.concurrent.Future getIPSetAsync(final GetIPSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetIPSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetIPSetResult call() throws Exception { GetIPSetResult result = null; try { result = executeGetIPSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getLoggingConfigurationAsync(GetLoggingConfigurationRequest request) { return getLoggingConfigurationAsync(request, null); } @Override public java.util.concurrent.Future getLoggingConfigurationAsync(final GetLoggingConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetLoggingConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetLoggingConfigurationResult call() throws Exception { GetLoggingConfigurationResult result = null; try { result = executeGetLoggingConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getPermissionPolicyAsync(GetPermissionPolicyRequest request) { return getPermissionPolicyAsync(request, null); } @Override public java.util.concurrent.Future getPermissionPolicyAsync(final GetPermissionPolicyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetPermissionPolicyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetPermissionPolicyResult call() throws Exception { GetPermissionPolicyResult result = null; try { result = executeGetPermissionPolicy(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getRateBasedRuleAsync(GetRateBasedRuleRequest request) { return getRateBasedRuleAsync(request, null); } @Override public java.util.concurrent.Future getRateBasedRuleAsync(final GetRateBasedRuleRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetRateBasedRuleRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetRateBasedRuleResult call() throws Exception { GetRateBasedRuleResult result = null; try { result = executeGetRateBasedRule(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getRateBasedRuleManagedKeysAsync(GetRateBasedRuleManagedKeysRequest request) { return getRateBasedRuleManagedKeysAsync(request, null); } @Override public java.util.concurrent.Future getRateBasedRuleManagedKeysAsync(final GetRateBasedRuleManagedKeysRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetRateBasedRuleManagedKeysRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetRateBasedRuleManagedKeysResult call() throws Exception { GetRateBasedRuleManagedKeysResult result = null; try { result = executeGetRateBasedRuleManagedKeys(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getRegexMatchSetAsync(GetRegexMatchSetRequest request) { return getRegexMatchSetAsync(request, null); } @Override public java.util.concurrent.Future getRegexMatchSetAsync(final GetRegexMatchSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetRegexMatchSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetRegexMatchSetResult call() throws Exception { GetRegexMatchSetResult result = null; try { result = executeGetRegexMatchSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getRegexPatternSetAsync(GetRegexPatternSetRequest request) { return getRegexPatternSetAsync(request, null); } @Override public java.util.concurrent.Future getRegexPatternSetAsync(final GetRegexPatternSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetRegexPatternSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetRegexPatternSetResult call() throws Exception { GetRegexPatternSetResult result = null; try { result = executeGetRegexPatternSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getRuleAsync(GetRuleRequest request) { return getRuleAsync(request, null); } @Override public java.util.concurrent.Future getRuleAsync(final GetRuleRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetRuleRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetRuleResult call() throws Exception { GetRuleResult result = null; try { result = executeGetRule(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getRuleGroupAsync(GetRuleGroupRequest request) { return getRuleGroupAsync(request, null); } @Override public java.util.concurrent.Future getRuleGroupAsync(final GetRuleGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetRuleGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetRuleGroupResult call() throws Exception { GetRuleGroupResult result = null; try { result = executeGetRuleGroup(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getSampledRequestsAsync(GetSampledRequestsRequest request) { return getSampledRequestsAsync(request, null); } @Override public java.util.concurrent.Future getSampledRequestsAsync(final GetSampledRequestsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetSampledRequestsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetSampledRequestsResult call() throws Exception { GetSampledRequestsResult result = null; try { result = executeGetSampledRequests(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getSizeConstraintSetAsync(GetSizeConstraintSetRequest request) { return getSizeConstraintSetAsync(request, null); } @Override public java.util.concurrent.Future getSizeConstraintSetAsync(final GetSizeConstraintSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetSizeConstraintSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetSizeConstraintSetResult call() throws Exception { GetSizeConstraintSetResult result = null; try { result = executeGetSizeConstraintSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getSqlInjectionMatchSetAsync(GetSqlInjectionMatchSetRequest request) { return getSqlInjectionMatchSetAsync(request, null); } @Override public java.util.concurrent.Future getSqlInjectionMatchSetAsync(final GetSqlInjectionMatchSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetSqlInjectionMatchSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetSqlInjectionMatchSetResult call() throws Exception { GetSqlInjectionMatchSetResult result = null; try { result = executeGetSqlInjectionMatchSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getWebACLAsync(GetWebACLRequest request) { return getWebACLAsync(request, null); } @Override public java.util.concurrent.Future getWebACLAsync(final GetWebACLRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetWebACLRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetWebACLResult call() throws Exception { GetWebACLResult result = null; try { result = executeGetWebACL(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getWebACLForResourceAsync(GetWebACLForResourceRequest request) { return getWebACLForResourceAsync(request, null); } @Override public java.util.concurrent.Future getWebACLForResourceAsync(final GetWebACLForResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetWebACLForResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetWebACLForResourceResult call() throws Exception { GetWebACLForResourceResult result = null; try { result = executeGetWebACLForResource(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getXssMatchSetAsync(GetXssMatchSetRequest request) { return getXssMatchSetAsync(request, null); } @Override public java.util.concurrent.Future getXssMatchSetAsync(final GetXssMatchSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetXssMatchSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetXssMatchSetResult call() throws Exception { GetXssMatchSetResult result = null; try { result = executeGetXssMatchSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listActivatedRulesInRuleGroupAsync(ListActivatedRulesInRuleGroupRequest request) { return listActivatedRulesInRuleGroupAsync(request, null); } @Override public java.util.concurrent.Future listActivatedRulesInRuleGroupAsync( final ListActivatedRulesInRuleGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListActivatedRulesInRuleGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListActivatedRulesInRuleGroupResult call() throws Exception { ListActivatedRulesInRuleGroupResult result = null; try { result = executeListActivatedRulesInRuleGroup(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listByteMatchSetsAsync(ListByteMatchSetsRequest request) { return listByteMatchSetsAsync(request, null); } @Override public java.util.concurrent.Future listByteMatchSetsAsync(final ListByteMatchSetsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListByteMatchSetsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListByteMatchSetsResult call() throws Exception { ListByteMatchSetsResult result = null; try { result = executeListByteMatchSets(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listGeoMatchSetsAsync(ListGeoMatchSetsRequest request) { return listGeoMatchSetsAsync(request, null); } @Override public java.util.concurrent.Future listGeoMatchSetsAsync(final ListGeoMatchSetsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListGeoMatchSetsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListGeoMatchSetsResult call() throws Exception { ListGeoMatchSetsResult result = null; try { result = executeListGeoMatchSets(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listIPSetsAsync(ListIPSetsRequest request) { return listIPSetsAsync(request, null); } @Override public java.util.concurrent.Future listIPSetsAsync(final ListIPSetsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListIPSetsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListIPSetsResult call() throws Exception { ListIPSetsResult result = null; try { result = executeListIPSets(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listLoggingConfigurationsAsync(ListLoggingConfigurationsRequest request) { return listLoggingConfigurationsAsync(request, null); } @Override public java.util.concurrent.Future listLoggingConfigurationsAsync(final ListLoggingConfigurationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListLoggingConfigurationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListLoggingConfigurationsResult call() throws Exception { ListLoggingConfigurationsResult result = null; try { result = executeListLoggingConfigurations(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listRateBasedRulesAsync(ListRateBasedRulesRequest request) { return listRateBasedRulesAsync(request, null); } @Override public java.util.concurrent.Future listRateBasedRulesAsync(final ListRateBasedRulesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListRateBasedRulesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListRateBasedRulesResult call() throws Exception { ListRateBasedRulesResult result = null; try { result = executeListRateBasedRules(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listRegexMatchSetsAsync(ListRegexMatchSetsRequest request) { return listRegexMatchSetsAsync(request, null); } @Override public java.util.concurrent.Future listRegexMatchSetsAsync(final ListRegexMatchSetsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListRegexMatchSetsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListRegexMatchSetsResult call() throws Exception { ListRegexMatchSetsResult result = null; try { result = executeListRegexMatchSets(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listRegexPatternSetsAsync(ListRegexPatternSetsRequest request) { return listRegexPatternSetsAsync(request, null); } @Override public java.util.concurrent.Future listRegexPatternSetsAsync(final ListRegexPatternSetsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListRegexPatternSetsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListRegexPatternSetsResult call() throws Exception { ListRegexPatternSetsResult result = null; try { result = executeListRegexPatternSets(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listResourcesForWebACLAsync(ListResourcesForWebACLRequest request) { return listResourcesForWebACLAsync(request, null); } @Override public java.util.concurrent.Future listResourcesForWebACLAsync(final ListResourcesForWebACLRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListResourcesForWebACLRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListResourcesForWebACLResult call() throws Exception { ListResourcesForWebACLResult result = null; try { result = executeListResourcesForWebACL(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listRuleGroupsAsync(ListRuleGroupsRequest request) { return listRuleGroupsAsync(request, null); } @Override public java.util.concurrent.Future listRuleGroupsAsync(final ListRuleGroupsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListRuleGroupsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListRuleGroupsResult call() throws Exception { ListRuleGroupsResult result = null; try { result = executeListRuleGroups(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listRulesAsync(ListRulesRequest request) { return listRulesAsync(request, null); } @Override public java.util.concurrent.Future listRulesAsync(final ListRulesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListRulesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListRulesResult call() throws Exception { ListRulesResult result = null; try { result = executeListRules(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listSizeConstraintSetsAsync(ListSizeConstraintSetsRequest request) { return listSizeConstraintSetsAsync(request, null); } @Override public java.util.concurrent.Future listSizeConstraintSetsAsync(final ListSizeConstraintSetsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListSizeConstraintSetsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListSizeConstraintSetsResult call() throws Exception { ListSizeConstraintSetsResult result = null; try { result = executeListSizeConstraintSets(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listSqlInjectionMatchSetsAsync(ListSqlInjectionMatchSetsRequest request) { return listSqlInjectionMatchSetsAsync(request, null); } @Override public java.util.concurrent.Future listSqlInjectionMatchSetsAsync(final ListSqlInjectionMatchSetsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListSqlInjectionMatchSetsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListSqlInjectionMatchSetsResult call() throws Exception { ListSqlInjectionMatchSetsResult result = null; try { result = executeListSqlInjectionMatchSets(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listSubscribedRuleGroupsAsync(ListSubscribedRuleGroupsRequest request) { return listSubscribedRuleGroupsAsync(request, null); } @Override public java.util.concurrent.Future listSubscribedRuleGroupsAsync(final ListSubscribedRuleGroupsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListSubscribedRuleGroupsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListSubscribedRuleGroupsResult call() throws Exception { ListSubscribedRuleGroupsResult result = null; try { result = executeListSubscribedRuleGroups(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest request) { return listTagsForResourceAsync(request, null); } @Override public java.util.concurrent.Future listTagsForResourceAsync(final ListTagsForResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListTagsForResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListTagsForResourceResult call() throws Exception { ListTagsForResourceResult result = null; try { result = executeListTagsForResource(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listWebACLsAsync(ListWebACLsRequest request) { return listWebACLsAsync(request, null); } @Override public java.util.concurrent.Future listWebACLsAsync(final ListWebACLsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListWebACLsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListWebACLsResult call() throws Exception { ListWebACLsResult result = null; try { result = executeListWebACLs(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listXssMatchSetsAsync(ListXssMatchSetsRequest request) { return listXssMatchSetsAsync(request, null); } @Override public java.util.concurrent.Future listXssMatchSetsAsync(final ListXssMatchSetsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListXssMatchSetsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListXssMatchSetsResult call() throws Exception { ListXssMatchSetsResult result = null; try { result = executeListXssMatchSets(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future putLoggingConfigurationAsync(PutLoggingConfigurationRequest request) { return putLoggingConfigurationAsync(request, null); } @Override public java.util.concurrent.Future putLoggingConfigurationAsync(final PutLoggingConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutLoggingConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutLoggingConfigurationResult call() throws Exception { PutLoggingConfigurationResult result = null; try { result = executePutLoggingConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future putPermissionPolicyAsync(PutPermissionPolicyRequest request) { return putPermissionPolicyAsync(request, null); } @Override public java.util.concurrent.Future putPermissionPolicyAsync(final PutPermissionPolicyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutPermissionPolicyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutPermissionPolicyResult call() throws Exception { PutPermissionPolicyResult result = null; try { result = executePutPermissionPolicy(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future tagResourceAsync(TagResourceRequest request) { return tagResourceAsync(request, null); } @Override public java.util.concurrent.Future tagResourceAsync(final TagResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final TagResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public TagResourceResult call() throws Exception { TagResourceResult result = null; try { result = executeTagResource(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future untagResourceAsync(UntagResourceRequest request) { return untagResourceAsync(request, null); } @Override public java.util.concurrent.Future untagResourceAsync(final UntagResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UntagResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UntagResourceResult call() throws Exception { UntagResourceResult result = null; try { result = executeUntagResource(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateByteMatchSetAsync(UpdateByteMatchSetRequest request) { return updateByteMatchSetAsync(request, null); } @Override public java.util.concurrent.Future updateByteMatchSetAsync(final UpdateByteMatchSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateByteMatchSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateByteMatchSetResult call() throws Exception { UpdateByteMatchSetResult result = null; try { result = executeUpdateByteMatchSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateGeoMatchSetAsync(UpdateGeoMatchSetRequest request) { return updateGeoMatchSetAsync(request, null); } @Override public java.util.concurrent.Future updateGeoMatchSetAsync(final UpdateGeoMatchSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateGeoMatchSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateGeoMatchSetResult call() throws Exception { UpdateGeoMatchSetResult result = null; try { result = executeUpdateGeoMatchSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateIPSetAsync(UpdateIPSetRequest request) { return updateIPSetAsync(request, null); } @Override public java.util.concurrent.Future updateIPSetAsync(final UpdateIPSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateIPSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateIPSetResult call() throws Exception { UpdateIPSetResult result = null; try { result = executeUpdateIPSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateRateBasedRuleAsync(UpdateRateBasedRuleRequest request) { return updateRateBasedRuleAsync(request, null); } @Override public java.util.concurrent.Future updateRateBasedRuleAsync(final UpdateRateBasedRuleRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateRateBasedRuleRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateRateBasedRuleResult call() throws Exception { UpdateRateBasedRuleResult result = null; try { result = executeUpdateRateBasedRule(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateRegexMatchSetAsync(UpdateRegexMatchSetRequest request) { return updateRegexMatchSetAsync(request, null); } @Override public java.util.concurrent.Future updateRegexMatchSetAsync(final UpdateRegexMatchSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateRegexMatchSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateRegexMatchSetResult call() throws Exception { UpdateRegexMatchSetResult result = null; try { result = executeUpdateRegexMatchSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateRegexPatternSetAsync(UpdateRegexPatternSetRequest request) { return updateRegexPatternSetAsync(request, null); } @Override public java.util.concurrent.Future updateRegexPatternSetAsync(final UpdateRegexPatternSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateRegexPatternSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateRegexPatternSetResult call() throws Exception { UpdateRegexPatternSetResult result = null; try { result = executeUpdateRegexPatternSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateRuleAsync(UpdateRuleRequest request) { return updateRuleAsync(request, null); } @Override public java.util.concurrent.Future updateRuleAsync(final UpdateRuleRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateRuleRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateRuleResult call() throws Exception { UpdateRuleResult result = null; try { result = executeUpdateRule(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateRuleGroupAsync(UpdateRuleGroupRequest request) { return updateRuleGroupAsync(request, null); } @Override public java.util.concurrent.Future updateRuleGroupAsync(final UpdateRuleGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateRuleGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateRuleGroupResult call() throws Exception { UpdateRuleGroupResult result = null; try { result = executeUpdateRuleGroup(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateSizeConstraintSetAsync(UpdateSizeConstraintSetRequest request) { return updateSizeConstraintSetAsync(request, null); } @Override public java.util.concurrent.Future updateSizeConstraintSetAsync(final UpdateSizeConstraintSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateSizeConstraintSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateSizeConstraintSetResult call() throws Exception { UpdateSizeConstraintSetResult result = null; try { result = executeUpdateSizeConstraintSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateSqlInjectionMatchSetAsync(UpdateSqlInjectionMatchSetRequest request) { return updateSqlInjectionMatchSetAsync(request, null); } @Override public java.util.concurrent.Future updateSqlInjectionMatchSetAsync(final UpdateSqlInjectionMatchSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateSqlInjectionMatchSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateSqlInjectionMatchSetResult call() throws Exception { UpdateSqlInjectionMatchSetResult result = null; try { result = executeUpdateSqlInjectionMatchSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateWebACLAsync(UpdateWebACLRequest request) { return updateWebACLAsync(request, null); } @Override public java.util.concurrent.Future updateWebACLAsync(final UpdateWebACLRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateWebACLRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateWebACLResult call() throws Exception { UpdateWebACLResult result = null; try { result = executeUpdateWebACL(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateXssMatchSetAsync(UpdateXssMatchSetRequest request) { return updateXssMatchSetAsync(request, null); } @Override public java.util.concurrent.Future updateXssMatchSetAsync(final UpdateXssMatchSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateXssMatchSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateXssMatchSetResult call() throws Exception { UpdateXssMatchSetResult result = null; try { result = executeUpdateXssMatchSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } /** * Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending * asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should * call {@code getExecutorService().shutdown()} followed by {@code getExecutorService().awaitTermination()} prior to * calling this method. */ @Override public void shutdown() { super.shutdown(); executorService.shutdownNow(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy