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

com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementAsyncClient Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Simple Systems Management Service holds the client classes that are used for communicating with the AWS Simple Systems Management Service

The newest version!
/*
 * Copyright 2019-2024 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.simplesystemsmanagement;

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

import javax.annotation.Generated;

import com.amazonaws.services.simplesystemsmanagement.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 Amazon SSM 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.
 * 

*

* Amazon Web Services Systems Manager is the operations hub for your Amazon Web Services applications and resources and * a secure end-to-end management solution for hybrid cloud environments that enables safe and secure operations at * scale. *

*

* This reference is intended to be used with the Amazon Web Services Systems Manager User * Guide. To get started, see Setting up Amazon * Web Services Systems Manager. *

*

* Related resources *

* */ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AWSSimpleSystemsManagementAsyncClient extends AWSSimpleSystemsManagementClient implements AWSSimpleSystemsManagementAsync { 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 Amazon SSM. 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 AWSSimpleSystemsManagementAsyncClientBuilder#defaultClient()} */ @Deprecated public AWSSimpleSystemsManagementAsyncClient() { this(DefaultAWSCredentialsProviderChain.getInstance()); } /** * Constructs a new asynchronous client to invoke service methods on Amazon SSM. 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 Amazon SSM (ex: proxy settings, * retry counts, etc). * * @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain * @see java.util.concurrent.Executors#newFixedThreadPool(int) * @deprecated use {@link AWSSimpleSystemsManagementAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} */ @Deprecated public AWSSimpleSystemsManagementAsyncClient(ClientConfiguration clientConfiguration) { this(DefaultAWSCredentialsProviderChain.getInstance(), clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections())); } /** * Constructs a new asynchronous client to invoke service methods on Amazon SSM 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 AWSSimpleSystemsManagementAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} */ @Deprecated public AWSSimpleSystemsManagementAsyncClient(AWSCredentials awsCredentials) { this(awsCredentials, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE)); } /** * Constructs a new asynchronous client to invoke service methods on Amazon SSM 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 AWSSimpleSystemsManagementAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and * {@link AWSSimpleSystemsManagementAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)} */ @Deprecated public AWSSimpleSystemsManagementAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService) { this(awsCredentials, configFactory.getConfig(), executorService); } /** * Constructs a new asynchronous client to invoke service methods on Amazon SSM 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 AWSSimpleSystemsManagementAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and * {@link AWSSimpleSystemsManagementAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and * {@link AWSSimpleSystemsManagementAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)} */ @Deprecated public AWSSimpleSystemsManagementAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) { super(awsCredentials, clientConfiguration); this.executorService = executorService; } /** * Constructs a new asynchronous client to invoke service methods on Amazon SSM 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 AWSSimpleSystemsManagementAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} */ @Deprecated public AWSSimpleSystemsManagementAsyncClient(AWSCredentialsProvider awsCredentialsProvider) { this(awsCredentialsProvider, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE)); } /** * Constructs a new asynchronous client to invoke service methods on Amazon SSM 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 AWSSimpleSystemsManagementAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and * {@link AWSSimpleSystemsManagementAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} */ @Deprecated public AWSSimpleSystemsManagementAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) { this(awsCredentialsProvider, clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections())); } /** * Constructs a new asynchronous client to invoke service methods on Amazon SSM 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 AWSSimpleSystemsManagementAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and * {@link AWSSimpleSystemsManagementAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)} */ @Deprecated public AWSSimpleSystemsManagementAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) { this(awsCredentialsProvider, configFactory.getConfig(), executorService); } /** * Constructs a new asynchronous client to invoke service methods on Amazon SSM 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 AWSSimpleSystemsManagementAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and * {@link AWSSimpleSystemsManagementAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and * {@link AWSSimpleSystemsManagementAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)} */ @Deprecated public AWSSimpleSystemsManagementAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService) { super(awsCredentialsProvider, clientConfiguration); this.executorService = executorService; } public static AWSSimpleSystemsManagementAsyncClientBuilder asyncBuilder() { return AWSSimpleSystemsManagementAsyncClientBuilder.standard(); } /** * Constructs a new asynchronous client to invoke service methods on Amazon SSM using the specified parameters. * * @param asyncClientParams * Object providing client parameters. */ AWSSimpleSystemsManagementAsyncClient(AwsAsyncClientParams asyncClientParams) { this(asyncClientParams, false); } /** * Constructs a new asynchronous client to invoke service methods on Amazon SSM using the specified parameters. * * @param asyncClientParams * Object providing client parameters. * @param endpointDiscoveryEnabled * true will enable endpoint discovery if the service supports it. */ AWSSimpleSystemsManagementAsyncClient(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 addTagsToResourceAsync(AddTagsToResourceRequest request) { return addTagsToResourceAsync(request, null); } @Override public java.util.concurrent.Future addTagsToResourceAsync(final AddTagsToResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final AddTagsToResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public AddTagsToResourceResult call() throws Exception { AddTagsToResourceResult result = null; try { result = executeAddTagsToResource(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 associateOpsItemRelatedItemAsync(AssociateOpsItemRelatedItemRequest request) { return associateOpsItemRelatedItemAsync(request, null); } @Override public java.util.concurrent.Future associateOpsItemRelatedItemAsync(final AssociateOpsItemRelatedItemRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final AssociateOpsItemRelatedItemRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public AssociateOpsItemRelatedItemResult call() throws Exception { AssociateOpsItemRelatedItemResult result = null; try { result = executeAssociateOpsItemRelatedItem(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 cancelCommandAsync(CancelCommandRequest request) { return cancelCommandAsync(request, null); } @Override public java.util.concurrent.Future cancelCommandAsync(final CancelCommandRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CancelCommandRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CancelCommandResult call() throws Exception { CancelCommandResult result = null; try { result = executeCancelCommand(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 cancelMaintenanceWindowExecutionAsync( CancelMaintenanceWindowExecutionRequest request) { return cancelMaintenanceWindowExecutionAsync(request, null); } @Override public java.util.concurrent.Future cancelMaintenanceWindowExecutionAsync( final CancelMaintenanceWindowExecutionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CancelMaintenanceWindowExecutionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CancelMaintenanceWindowExecutionResult call() throws Exception { CancelMaintenanceWindowExecutionResult result = null; try { result = executeCancelMaintenanceWindowExecution(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 createActivationAsync(CreateActivationRequest request) { return createActivationAsync(request, null); } @Override public java.util.concurrent.Future createActivationAsync(final CreateActivationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateActivationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateActivationResult call() throws Exception { CreateActivationResult result = null; try { result = executeCreateActivation(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 createAssociationAsync(CreateAssociationRequest request) { return createAssociationAsync(request, null); } @Override public java.util.concurrent.Future createAssociationAsync(final CreateAssociationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateAssociationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateAssociationResult call() throws Exception { CreateAssociationResult result = null; try { result = executeCreateAssociation(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 createAssociationBatchAsync(CreateAssociationBatchRequest request) { return createAssociationBatchAsync(request, null); } @Override public java.util.concurrent.Future createAssociationBatchAsync(final CreateAssociationBatchRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateAssociationBatchRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateAssociationBatchResult call() throws Exception { CreateAssociationBatchResult result = null; try { result = executeCreateAssociationBatch(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 createDocumentAsync(CreateDocumentRequest request) { return createDocumentAsync(request, null); } @Override public java.util.concurrent.Future createDocumentAsync(final CreateDocumentRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateDocumentRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateDocumentResult call() throws Exception { CreateDocumentResult result = null; try { result = executeCreateDocument(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 createMaintenanceWindowAsync(CreateMaintenanceWindowRequest request) { return createMaintenanceWindowAsync(request, null); } @Override public java.util.concurrent.Future createMaintenanceWindowAsync(final CreateMaintenanceWindowRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateMaintenanceWindowRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateMaintenanceWindowResult call() throws Exception { CreateMaintenanceWindowResult result = null; try { result = executeCreateMaintenanceWindow(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 createOpsItemAsync(CreateOpsItemRequest request) { return createOpsItemAsync(request, null); } @Override public java.util.concurrent.Future createOpsItemAsync(final CreateOpsItemRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateOpsItemRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateOpsItemResult call() throws Exception { CreateOpsItemResult result = null; try { result = executeCreateOpsItem(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 createOpsMetadataAsync(CreateOpsMetadataRequest request) { return createOpsMetadataAsync(request, null); } @Override public java.util.concurrent.Future createOpsMetadataAsync(final CreateOpsMetadataRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateOpsMetadataRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateOpsMetadataResult call() throws Exception { CreateOpsMetadataResult result = null; try { result = executeCreateOpsMetadata(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 createPatchBaselineAsync(CreatePatchBaselineRequest request) { return createPatchBaselineAsync(request, null); } @Override public java.util.concurrent.Future createPatchBaselineAsync(final CreatePatchBaselineRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreatePatchBaselineRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreatePatchBaselineResult call() throws Exception { CreatePatchBaselineResult result = null; try { result = executeCreatePatchBaseline(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 createResourceDataSyncAsync(CreateResourceDataSyncRequest request) { return createResourceDataSyncAsync(request, null); } @Override public java.util.concurrent.Future createResourceDataSyncAsync(final CreateResourceDataSyncRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateResourceDataSyncRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateResourceDataSyncResult call() throws Exception { CreateResourceDataSyncResult result = null; try { result = executeCreateResourceDataSync(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 deleteActivationAsync(DeleteActivationRequest request) { return deleteActivationAsync(request, null); } @Override public java.util.concurrent.Future deleteActivationAsync(final DeleteActivationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteActivationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteActivationResult call() throws Exception { DeleteActivationResult result = null; try { result = executeDeleteActivation(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 deleteAssociationAsync(DeleteAssociationRequest request) { return deleteAssociationAsync(request, null); } @Override public java.util.concurrent.Future deleteAssociationAsync(final DeleteAssociationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteAssociationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteAssociationResult call() throws Exception { DeleteAssociationResult result = null; try { result = executeDeleteAssociation(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 deleteDocumentAsync(DeleteDocumentRequest request) { return deleteDocumentAsync(request, null); } @Override public java.util.concurrent.Future deleteDocumentAsync(final DeleteDocumentRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteDocumentRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteDocumentResult call() throws Exception { DeleteDocumentResult result = null; try { result = executeDeleteDocument(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 deleteInventoryAsync(DeleteInventoryRequest request) { return deleteInventoryAsync(request, null); } @Override public java.util.concurrent.Future deleteInventoryAsync(final DeleteInventoryRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteInventoryRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteInventoryResult call() throws Exception { DeleteInventoryResult result = null; try { result = executeDeleteInventory(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 deleteMaintenanceWindowAsync(DeleteMaintenanceWindowRequest request) { return deleteMaintenanceWindowAsync(request, null); } @Override public java.util.concurrent.Future deleteMaintenanceWindowAsync(final DeleteMaintenanceWindowRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteMaintenanceWindowRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteMaintenanceWindowResult call() throws Exception { DeleteMaintenanceWindowResult result = null; try { result = executeDeleteMaintenanceWindow(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 deleteOpsItemAsync(DeleteOpsItemRequest request) { return deleteOpsItemAsync(request, null); } @Override public java.util.concurrent.Future deleteOpsItemAsync(final DeleteOpsItemRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteOpsItemRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteOpsItemResult call() throws Exception { DeleteOpsItemResult result = null; try { result = executeDeleteOpsItem(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 deleteOpsMetadataAsync(DeleteOpsMetadataRequest request) { return deleteOpsMetadataAsync(request, null); } @Override public java.util.concurrent.Future deleteOpsMetadataAsync(final DeleteOpsMetadataRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteOpsMetadataRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteOpsMetadataResult call() throws Exception { DeleteOpsMetadataResult result = null; try { result = executeDeleteOpsMetadata(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 deleteParameterAsync(DeleteParameterRequest request) { return deleteParameterAsync(request, null); } @Override public java.util.concurrent.Future deleteParameterAsync(final DeleteParameterRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteParameterRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteParameterResult call() throws Exception { DeleteParameterResult result = null; try { result = executeDeleteParameter(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 deleteParametersAsync(DeleteParametersRequest request) { return deleteParametersAsync(request, null); } @Override public java.util.concurrent.Future deleteParametersAsync(final DeleteParametersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteParametersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteParametersResult call() throws Exception { DeleteParametersResult result = null; try { result = executeDeleteParameters(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 deletePatchBaselineAsync(DeletePatchBaselineRequest request) { return deletePatchBaselineAsync(request, null); } @Override public java.util.concurrent.Future deletePatchBaselineAsync(final DeletePatchBaselineRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeletePatchBaselineRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeletePatchBaselineResult call() throws Exception { DeletePatchBaselineResult result = null; try { result = executeDeletePatchBaseline(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 deleteResourceDataSyncAsync(DeleteResourceDataSyncRequest request) { return deleteResourceDataSyncAsync(request, null); } @Override public java.util.concurrent.Future deleteResourceDataSyncAsync(final DeleteResourceDataSyncRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteResourceDataSyncRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteResourceDataSyncResult call() throws Exception { DeleteResourceDataSyncResult result = null; try { result = executeDeleteResourceDataSync(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 deleteResourcePolicyAsync(DeleteResourcePolicyRequest request) { return deleteResourcePolicyAsync(request, null); } @Override public java.util.concurrent.Future deleteResourcePolicyAsync(final DeleteResourcePolicyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteResourcePolicyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteResourcePolicyResult call() throws Exception { DeleteResourcePolicyResult result = null; try { result = executeDeleteResourcePolicy(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 deregisterManagedInstanceAsync(DeregisterManagedInstanceRequest request) { return deregisterManagedInstanceAsync(request, null); } @Override public java.util.concurrent.Future deregisterManagedInstanceAsync(final DeregisterManagedInstanceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeregisterManagedInstanceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeregisterManagedInstanceResult call() throws Exception { DeregisterManagedInstanceResult result = null; try { result = executeDeregisterManagedInstance(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 deregisterPatchBaselineForPatchGroupAsync( DeregisterPatchBaselineForPatchGroupRequest request) { return deregisterPatchBaselineForPatchGroupAsync(request, null); } @Override public java.util.concurrent.Future deregisterPatchBaselineForPatchGroupAsync( final DeregisterPatchBaselineForPatchGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeregisterPatchBaselineForPatchGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeregisterPatchBaselineForPatchGroupResult call() throws Exception { DeregisterPatchBaselineForPatchGroupResult result = null; try { result = executeDeregisterPatchBaselineForPatchGroup(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 deregisterTargetFromMaintenanceWindowAsync( DeregisterTargetFromMaintenanceWindowRequest request) { return deregisterTargetFromMaintenanceWindowAsync(request, null); } @Override public java.util.concurrent.Future deregisterTargetFromMaintenanceWindowAsync( final DeregisterTargetFromMaintenanceWindowRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeregisterTargetFromMaintenanceWindowRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeregisterTargetFromMaintenanceWindowResult call() throws Exception { DeregisterTargetFromMaintenanceWindowResult result = null; try { result = executeDeregisterTargetFromMaintenanceWindow(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 deregisterTaskFromMaintenanceWindowAsync( DeregisterTaskFromMaintenanceWindowRequest request) { return deregisterTaskFromMaintenanceWindowAsync(request, null); } @Override public java.util.concurrent.Future deregisterTaskFromMaintenanceWindowAsync( final DeregisterTaskFromMaintenanceWindowRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeregisterTaskFromMaintenanceWindowRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeregisterTaskFromMaintenanceWindowResult call() throws Exception { DeregisterTaskFromMaintenanceWindowResult result = null; try { result = executeDeregisterTaskFromMaintenanceWindow(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 describeActivationsAsync(DescribeActivationsRequest request) { return describeActivationsAsync(request, null); } @Override public java.util.concurrent.Future describeActivationsAsync(final DescribeActivationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeActivationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeActivationsResult call() throws Exception { DescribeActivationsResult result = null; try { result = executeDescribeActivations(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 describeAssociationAsync(DescribeAssociationRequest request) { return describeAssociationAsync(request, null); } @Override public java.util.concurrent.Future describeAssociationAsync(final DescribeAssociationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeAssociationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeAssociationResult call() throws Exception { DescribeAssociationResult result = null; try { result = executeDescribeAssociation(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 describeAssociationExecutionTargetsAsync( DescribeAssociationExecutionTargetsRequest request) { return describeAssociationExecutionTargetsAsync(request, null); } @Override public java.util.concurrent.Future describeAssociationExecutionTargetsAsync( final DescribeAssociationExecutionTargetsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeAssociationExecutionTargetsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeAssociationExecutionTargetsResult call() throws Exception { DescribeAssociationExecutionTargetsResult result = null; try { result = executeDescribeAssociationExecutionTargets(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 describeAssociationExecutionsAsync(DescribeAssociationExecutionsRequest request) { return describeAssociationExecutionsAsync(request, null); } @Override public java.util.concurrent.Future describeAssociationExecutionsAsync( final DescribeAssociationExecutionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeAssociationExecutionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeAssociationExecutionsResult call() throws Exception { DescribeAssociationExecutionsResult result = null; try { result = executeDescribeAssociationExecutions(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 describeAutomationExecutionsAsync(DescribeAutomationExecutionsRequest request) { return describeAutomationExecutionsAsync(request, null); } @Override public java.util.concurrent.Future describeAutomationExecutionsAsync(final DescribeAutomationExecutionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeAutomationExecutionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeAutomationExecutionsResult call() throws Exception { DescribeAutomationExecutionsResult result = null; try { result = executeDescribeAutomationExecutions(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 describeAutomationStepExecutionsAsync( DescribeAutomationStepExecutionsRequest request) { return describeAutomationStepExecutionsAsync(request, null); } @Override public java.util.concurrent.Future describeAutomationStepExecutionsAsync( final DescribeAutomationStepExecutionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeAutomationStepExecutionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeAutomationStepExecutionsResult call() throws Exception { DescribeAutomationStepExecutionsResult result = null; try { result = executeDescribeAutomationStepExecutions(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 describeAvailablePatchesAsync(DescribeAvailablePatchesRequest request) { return describeAvailablePatchesAsync(request, null); } @Override public java.util.concurrent.Future describeAvailablePatchesAsync(final DescribeAvailablePatchesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeAvailablePatchesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeAvailablePatchesResult call() throws Exception { DescribeAvailablePatchesResult result = null; try { result = executeDescribeAvailablePatches(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 describeDocumentAsync(DescribeDocumentRequest request) { return describeDocumentAsync(request, null); } @Override public java.util.concurrent.Future describeDocumentAsync(final DescribeDocumentRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeDocumentRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeDocumentResult call() throws Exception { DescribeDocumentResult result = null; try { result = executeDescribeDocument(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 describeDocumentPermissionAsync(DescribeDocumentPermissionRequest request) { return describeDocumentPermissionAsync(request, null); } @Override public java.util.concurrent.Future describeDocumentPermissionAsync(final DescribeDocumentPermissionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeDocumentPermissionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeDocumentPermissionResult call() throws Exception { DescribeDocumentPermissionResult result = null; try { result = executeDescribeDocumentPermission(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 describeEffectiveInstanceAssociationsAsync( DescribeEffectiveInstanceAssociationsRequest request) { return describeEffectiveInstanceAssociationsAsync(request, null); } @Override public java.util.concurrent.Future describeEffectiveInstanceAssociationsAsync( final DescribeEffectiveInstanceAssociationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeEffectiveInstanceAssociationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeEffectiveInstanceAssociationsResult call() throws Exception { DescribeEffectiveInstanceAssociationsResult result = null; try { result = executeDescribeEffectiveInstanceAssociations(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 describeEffectivePatchesForPatchBaselineAsync( DescribeEffectivePatchesForPatchBaselineRequest request) { return describeEffectivePatchesForPatchBaselineAsync(request, null); } @Override public java.util.concurrent.Future describeEffectivePatchesForPatchBaselineAsync( final DescribeEffectivePatchesForPatchBaselineRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeEffectivePatchesForPatchBaselineRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeEffectivePatchesForPatchBaselineResult call() throws Exception { DescribeEffectivePatchesForPatchBaselineResult result = null; try { result = executeDescribeEffectivePatchesForPatchBaseline(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 describeInstanceAssociationsStatusAsync( DescribeInstanceAssociationsStatusRequest request) { return describeInstanceAssociationsStatusAsync(request, null); } @Override public java.util.concurrent.Future describeInstanceAssociationsStatusAsync( final DescribeInstanceAssociationsStatusRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeInstanceAssociationsStatusRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeInstanceAssociationsStatusResult call() throws Exception { DescribeInstanceAssociationsStatusResult result = null; try { result = executeDescribeInstanceAssociationsStatus(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 describeInstanceInformationAsync(DescribeInstanceInformationRequest request) { return describeInstanceInformationAsync(request, null); } @Override public java.util.concurrent.Future describeInstanceInformationAsync(final DescribeInstanceInformationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeInstanceInformationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeInstanceInformationResult call() throws Exception { DescribeInstanceInformationResult result = null; try { result = executeDescribeInstanceInformation(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 describeInstancePatchStatesAsync(DescribeInstancePatchStatesRequest request) { return describeInstancePatchStatesAsync(request, null); } @Override public java.util.concurrent.Future describeInstancePatchStatesAsync(final DescribeInstancePatchStatesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeInstancePatchStatesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeInstancePatchStatesResult call() throws Exception { DescribeInstancePatchStatesResult result = null; try { result = executeDescribeInstancePatchStates(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 describeInstancePatchStatesForPatchGroupAsync( DescribeInstancePatchStatesForPatchGroupRequest request) { return describeInstancePatchStatesForPatchGroupAsync(request, null); } @Override public java.util.concurrent.Future describeInstancePatchStatesForPatchGroupAsync( final DescribeInstancePatchStatesForPatchGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeInstancePatchStatesForPatchGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeInstancePatchStatesForPatchGroupResult call() throws Exception { DescribeInstancePatchStatesForPatchGroupResult result = null; try { result = executeDescribeInstancePatchStatesForPatchGroup(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 describeInstancePatchesAsync(DescribeInstancePatchesRequest request) { return describeInstancePatchesAsync(request, null); } @Override public java.util.concurrent.Future describeInstancePatchesAsync(final DescribeInstancePatchesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeInstancePatchesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeInstancePatchesResult call() throws Exception { DescribeInstancePatchesResult result = null; try { result = executeDescribeInstancePatches(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 describeInstancePropertiesAsync(DescribeInstancePropertiesRequest request) { return describeInstancePropertiesAsync(request, null); } @Override public java.util.concurrent.Future describeInstancePropertiesAsync(final DescribeInstancePropertiesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeInstancePropertiesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeInstancePropertiesResult call() throws Exception { DescribeInstancePropertiesResult result = null; try { result = executeDescribeInstanceProperties(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 describeInventoryDeletionsAsync(DescribeInventoryDeletionsRequest request) { return describeInventoryDeletionsAsync(request, null); } @Override public java.util.concurrent.Future describeInventoryDeletionsAsync(final DescribeInventoryDeletionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeInventoryDeletionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeInventoryDeletionsResult call() throws Exception { DescribeInventoryDeletionsResult result = null; try { result = executeDescribeInventoryDeletions(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 describeMaintenanceWindowExecutionTaskInvocationsAsync( DescribeMaintenanceWindowExecutionTaskInvocationsRequest request) { return describeMaintenanceWindowExecutionTaskInvocationsAsync(request, null); } @Override public java.util.concurrent.Future describeMaintenanceWindowExecutionTaskInvocationsAsync( final DescribeMaintenanceWindowExecutionTaskInvocationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeMaintenanceWindowExecutionTaskInvocationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeMaintenanceWindowExecutionTaskInvocationsResult call() throws Exception { DescribeMaintenanceWindowExecutionTaskInvocationsResult result = null; try { result = executeDescribeMaintenanceWindowExecutionTaskInvocations(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 describeMaintenanceWindowExecutionTasksAsync( DescribeMaintenanceWindowExecutionTasksRequest request) { return describeMaintenanceWindowExecutionTasksAsync(request, null); } @Override public java.util.concurrent.Future describeMaintenanceWindowExecutionTasksAsync( final DescribeMaintenanceWindowExecutionTasksRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeMaintenanceWindowExecutionTasksRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeMaintenanceWindowExecutionTasksResult call() throws Exception { DescribeMaintenanceWindowExecutionTasksResult result = null; try { result = executeDescribeMaintenanceWindowExecutionTasks(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 describeMaintenanceWindowExecutionsAsync( DescribeMaintenanceWindowExecutionsRequest request) { return describeMaintenanceWindowExecutionsAsync(request, null); } @Override public java.util.concurrent.Future describeMaintenanceWindowExecutionsAsync( final DescribeMaintenanceWindowExecutionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeMaintenanceWindowExecutionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeMaintenanceWindowExecutionsResult call() throws Exception { DescribeMaintenanceWindowExecutionsResult result = null; try { result = executeDescribeMaintenanceWindowExecutions(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 describeMaintenanceWindowScheduleAsync( DescribeMaintenanceWindowScheduleRequest request) { return describeMaintenanceWindowScheduleAsync(request, null); } @Override public java.util.concurrent.Future describeMaintenanceWindowScheduleAsync( final DescribeMaintenanceWindowScheduleRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeMaintenanceWindowScheduleRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeMaintenanceWindowScheduleResult call() throws Exception { DescribeMaintenanceWindowScheduleResult result = null; try { result = executeDescribeMaintenanceWindowSchedule(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 describeMaintenanceWindowTargetsAsync( DescribeMaintenanceWindowTargetsRequest request) { return describeMaintenanceWindowTargetsAsync(request, null); } @Override public java.util.concurrent.Future describeMaintenanceWindowTargetsAsync( final DescribeMaintenanceWindowTargetsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeMaintenanceWindowTargetsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeMaintenanceWindowTargetsResult call() throws Exception { DescribeMaintenanceWindowTargetsResult result = null; try { result = executeDescribeMaintenanceWindowTargets(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 describeMaintenanceWindowTasksAsync(DescribeMaintenanceWindowTasksRequest request) { return describeMaintenanceWindowTasksAsync(request, null); } @Override public java.util.concurrent.Future describeMaintenanceWindowTasksAsync( final DescribeMaintenanceWindowTasksRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeMaintenanceWindowTasksRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeMaintenanceWindowTasksResult call() throws Exception { DescribeMaintenanceWindowTasksResult result = null; try { result = executeDescribeMaintenanceWindowTasks(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 describeMaintenanceWindowsAsync(DescribeMaintenanceWindowsRequest request) { return describeMaintenanceWindowsAsync(request, null); } @Override public java.util.concurrent.Future describeMaintenanceWindowsAsync(final DescribeMaintenanceWindowsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeMaintenanceWindowsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeMaintenanceWindowsResult call() throws Exception { DescribeMaintenanceWindowsResult result = null; try { result = executeDescribeMaintenanceWindows(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 describeMaintenanceWindowsForTargetAsync( DescribeMaintenanceWindowsForTargetRequest request) { return describeMaintenanceWindowsForTargetAsync(request, null); } @Override public java.util.concurrent.Future describeMaintenanceWindowsForTargetAsync( final DescribeMaintenanceWindowsForTargetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeMaintenanceWindowsForTargetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeMaintenanceWindowsForTargetResult call() throws Exception { DescribeMaintenanceWindowsForTargetResult result = null; try { result = executeDescribeMaintenanceWindowsForTarget(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 describeOpsItemsAsync(DescribeOpsItemsRequest request) { return describeOpsItemsAsync(request, null); } @Override public java.util.concurrent.Future describeOpsItemsAsync(final DescribeOpsItemsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeOpsItemsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeOpsItemsResult call() throws Exception { DescribeOpsItemsResult result = null; try { result = executeDescribeOpsItems(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 describeParametersAsync(DescribeParametersRequest request) { return describeParametersAsync(request, null); } @Override public java.util.concurrent.Future describeParametersAsync(final DescribeParametersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeParametersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeParametersResult call() throws Exception { DescribeParametersResult result = null; try { result = executeDescribeParameters(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 describePatchBaselinesAsync(DescribePatchBaselinesRequest request) { return describePatchBaselinesAsync(request, null); } @Override public java.util.concurrent.Future describePatchBaselinesAsync(final DescribePatchBaselinesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribePatchBaselinesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribePatchBaselinesResult call() throws Exception { DescribePatchBaselinesResult result = null; try { result = executeDescribePatchBaselines(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 describePatchGroupStateAsync(DescribePatchGroupStateRequest request) { return describePatchGroupStateAsync(request, null); } @Override public java.util.concurrent.Future describePatchGroupStateAsync(final DescribePatchGroupStateRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribePatchGroupStateRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribePatchGroupStateResult call() throws Exception { DescribePatchGroupStateResult result = null; try { result = executeDescribePatchGroupState(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 describePatchGroupsAsync(DescribePatchGroupsRequest request) { return describePatchGroupsAsync(request, null); } @Override public java.util.concurrent.Future describePatchGroupsAsync(final DescribePatchGroupsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribePatchGroupsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribePatchGroupsResult call() throws Exception { DescribePatchGroupsResult result = null; try { result = executeDescribePatchGroups(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 describePatchPropertiesAsync(DescribePatchPropertiesRequest request) { return describePatchPropertiesAsync(request, null); } @Override public java.util.concurrent.Future describePatchPropertiesAsync(final DescribePatchPropertiesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribePatchPropertiesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribePatchPropertiesResult call() throws Exception { DescribePatchPropertiesResult result = null; try { result = executeDescribePatchProperties(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 describeSessionsAsync(DescribeSessionsRequest request) { return describeSessionsAsync(request, null); } @Override public java.util.concurrent.Future describeSessionsAsync(final DescribeSessionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeSessionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeSessionsResult call() throws Exception { DescribeSessionsResult result = null; try { result = executeDescribeSessions(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 disassociateOpsItemRelatedItemAsync(DisassociateOpsItemRelatedItemRequest request) { return disassociateOpsItemRelatedItemAsync(request, null); } @Override public java.util.concurrent.Future disassociateOpsItemRelatedItemAsync( final DisassociateOpsItemRelatedItemRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DisassociateOpsItemRelatedItemRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DisassociateOpsItemRelatedItemResult call() throws Exception { DisassociateOpsItemRelatedItemResult result = null; try { result = executeDisassociateOpsItemRelatedItem(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 getAutomationExecutionAsync(GetAutomationExecutionRequest request) { return getAutomationExecutionAsync(request, null); } @Override public java.util.concurrent.Future getAutomationExecutionAsync(final GetAutomationExecutionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetAutomationExecutionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetAutomationExecutionResult call() throws Exception { GetAutomationExecutionResult result = null; try { result = executeGetAutomationExecution(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 getCalendarStateAsync(GetCalendarStateRequest request) { return getCalendarStateAsync(request, null); } @Override public java.util.concurrent.Future getCalendarStateAsync(final GetCalendarStateRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetCalendarStateRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetCalendarStateResult call() throws Exception { GetCalendarStateResult result = null; try { result = executeGetCalendarState(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 getCommandInvocationAsync(GetCommandInvocationRequest request) { return getCommandInvocationAsync(request, null); } @Override public java.util.concurrent.Future getCommandInvocationAsync(final GetCommandInvocationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetCommandInvocationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetCommandInvocationResult call() throws Exception { GetCommandInvocationResult result = null; try { result = executeGetCommandInvocation(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 getConnectionStatusAsync(GetConnectionStatusRequest request) { return getConnectionStatusAsync(request, null); } @Override public java.util.concurrent.Future getConnectionStatusAsync(final GetConnectionStatusRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetConnectionStatusRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetConnectionStatusResult call() throws Exception { GetConnectionStatusResult result = null; try { result = executeGetConnectionStatus(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 getDefaultPatchBaselineAsync(GetDefaultPatchBaselineRequest request) { return getDefaultPatchBaselineAsync(request, null); } @Override public java.util.concurrent.Future getDefaultPatchBaselineAsync(final GetDefaultPatchBaselineRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetDefaultPatchBaselineRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetDefaultPatchBaselineResult call() throws Exception { GetDefaultPatchBaselineResult result = null; try { result = executeGetDefaultPatchBaseline(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 getDeployablePatchSnapshotForInstanceAsync( GetDeployablePatchSnapshotForInstanceRequest request) { return getDeployablePatchSnapshotForInstanceAsync(request, null); } @Override public java.util.concurrent.Future getDeployablePatchSnapshotForInstanceAsync( final GetDeployablePatchSnapshotForInstanceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetDeployablePatchSnapshotForInstanceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetDeployablePatchSnapshotForInstanceResult call() throws Exception { GetDeployablePatchSnapshotForInstanceResult result = null; try { result = executeGetDeployablePatchSnapshotForInstance(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 getDocumentAsync(GetDocumentRequest request) { return getDocumentAsync(request, null); } @Override public java.util.concurrent.Future getDocumentAsync(final GetDocumentRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetDocumentRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetDocumentResult call() throws Exception { GetDocumentResult result = null; try { result = executeGetDocument(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 getInventoryAsync(GetInventoryRequest request) { return getInventoryAsync(request, null); } @Override public java.util.concurrent.Future getInventoryAsync(final GetInventoryRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetInventoryRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetInventoryResult call() throws Exception { GetInventoryResult result = null; try { result = executeGetInventory(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 getInventorySchemaAsync(GetInventorySchemaRequest request) { return getInventorySchemaAsync(request, null); } @Override public java.util.concurrent.Future getInventorySchemaAsync(final GetInventorySchemaRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetInventorySchemaRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetInventorySchemaResult call() throws Exception { GetInventorySchemaResult result = null; try { result = executeGetInventorySchema(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 getMaintenanceWindowAsync(GetMaintenanceWindowRequest request) { return getMaintenanceWindowAsync(request, null); } @Override public java.util.concurrent.Future getMaintenanceWindowAsync(final GetMaintenanceWindowRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetMaintenanceWindowRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetMaintenanceWindowResult call() throws Exception { GetMaintenanceWindowResult result = null; try { result = executeGetMaintenanceWindow(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 getMaintenanceWindowExecutionAsync(GetMaintenanceWindowExecutionRequest request) { return getMaintenanceWindowExecutionAsync(request, null); } @Override public java.util.concurrent.Future getMaintenanceWindowExecutionAsync( final GetMaintenanceWindowExecutionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetMaintenanceWindowExecutionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetMaintenanceWindowExecutionResult call() throws Exception { GetMaintenanceWindowExecutionResult result = null; try { result = executeGetMaintenanceWindowExecution(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 getMaintenanceWindowExecutionTaskAsync( GetMaintenanceWindowExecutionTaskRequest request) { return getMaintenanceWindowExecutionTaskAsync(request, null); } @Override public java.util.concurrent.Future getMaintenanceWindowExecutionTaskAsync( final GetMaintenanceWindowExecutionTaskRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetMaintenanceWindowExecutionTaskRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetMaintenanceWindowExecutionTaskResult call() throws Exception { GetMaintenanceWindowExecutionTaskResult result = null; try { result = executeGetMaintenanceWindowExecutionTask(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 getMaintenanceWindowExecutionTaskInvocationAsync( GetMaintenanceWindowExecutionTaskInvocationRequest request) { return getMaintenanceWindowExecutionTaskInvocationAsync(request, null); } @Override public java.util.concurrent.Future getMaintenanceWindowExecutionTaskInvocationAsync( final GetMaintenanceWindowExecutionTaskInvocationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetMaintenanceWindowExecutionTaskInvocationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetMaintenanceWindowExecutionTaskInvocationResult call() throws Exception { GetMaintenanceWindowExecutionTaskInvocationResult result = null; try { result = executeGetMaintenanceWindowExecutionTaskInvocation(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 getMaintenanceWindowTaskAsync(GetMaintenanceWindowTaskRequest request) { return getMaintenanceWindowTaskAsync(request, null); } @Override public java.util.concurrent.Future getMaintenanceWindowTaskAsync(final GetMaintenanceWindowTaskRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetMaintenanceWindowTaskRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetMaintenanceWindowTaskResult call() throws Exception { GetMaintenanceWindowTaskResult result = null; try { result = executeGetMaintenanceWindowTask(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 getOpsItemAsync(GetOpsItemRequest request) { return getOpsItemAsync(request, null); } @Override public java.util.concurrent.Future getOpsItemAsync(final GetOpsItemRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetOpsItemRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetOpsItemResult call() throws Exception { GetOpsItemResult result = null; try { result = executeGetOpsItem(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 getOpsMetadataAsync(GetOpsMetadataRequest request) { return getOpsMetadataAsync(request, null); } @Override public java.util.concurrent.Future getOpsMetadataAsync(final GetOpsMetadataRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetOpsMetadataRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetOpsMetadataResult call() throws Exception { GetOpsMetadataResult result = null; try { result = executeGetOpsMetadata(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 getOpsSummaryAsync(GetOpsSummaryRequest request) { return getOpsSummaryAsync(request, null); } @Override public java.util.concurrent.Future getOpsSummaryAsync(final GetOpsSummaryRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetOpsSummaryRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetOpsSummaryResult call() throws Exception { GetOpsSummaryResult result = null; try { result = executeGetOpsSummary(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 getParameterAsync(GetParameterRequest request) { return getParameterAsync(request, null); } @Override public java.util.concurrent.Future getParameterAsync(final GetParameterRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetParameterRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetParameterResult call() throws Exception { GetParameterResult result = null; try { result = executeGetParameter(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 getParameterHistoryAsync(GetParameterHistoryRequest request) { return getParameterHistoryAsync(request, null); } @Override public java.util.concurrent.Future getParameterHistoryAsync(final GetParameterHistoryRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetParameterHistoryRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetParameterHistoryResult call() throws Exception { GetParameterHistoryResult result = null; try { result = executeGetParameterHistory(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 getParametersAsync(GetParametersRequest request) { return getParametersAsync(request, null); } @Override public java.util.concurrent.Future getParametersAsync(final GetParametersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetParametersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetParametersResult call() throws Exception { GetParametersResult result = null; try { result = executeGetParameters(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 getParametersByPathAsync(GetParametersByPathRequest request) { return getParametersByPathAsync(request, null); } @Override public java.util.concurrent.Future getParametersByPathAsync(final GetParametersByPathRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetParametersByPathRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetParametersByPathResult call() throws Exception { GetParametersByPathResult result = null; try { result = executeGetParametersByPath(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 getPatchBaselineAsync(GetPatchBaselineRequest request) { return getPatchBaselineAsync(request, null); } @Override public java.util.concurrent.Future getPatchBaselineAsync(final GetPatchBaselineRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetPatchBaselineRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetPatchBaselineResult call() throws Exception { GetPatchBaselineResult result = null; try { result = executeGetPatchBaseline(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 getPatchBaselineForPatchGroupAsync(GetPatchBaselineForPatchGroupRequest request) { return getPatchBaselineForPatchGroupAsync(request, null); } @Override public java.util.concurrent.Future getPatchBaselineForPatchGroupAsync( final GetPatchBaselineForPatchGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetPatchBaselineForPatchGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetPatchBaselineForPatchGroupResult call() throws Exception { GetPatchBaselineForPatchGroupResult result = null; try { result = executeGetPatchBaselineForPatchGroup(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 getResourcePoliciesAsync(GetResourcePoliciesRequest request) { return getResourcePoliciesAsync(request, null); } @Override public java.util.concurrent.Future getResourcePoliciesAsync(final GetResourcePoliciesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetResourcePoliciesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetResourcePoliciesResult call() throws Exception { GetResourcePoliciesResult result = null; try { result = executeGetResourcePolicies(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 getServiceSettingAsync(GetServiceSettingRequest request) { return getServiceSettingAsync(request, null); } @Override public java.util.concurrent.Future getServiceSettingAsync(final GetServiceSettingRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetServiceSettingRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetServiceSettingResult call() throws Exception { GetServiceSettingResult result = null; try { result = executeGetServiceSetting(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 labelParameterVersionAsync(LabelParameterVersionRequest request) { return labelParameterVersionAsync(request, null); } @Override public java.util.concurrent.Future labelParameterVersionAsync(final LabelParameterVersionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final LabelParameterVersionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public LabelParameterVersionResult call() throws Exception { LabelParameterVersionResult result = null; try { result = executeLabelParameterVersion(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 listAssociationVersionsAsync(ListAssociationVersionsRequest request) { return listAssociationVersionsAsync(request, null); } @Override public java.util.concurrent.Future listAssociationVersionsAsync(final ListAssociationVersionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAssociationVersionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAssociationVersionsResult call() throws Exception { ListAssociationVersionsResult result = null; try { result = executeListAssociationVersions(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 listAssociationsAsync(ListAssociationsRequest request) { return listAssociationsAsync(request, null); } @Override public java.util.concurrent.Future listAssociationsAsync(final ListAssociationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAssociationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAssociationsResult call() throws Exception { ListAssociationsResult result = null; try { result = executeListAssociations(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 listCommandInvocationsAsync(ListCommandInvocationsRequest request) { return listCommandInvocationsAsync(request, null); } @Override public java.util.concurrent.Future listCommandInvocationsAsync(final ListCommandInvocationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListCommandInvocationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListCommandInvocationsResult call() throws Exception { ListCommandInvocationsResult result = null; try { result = executeListCommandInvocations(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 listCommandsAsync(ListCommandsRequest request) { return listCommandsAsync(request, null); } @Override public java.util.concurrent.Future listCommandsAsync(final ListCommandsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListCommandsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListCommandsResult call() throws Exception { ListCommandsResult result = null; try { result = executeListCommands(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 listComplianceItemsAsync(ListComplianceItemsRequest request) { return listComplianceItemsAsync(request, null); } @Override public java.util.concurrent.Future listComplianceItemsAsync(final ListComplianceItemsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListComplianceItemsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListComplianceItemsResult call() throws Exception { ListComplianceItemsResult result = null; try { result = executeListComplianceItems(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 listComplianceSummariesAsync(ListComplianceSummariesRequest request) { return listComplianceSummariesAsync(request, null); } @Override public java.util.concurrent.Future listComplianceSummariesAsync(final ListComplianceSummariesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListComplianceSummariesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListComplianceSummariesResult call() throws Exception { ListComplianceSummariesResult result = null; try { result = executeListComplianceSummaries(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 listDocumentMetadataHistoryAsync(ListDocumentMetadataHistoryRequest request) { return listDocumentMetadataHistoryAsync(request, null); } @Override public java.util.concurrent.Future listDocumentMetadataHistoryAsync(final ListDocumentMetadataHistoryRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListDocumentMetadataHistoryRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListDocumentMetadataHistoryResult call() throws Exception { ListDocumentMetadataHistoryResult result = null; try { result = executeListDocumentMetadataHistory(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 listDocumentVersionsAsync(ListDocumentVersionsRequest request) { return listDocumentVersionsAsync(request, null); } @Override public java.util.concurrent.Future listDocumentVersionsAsync(final ListDocumentVersionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListDocumentVersionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListDocumentVersionsResult call() throws Exception { ListDocumentVersionsResult result = null; try { result = executeListDocumentVersions(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 listDocumentsAsync(ListDocumentsRequest request) { return listDocumentsAsync(request, null); } @Override public java.util.concurrent.Future listDocumentsAsync(final ListDocumentsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListDocumentsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListDocumentsResult call() throws Exception { ListDocumentsResult result = null; try { result = executeListDocuments(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } /** * Simplified method form for invoking the ListDocuments operation. * * @see #listDocumentsAsync(ListDocumentsRequest) */ @Override public java.util.concurrent.Future listDocumentsAsync() { return listDocumentsAsync(new ListDocumentsRequest()); } /** * Simplified method form for invoking the ListDocuments operation with an AsyncHandler. * * @see #listDocumentsAsync(ListDocumentsRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future listDocumentsAsync( com.amazonaws.handlers.AsyncHandler asyncHandler) { return listDocumentsAsync(new ListDocumentsRequest(), asyncHandler); } @Override public java.util.concurrent.Future listInventoryEntriesAsync(ListInventoryEntriesRequest request) { return listInventoryEntriesAsync(request, null); } @Override public java.util.concurrent.Future listInventoryEntriesAsync(final ListInventoryEntriesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListInventoryEntriesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListInventoryEntriesResult call() throws Exception { ListInventoryEntriesResult result = null; try { result = executeListInventoryEntries(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 listOpsItemEventsAsync(ListOpsItemEventsRequest request) { return listOpsItemEventsAsync(request, null); } @Override public java.util.concurrent.Future listOpsItemEventsAsync(final ListOpsItemEventsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListOpsItemEventsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListOpsItemEventsResult call() throws Exception { ListOpsItemEventsResult result = null; try { result = executeListOpsItemEvents(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 listOpsItemRelatedItemsAsync(ListOpsItemRelatedItemsRequest request) { return listOpsItemRelatedItemsAsync(request, null); } @Override public java.util.concurrent.Future listOpsItemRelatedItemsAsync(final ListOpsItemRelatedItemsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListOpsItemRelatedItemsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListOpsItemRelatedItemsResult call() throws Exception { ListOpsItemRelatedItemsResult result = null; try { result = executeListOpsItemRelatedItems(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 listOpsMetadataAsync(ListOpsMetadataRequest request) { return listOpsMetadataAsync(request, null); } @Override public java.util.concurrent.Future listOpsMetadataAsync(final ListOpsMetadataRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListOpsMetadataRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListOpsMetadataResult call() throws Exception { ListOpsMetadataResult result = null; try { result = executeListOpsMetadata(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 listResourceComplianceSummariesAsync( ListResourceComplianceSummariesRequest request) { return listResourceComplianceSummariesAsync(request, null); } @Override public java.util.concurrent.Future listResourceComplianceSummariesAsync( final ListResourceComplianceSummariesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListResourceComplianceSummariesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListResourceComplianceSummariesResult call() throws Exception { ListResourceComplianceSummariesResult result = null; try { result = executeListResourceComplianceSummaries(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 listResourceDataSyncAsync(ListResourceDataSyncRequest request) { return listResourceDataSyncAsync(request, null); } @Override public java.util.concurrent.Future listResourceDataSyncAsync(final ListResourceDataSyncRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListResourceDataSyncRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListResourceDataSyncResult call() throws Exception { ListResourceDataSyncResult result = null; try { result = executeListResourceDataSync(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 modifyDocumentPermissionAsync(ModifyDocumentPermissionRequest request) { return modifyDocumentPermissionAsync(request, null); } @Override public java.util.concurrent.Future modifyDocumentPermissionAsync(final ModifyDocumentPermissionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ModifyDocumentPermissionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ModifyDocumentPermissionResult call() throws Exception { ModifyDocumentPermissionResult result = null; try { result = executeModifyDocumentPermission(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 putComplianceItemsAsync(PutComplianceItemsRequest request) { return putComplianceItemsAsync(request, null); } @Override public java.util.concurrent.Future putComplianceItemsAsync(final PutComplianceItemsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutComplianceItemsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutComplianceItemsResult call() throws Exception { PutComplianceItemsResult result = null; try { result = executePutComplianceItems(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 putInventoryAsync(PutInventoryRequest request) { return putInventoryAsync(request, null); } @Override public java.util.concurrent.Future putInventoryAsync(final PutInventoryRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutInventoryRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutInventoryResult call() throws Exception { PutInventoryResult result = null; try { result = executePutInventory(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 putParameterAsync(PutParameterRequest request) { return putParameterAsync(request, null); } @Override public java.util.concurrent.Future putParameterAsync(final PutParameterRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutParameterRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutParameterResult call() throws Exception { PutParameterResult result = null; try { result = executePutParameter(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 putResourcePolicyAsync(PutResourcePolicyRequest request) { return putResourcePolicyAsync(request, null); } @Override public java.util.concurrent.Future putResourcePolicyAsync(final PutResourcePolicyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutResourcePolicyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutResourcePolicyResult call() throws Exception { PutResourcePolicyResult result = null; try { result = executePutResourcePolicy(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 registerDefaultPatchBaselineAsync(RegisterDefaultPatchBaselineRequest request) { return registerDefaultPatchBaselineAsync(request, null); } @Override public java.util.concurrent.Future registerDefaultPatchBaselineAsync(final RegisterDefaultPatchBaselineRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RegisterDefaultPatchBaselineRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RegisterDefaultPatchBaselineResult call() throws Exception { RegisterDefaultPatchBaselineResult result = null; try { result = executeRegisterDefaultPatchBaseline(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 registerPatchBaselineForPatchGroupAsync( RegisterPatchBaselineForPatchGroupRequest request) { return registerPatchBaselineForPatchGroupAsync(request, null); } @Override public java.util.concurrent.Future registerPatchBaselineForPatchGroupAsync( final RegisterPatchBaselineForPatchGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RegisterPatchBaselineForPatchGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RegisterPatchBaselineForPatchGroupResult call() throws Exception { RegisterPatchBaselineForPatchGroupResult result = null; try { result = executeRegisterPatchBaselineForPatchGroup(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 registerTargetWithMaintenanceWindowAsync( RegisterTargetWithMaintenanceWindowRequest request) { return registerTargetWithMaintenanceWindowAsync(request, null); } @Override public java.util.concurrent.Future registerTargetWithMaintenanceWindowAsync( final RegisterTargetWithMaintenanceWindowRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RegisterTargetWithMaintenanceWindowRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RegisterTargetWithMaintenanceWindowResult call() throws Exception { RegisterTargetWithMaintenanceWindowResult result = null; try { result = executeRegisterTargetWithMaintenanceWindow(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 registerTaskWithMaintenanceWindowAsync( RegisterTaskWithMaintenanceWindowRequest request) { return registerTaskWithMaintenanceWindowAsync(request, null); } @Override public java.util.concurrent.Future registerTaskWithMaintenanceWindowAsync( final RegisterTaskWithMaintenanceWindowRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RegisterTaskWithMaintenanceWindowRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RegisterTaskWithMaintenanceWindowResult call() throws Exception { RegisterTaskWithMaintenanceWindowResult result = null; try { result = executeRegisterTaskWithMaintenanceWindow(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 removeTagsFromResourceAsync(RemoveTagsFromResourceRequest request) { return removeTagsFromResourceAsync(request, null); } @Override public java.util.concurrent.Future removeTagsFromResourceAsync(final RemoveTagsFromResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RemoveTagsFromResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RemoveTagsFromResourceResult call() throws Exception { RemoveTagsFromResourceResult result = null; try { result = executeRemoveTagsFromResource(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 resetServiceSettingAsync(ResetServiceSettingRequest request) { return resetServiceSettingAsync(request, null); } @Override public java.util.concurrent.Future resetServiceSettingAsync(final ResetServiceSettingRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ResetServiceSettingRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ResetServiceSettingResult call() throws Exception { ResetServiceSettingResult result = null; try { result = executeResetServiceSetting(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 resumeSessionAsync(ResumeSessionRequest request) { return resumeSessionAsync(request, null); } @Override public java.util.concurrent.Future resumeSessionAsync(final ResumeSessionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ResumeSessionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ResumeSessionResult call() throws Exception { ResumeSessionResult result = null; try { result = executeResumeSession(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 sendAutomationSignalAsync(SendAutomationSignalRequest request) { return sendAutomationSignalAsync(request, null); } @Override public java.util.concurrent.Future sendAutomationSignalAsync(final SendAutomationSignalRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final SendAutomationSignalRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public SendAutomationSignalResult call() throws Exception { SendAutomationSignalResult result = null; try { result = executeSendAutomationSignal(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 sendCommandAsync(SendCommandRequest request) { return sendCommandAsync(request, null); } @Override public java.util.concurrent.Future sendCommandAsync(final SendCommandRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final SendCommandRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public SendCommandResult call() throws Exception { SendCommandResult result = null; try { result = executeSendCommand(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 startAssociationsOnceAsync(StartAssociationsOnceRequest request) { return startAssociationsOnceAsync(request, null); } @Override public java.util.concurrent.Future startAssociationsOnceAsync(final StartAssociationsOnceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StartAssociationsOnceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StartAssociationsOnceResult call() throws Exception { StartAssociationsOnceResult result = null; try { result = executeStartAssociationsOnce(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 startAutomationExecutionAsync(StartAutomationExecutionRequest request) { return startAutomationExecutionAsync(request, null); } @Override public java.util.concurrent.Future startAutomationExecutionAsync(final StartAutomationExecutionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StartAutomationExecutionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StartAutomationExecutionResult call() throws Exception { StartAutomationExecutionResult result = null; try { result = executeStartAutomationExecution(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 startChangeRequestExecutionAsync(StartChangeRequestExecutionRequest request) { return startChangeRequestExecutionAsync(request, null); } @Override public java.util.concurrent.Future startChangeRequestExecutionAsync(final StartChangeRequestExecutionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StartChangeRequestExecutionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StartChangeRequestExecutionResult call() throws Exception { StartChangeRequestExecutionResult result = null; try { result = executeStartChangeRequestExecution(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 startSessionAsync(StartSessionRequest request) { return startSessionAsync(request, null); } @Override public java.util.concurrent.Future startSessionAsync(final StartSessionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StartSessionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StartSessionResult call() throws Exception { StartSessionResult result = null; try { result = executeStartSession(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 stopAutomationExecutionAsync(StopAutomationExecutionRequest request) { return stopAutomationExecutionAsync(request, null); } @Override public java.util.concurrent.Future stopAutomationExecutionAsync(final StopAutomationExecutionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StopAutomationExecutionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StopAutomationExecutionResult call() throws Exception { StopAutomationExecutionResult result = null; try { result = executeStopAutomationExecution(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 terminateSessionAsync(TerminateSessionRequest request) { return terminateSessionAsync(request, null); } @Override public java.util.concurrent.Future terminateSessionAsync(final TerminateSessionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final TerminateSessionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public TerminateSessionResult call() throws Exception { TerminateSessionResult result = null; try { result = executeTerminateSession(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 unlabelParameterVersionAsync(UnlabelParameterVersionRequest request) { return unlabelParameterVersionAsync(request, null); } @Override public java.util.concurrent.Future unlabelParameterVersionAsync(final UnlabelParameterVersionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UnlabelParameterVersionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UnlabelParameterVersionResult call() throws Exception { UnlabelParameterVersionResult result = null; try { result = executeUnlabelParameterVersion(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 updateAssociationAsync(UpdateAssociationRequest request) { return updateAssociationAsync(request, null); } @Override public java.util.concurrent.Future updateAssociationAsync(final UpdateAssociationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAssociationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAssociationResult call() throws Exception { UpdateAssociationResult result = null; try { result = executeUpdateAssociation(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 updateAssociationStatusAsync(UpdateAssociationStatusRequest request) { return updateAssociationStatusAsync(request, null); } @Override public java.util.concurrent.Future updateAssociationStatusAsync(final UpdateAssociationStatusRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAssociationStatusRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAssociationStatusResult call() throws Exception { UpdateAssociationStatusResult result = null; try { result = executeUpdateAssociationStatus(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 updateDocumentAsync(UpdateDocumentRequest request) { return updateDocumentAsync(request, null); } @Override public java.util.concurrent.Future updateDocumentAsync(final UpdateDocumentRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateDocumentRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateDocumentResult call() throws Exception { UpdateDocumentResult result = null; try { result = executeUpdateDocument(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 updateDocumentDefaultVersionAsync(UpdateDocumentDefaultVersionRequest request) { return updateDocumentDefaultVersionAsync(request, null); } @Override public java.util.concurrent.Future updateDocumentDefaultVersionAsync(final UpdateDocumentDefaultVersionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateDocumentDefaultVersionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateDocumentDefaultVersionResult call() throws Exception { UpdateDocumentDefaultVersionResult result = null; try { result = executeUpdateDocumentDefaultVersion(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 updateDocumentMetadataAsync(UpdateDocumentMetadataRequest request) { return updateDocumentMetadataAsync(request, null); } @Override public java.util.concurrent.Future updateDocumentMetadataAsync(final UpdateDocumentMetadataRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateDocumentMetadataRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateDocumentMetadataResult call() throws Exception { UpdateDocumentMetadataResult result = null; try { result = executeUpdateDocumentMetadata(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 updateMaintenanceWindowAsync(UpdateMaintenanceWindowRequest request) { return updateMaintenanceWindowAsync(request, null); } @Override public java.util.concurrent.Future updateMaintenanceWindowAsync(final UpdateMaintenanceWindowRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateMaintenanceWindowRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateMaintenanceWindowResult call() throws Exception { UpdateMaintenanceWindowResult result = null; try { result = executeUpdateMaintenanceWindow(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 updateMaintenanceWindowTargetAsync(UpdateMaintenanceWindowTargetRequest request) { return updateMaintenanceWindowTargetAsync(request, null); } @Override public java.util.concurrent.Future updateMaintenanceWindowTargetAsync( final UpdateMaintenanceWindowTargetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateMaintenanceWindowTargetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateMaintenanceWindowTargetResult call() throws Exception { UpdateMaintenanceWindowTargetResult result = null; try { result = executeUpdateMaintenanceWindowTarget(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 updateMaintenanceWindowTaskAsync(UpdateMaintenanceWindowTaskRequest request) { return updateMaintenanceWindowTaskAsync(request, null); } @Override public java.util.concurrent.Future updateMaintenanceWindowTaskAsync(final UpdateMaintenanceWindowTaskRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateMaintenanceWindowTaskRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateMaintenanceWindowTaskResult call() throws Exception { UpdateMaintenanceWindowTaskResult result = null; try { result = executeUpdateMaintenanceWindowTask(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 updateManagedInstanceRoleAsync(UpdateManagedInstanceRoleRequest request) { return updateManagedInstanceRoleAsync(request, null); } @Override public java.util.concurrent.Future updateManagedInstanceRoleAsync(final UpdateManagedInstanceRoleRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateManagedInstanceRoleRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateManagedInstanceRoleResult call() throws Exception { UpdateManagedInstanceRoleResult result = null; try { result = executeUpdateManagedInstanceRole(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 updateOpsItemAsync(UpdateOpsItemRequest request) { return updateOpsItemAsync(request, null); } @Override public java.util.concurrent.Future updateOpsItemAsync(final UpdateOpsItemRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateOpsItemRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateOpsItemResult call() throws Exception { UpdateOpsItemResult result = null; try { result = executeUpdateOpsItem(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 updateOpsMetadataAsync(UpdateOpsMetadataRequest request) { return updateOpsMetadataAsync(request, null); } @Override public java.util.concurrent.Future updateOpsMetadataAsync(final UpdateOpsMetadataRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateOpsMetadataRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateOpsMetadataResult call() throws Exception { UpdateOpsMetadataResult result = null; try { result = executeUpdateOpsMetadata(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 updatePatchBaselineAsync(UpdatePatchBaselineRequest request) { return updatePatchBaselineAsync(request, null); } @Override public java.util.concurrent.Future updatePatchBaselineAsync(final UpdatePatchBaselineRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdatePatchBaselineRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdatePatchBaselineResult call() throws Exception { UpdatePatchBaselineResult result = null; try { result = executeUpdatePatchBaseline(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 updateResourceDataSyncAsync(UpdateResourceDataSyncRequest request) { return updateResourceDataSyncAsync(request, null); } @Override public java.util.concurrent.Future updateResourceDataSyncAsync(final UpdateResourceDataSyncRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateResourceDataSyncRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateResourceDataSyncResult call() throws Exception { UpdateResourceDataSyncResult result = null; try { result = executeUpdateResourceDataSync(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 updateServiceSettingAsync(UpdateServiceSettingRequest request) { return updateServiceSettingAsync(request, null); } @Override public java.util.concurrent.Future updateServiceSettingAsync(final UpdateServiceSettingRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateServiceSettingRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateServiceSettingResult call() throws Exception { UpdateServiceSettingResult result = null; try { result = executeUpdateServiceSetting(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