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

com.amazonaws.services.chime.AmazonChimeAsyncClient Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
Show 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.chime;

import javax.annotation.Generated;

import com.amazonaws.services.chime.model.*;
import com.amazonaws.client.AwsAsyncClientParams;
import com.amazonaws.annotation.ThreadSafe;

import java.util.concurrent.ExecutorService;

/**
 * Client for accessing Amazon Chime 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.
 * 

* *

* Most of these APIs are no longer supported and will not be updated. We recommend using the latest versions in * the Amazon Chime SDK API * reference, in the Amazon Chime SDK. *

*

* Using the latest versions requires migrating to dedicated namespaces. For more information, refer to Migrating from the Amazon * Chime namespace in the Amazon Chime SDK Developer Guide. *

* *

* The Amazon Chime application programming interface (API) is designed so administrators can perform key tasks, such as * creating and managing Amazon Chime accounts, users, and Voice Connectors. This guide provides detailed information * about the Amazon Chime API, including operations, types, inputs and outputs, and error codes. *

*

* You can use an AWS SDK, the AWS Command Line Interface (AWS CLI), or the REST API to make API calls for Amazon Chime. * We recommend using an AWS SDK or the AWS CLI. The page for each API action contains a See Also section that * includes links to information about using the action with a language-specific AWS SDK or the AWS CLI. *

*
*
Using an AWS SDK
*
*

* You don't need to write code to calculate a signature for request authentication. The SDK clients authenticate your * requests by using access keys that you provide. For more information about AWS SDKs, see the AWS Developer Center. *

*
*
Using the AWS CLI
*
*

* Use your access keys with the AWS CLI to make API calls. For information about setting up the AWS CLI, see Installing the AWS Command Line Interface * in the AWS Command Line Interface User Guide. For a list of available Amazon Chime commands, see the Amazon Chime commands in the AWS CLI * Command Reference. *

*
*
Using REST APIs
*
*

* If you use REST to make API calls, you must authenticate your request by providing a signature. Amazon Chime supports * Signature Version 4. For more information, see Signature Version 4 Signing Process * in the Amazon Web Services General Reference. *

*

* When making REST API calls, use the service name chime and REST endpoint * https://service.chime.aws.amazon.com. *

*
*
*

* Administrative permissions are controlled using AWS Identity and Access Management (IAM). For more information, see * Identity and Access Management for Amazon * Chime in the Amazon Chime Administration Guide. *

*/ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AmazonChimeAsyncClient extends AmazonChimeClient implements AmazonChimeAsync { private static final int DEFAULT_THREAD_POOL_SIZE = 50; private final java.util.concurrent.ExecutorService executorService; public static AmazonChimeAsyncClientBuilder asyncBuilder() { return AmazonChimeAsyncClientBuilder.standard(); } /** * Constructs a new asynchronous client to invoke service methods on Amazon Chime using the specified parameters. * * @param asyncClientParams * Object providing client parameters. */ AmazonChimeAsyncClient(AwsAsyncClientParams asyncClientParams) { this(asyncClientParams, false); } /** * Constructs a new asynchronous client to invoke service methods on Amazon Chime using the specified parameters. * * @param asyncClientParams * Object providing client parameters. * @param endpointDiscoveryEnabled * true will enable endpoint discovery if the service supports it. */ AmazonChimeAsyncClient(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 associatePhoneNumberWithUserAsync(AssociatePhoneNumberWithUserRequest request) { return associatePhoneNumberWithUserAsync(request, null); } @Override public java.util.concurrent.Future associatePhoneNumberWithUserAsync(final AssociatePhoneNumberWithUserRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final AssociatePhoneNumberWithUserRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public AssociatePhoneNumberWithUserResult call() throws Exception { AssociatePhoneNumberWithUserResult result = null; try { result = executeAssociatePhoneNumberWithUser(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future associatePhoneNumbersWithVoiceConnectorAsync( AssociatePhoneNumbersWithVoiceConnectorRequest request) { return associatePhoneNumbersWithVoiceConnectorAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future associatePhoneNumbersWithVoiceConnectorAsync( final AssociatePhoneNumbersWithVoiceConnectorRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final AssociatePhoneNumbersWithVoiceConnectorRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public AssociatePhoneNumbersWithVoiceConnectorResult call() throws Exception { AssociatePhoneNumbersWithVoiceConnectorResult result = null; try { result = executeAssociatePhoneNumbersWithVoiceConnector(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future associatePhoneNumbersWithVoiceConnectorGroupAsync( AssociatePhoneNumbersWithVoiceConnectorGroupRequest request) { return associatePhoneNumbersWithVoiceConnectorGroupAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future associatePhoneNumbersWithVoiceConnectorGroupAsync( final AssociatePhoneNumbersWithVoiceConnectorGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final AssociatePhoneNumbersWithVoiceConnectorGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public AssociatePhoneNumbersWithVoiceConnectorGroupResult call() throws Exception { AssociatePhoneNumbersWithVoiceConnectorGroupResult result = null; try { result = executeAssociatePhoneNumbersWithVoiceConnectorGroup(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 associateSigninDelegateGroupsWithAccountAsync( AssociateSigninDelegateGroupsWithAccountRequest request) { return associateSigninDelegateGroupsWithAccountAsync(request, null); } @Override public java.util.concurrent.Future associateSigninDelegateGroupsWithAccountAsync( final AssociateSigninDelegateGroupsWithAccountRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final AssociateSigninDelegateGroupsWithAccountRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public AssociateSigninDelegateGroupsWithAccountResult call() throws Exception { AssociateSigninDelegateGroupsWithAccountResult result = null; try { result = executeAssociateSigninDelegateGroupsWithAccount(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future batchCreateAttendeeAsync(BatchCreateAttendeeRequest request) { return batchCreateAttendeeAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future batchCreateAttendeeAsync(final BatchCreateAttendeeRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchCreateAttendeeRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchCreateAttendeeResult call() throws Exception { BatchCreateAttendeeResult result = null; try { result = executeBatchCreateAttendee(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future batchCreateChannelMembershipAsync(BatchCreateChannelMembershipRequest request) { return batchCreateChannelMembershipAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future batchCreateChannelMembershipAsync(final BatchCreateChannelMembershipRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchCreateChannelMembershipRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchCreateChannelMembershipResult call() throws Exception { BatchCreateChannelMembershipResult result = null; try { result = executeBatchCreateChannelMembership(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 batchCreateRoomMembershipAsync(BatchCreateRoomMembershipRequest request) { return batchCreateRoomMembershipAsync(request, null); } @Override public java.util.concurrent.Future batchCreateRoomMembershipAsync(final BatchCreateRoomMembershipRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchCreateRoomMembershipRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchCreateRoomMembershipResult call() throws Exception { BatchCreateRoomMembershipResult result = null; try { result = executeBatchCreateRoomMembership(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 batchDeletePhoneNumberAsync(BatchDeletePhoneNumberRequest request) { return batchDeletePhoneNumberAsync(request, null); } @Override public java.util.concurrent.Future batchDeletePhoneNumberAsync(final BatchDeletePhoneNumberRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchDeletePhoneNumberRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchDeletePhoneNumberResult call() throws Exception { BatchDeletePhoneNumberResult result = null; try { result = executeBatchDeletePhoneNumber(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 batchSuspendUserAsync(BatchSuspendUserRequest request) { return batchSuspendUserAsync(request, null); } @Override public java.util.concurrent.Future batchSuspendUserAsync(final BatchSuspendUserRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchSuspendUserRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchSuspendUserResult call() throws Exception { BatchSuspendUserResult result = null; try { result = executeBatchSuspendUser(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 batchUnsuspendUserAsync(BatchUnsuspendUserRequest request) { return batchUnsuspendUserAsync(request, null); } @Override public java.util.concurrent.Future batchUnsuspendUserAsync(final BatchUnsuspendUserRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchUnsuspendUserRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchUnsuspendUserResult call() throws Exception { BatchUnsuspendUserResult result = null; try { result = executeBatchUnsuspendUser(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 batchUpdatePhoneNumberAsync(BatchUpdatePhoneNumberRequest request) { return batchUpdatePhoneNumberAsync(request, null); } @Override public java.util.concurrent.Future batchUpdatePhoneNumberAsync(final BatchUpdatePhoneNumberRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchUpdatePhoneNumberRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchUpdatePhoneNumberResult call() throws Exception { BatchUpdatePhoneNumberResult result = null; try { result = executeBatchUpdatePhoneNumber(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 batchUpdateUserAsync(BatchUpdateUserRequest request) { return batchUpdateUserAsync(request, null); } @Override public java.util.concurrent.Future batchUpdateUserAsync(final BatchUpdateUserRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchUpdateUserRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchUpdateUserResult call() throws Exception { BatchUpdateUserResult result = null; try { result = executeBatchUpdateUser(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 createAccountAsync(CreateAccountRequest request) { return createAccountAsync(request, null); } @Override public java.util.concurrent.Future createAccountAsync(final CreateAccountRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateAccountRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateAccountResult call() throws Exception { CreateAccountResult result = null; try { result = executeCreateAccount(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future createAppInstanceAsync(CreateAppInstanceRequest request) { return createAppInstanceAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future createAppInstanceAsync(final CreateAppInstanceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateAppInstanceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateAppInstanceResult call() throws Exception { CreateAppInstanceResult result = null; try { result = executeCreateAppInstance(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future createAppInstanceAdminAsync(CreateAppInstanceAdminRequest request) { return createAppInstanceAdminAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future createAppInstanceAdminAsync(final CreateAppInstanceAdminRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateAppInstanceAdminRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateAppInstanceAdminResult call() throws Exception { CreateAppInstanceAdminResult result = null; try { result = executeCreateAppInstanceAdmin(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future createAppInstanceUserAsync(CreateAppInstanceUserRequest request) { return createAppInstanceUserAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future createAppInstanceUserAsync(final CreateAppInstanceUserRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateAppInstanceUserRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateAppInstanceUserResult call() throws Exception { CreateAppInstanceUserResult result = null; try { result = executeCreateAppInstanceUser(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future createAttendeeAsync(CreateAttendeeRequest request) { return createAttendeeAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future createAttendeeAsync(final CreateAttendeeRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateAttendeeRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateAttendeeResult call() throws Exception { CreateAttendeeResult result = null; try { result = executeCreateAttendee(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 createBotAsync(CreateBotRequest request) { return createBotAsync(request, null); } @Override public java.util.concurrent.Future createBotAsync(final CreateBotRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateBotRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateBotResult call() throws Exception { CreateBotResult result = null; try { result = executeCreateBot(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future createChannelAsync(CreateChannelRequest request) { return createChannelAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future createChannelAsync(final CreateChannelRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateChannelRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateChannelResult call() throws Exception { CreateChannelResult result = null; try { result = executeCreateChannel(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future createChannelBanAsync(CreateChannelBanRequest request) { return createChannelBanAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future createChannelBanAsync(final CreateChannelBanRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateChannelBanRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateChannelBanResult call() throws Exception { CreateChannelBanResult result = null; try { result = executeCreateChannelBan(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future createChannelMembershipAsync(CreateChannelMembershipRequest request) { return createChannelMembershipAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future createChannelMembershipAsync(final CreateChannelMembershipRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateChannelMembershipRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateChannelMembershipResult call() throws Exception { CreateChannelMembershipResult result = null; try { result = executeCreateChannelMembership(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future createChannelModeratorAsync(CreateChannelModeratorRequest request) { return createChannelModeratorAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future createChannelModeratorAsync(final CreateChannelModeratorRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateChannelModeratorRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateChannelModeratorResult call() throws Exception { CreateChannelModeratorResult result = null; try { result = executeCreateChannelModerator(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future createMediaCapturePipelineAsync(CreateMediaCapturePipelineRequest request) { return createMediaCapturePipelineAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future createMediaCapturePipelineAsync(final CreateMediaCapturePipelineRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateMediaCapturePipelineRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateMediaCapturePipelineResult call() throws Exception { CreateMediaCapturePipelineResult result = null; try { result = executeCreateMediaCapturePipeline(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future createMeetingAsync(CreateMeetingRequest request) { return createMeetingAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future createMeetingAsync(final CreateMeetingRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateMeetingRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateMeetingResult call() throws Exception { CreateMeetingResult result = null; try { result = executeCreateMeeting(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 createMeetingDialOutAsync(CreateMeetingDialOutRequest request) { return createMeetingDialOutAsync(request, null); } @Override public java.util.concurrent.Future createMeetingDialOutAsync(final CreateMeetingDialOutRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateMeetingDialOutRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateMeetingDialOutResult call() throws Exception { CreateMeetingDialOutResult result = null; try { result = executeCreateMeetingDialOut(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future createMeetingWithAttendeesAsync(CreateMeetingWithAttendeesRequest request) { return createMeetingWithAttendeesAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future createMeetingWithAttendeesAsync(final CreateMeetingWithAttendeesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateMeetingWithAttendeesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateMeetingWithAttendeesResult call() throws Exception { CreateMeetingWithAttendeesResult result = null; try { result = executeCreateMeetingWithAttendees(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 createPhoneNumberOrderAsync(CreatePhoneNumberOrderRequest request) { return createPhoneNumberOrderAsync(request, null); } @Override public java.util.concurrent.Future createPhoneNumberOrderAsync(final CreatePhoneNumberOrderRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreatePhoneNumberOrderRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreatePhoneNumberOrderResult call() throws Exception { CreatePhoneNumberOrderResult result = null; try { result = executeCreatePhoneNumberOrder(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future createProxySessionAsync(CreateProxySessionRequest request) { return createProxySessionAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future createProxySessionAsync(final CreateProxySessionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateProxySessionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateProxySessionResult call() throws Exception { CreateProxySessionResult result = null; try { result = executeCreateProxySession(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 createRoomAsync(CreateRoomRequest request) { return createRoomAsync(request, null); } @Override public java.util.concurrent.Future createRoomAsync(final CreateRoomRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateRoomRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateRoomResult call() throws Exception { CreateRoomResult result = null; try { result = executeCreateRoom(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 createRoomMembershipAsync(CreateRoomMembershipRequest request) { return createRoomMembershipAsync(request, null); } @Override public java.util.concurrent.Future createRoomMembershipAsync(final CreateRoomMembershipRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateRoomMembershipRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateRoomMembershipResult call() throws Exception { CreateRoomMembershipResult result = null; try { result = executeCreateRoomMembership(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future createSipMediaApplicationAsync(CreateSipMediaApplicationRequest request) { return createSipMediaApplicationAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future createSipMediaApplicationAsync(final CreateSipMediaApplicationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateSipMediaApplicationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateSipMediaApplicationResult call() throws Exception { CreateSipMediaApplicationResult result = null; try { result = executeCreateSipMediaApplication(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future createSipMediaApplicationCallAsync(CreateSipMediaApplicationCallRequest request) { return createSipMediaApplicationCallAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future createSipMediaApplicationCallAsync( final CreateSipMediaApplicationCallRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateSipMediaApplicationCallRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateSipMediaApplicationCallResult call() throws Exception { CreateSipMediaApplicationCallResult result = null; try { result = executeCreateSipMediaApplicationCall(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future createSipRuleAsync(CreateSipRuleRequest request) { return createSipRuleAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future createSipRuleAsync(final CreateSipRuleRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateSipRuleRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateSipRuleResult call() throws Exception { CreateSipRuleResult result = null; try { result = executeCreateSipRule(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 createUserAsync(CreateUserRequest request) { return createUserAsync(request, null); } @Override public java.util.concurrent.Future createUserAsync(final CreateUserRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateUserRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateUserResult call() throws Exception { CreateUserResult result = null; try { result = executeCreateUser(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future createVoiceConnectorAsync(CreateVoiceConnectorRequest request) { return createVoiceConnectorAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future createVoiceConnectorAsync(final CreateVoiceConnectorRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateVoiceConnectorRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateVoiceConnectorResult call() throws Exception { CreateVoiceConnectorResult result = null; try { result = executeCreateVoiceConnector(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future createVoiceConnectorGroupAsync(CreateVoiceConnectorGroupRequest request) { return createVoiceConnectorGroupAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future createVoiceConnectorGroupAsync(final CreateVoiceConnectorGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateVoiceConnectorGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateVoiceConnectorGroupResult call() throws Exception { CreateVoiceConnectorGroupResult result = null; try { result = executeCreateVoiceConnectorGroup(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 deleteAccountAsync(DeleteAccountRequest request) { return deleteAccountAsync(request, null); } @Override public java.util.concurrent.Future deleteAccountAsync(final DeleteAccountRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteAccountRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteAccountResult call() throws Exception { DeleteAccountResult result = null; try { result = executeDeleteAccount(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future deleteAppInstanceAsync(DeleteAppInstanceRequest request) { return deleteAppInstanceAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future deleteAppInstanceAsync(final DeleteAppInstanceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteAppInstanceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteAppInstanceResult call() throws Exception { DeleteAppInstanceResult result = null; try { result = executeDeleteAppInstance(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future deleteAppInstanceAdminAsync(DeleteAppInstanceAdminRequest request) { return deleteAppInstanceAdminAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future deleteAppInstanceAdminAsync(final DeleteAppInstanceAdminRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteAppInstanceAdminRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteAppInstanceAdminResult call() throws Exception { DeleteAppInstanceAdminResult result = null; try { result = executeDeleteAppInstanceAdmin(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future deleteAppInstanceStreamingConfigurationsAsync( DeleteAppInstanceStreamingConfigurationsRequest request) { return deleteAppInstanceStreamingConfigurationsAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future deleteAppInstanceStreamingConfigurationsAsync( final DeleteAppInstanceStreamingConfigurationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteAppInstanceStreamingConfigurationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteAppInstanceStreamingConfigurationsResult call() throws Exception { DeleteAppInstanceStreamingConfigurationsResult result = null; try { result = executeDeleteAppInstanceStreamingConfigurations(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future deleteAppInstanceUserAsync(DeleteAppInstanceUserRequest request) { return deleteAppInstanceUserAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future deleteAppInstanceUserAsync(final DeleteAppInstanceUserRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteAppInstanceUserRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteAppInstanceUserResult call() throws Exception { DeleteAppInstanceUserResult result = null; try { result = executeDeleteAppInstanceUser(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future deleteAttendeeAsync(DeleteAttendeeRequest request) { return deleteAttendeeAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future deleteAttendeeAsync(final DeleteAttendeeRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteAttendeeRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteAttendeeResult call() throws Exception { DeleteAttendeeResult result = null; try { result = executeDeleteAttendee(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future deleteChannelAsync(DeleteChannelRequest request) { return deleteChannelAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future deleteChannelAsync(final DeleteChannelRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteChannelRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteChannelResult call() throws Exception { DeleteChannelResult result = null; try { result = executeDeleteChannel(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future deleteChannelBanAsync(DeleteChannelBanRequest request) { return deleteChannelBanAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future deleteChannelBanAsync(final DeleteChannelBanRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteChannelBanRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteChannelBanResult call() throws Exception { DeleteChannelBanResult result = null; try { result = executeDeleteChannelBan(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future deleteChannelMembershipAsync(DeleteChannelMembershipRequest request) { return deleteChannelMembershipAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future deleteChannelMembershipAsync(final DeleteChannelMembershipRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteChannelMembershipRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteChannelMembershipResult call() throws Exception { DeleteChannelMembershipResult result = null; try { result = executeDeleteChannelMembership(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future deleteChannelMessageAsync(DeleteChannelMessageRequest request) { return deleteChannelMessageAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future deleteChannelMessageAsync(final DeleteChannelMessageRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteChannelMessageRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteChannelMessageResult call() throws Exception { DeleteChannelMessageResult result = null; try { result = executeDeleteChannelMessage(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future deleteChannelModeratorAsync(DeleteChannelModeratorRequest request) { return deleteChannelModeratorAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future deleteChannelModeratorAsync(final DeleteChannelModeratorRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteChannelModeratorRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteChannelModeratorResult call() throws Exception { DeleteChannelModeratorResult result = null; try { result = executeDeleteChannelModerator(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 deleteEventsConfigurationAsync(DeleteEventsConfigurationRequest request) { return deleteEventsConfigurationAsync(request, null); } @Override public java.util.concurrent.Future deleteEventsConfigurationAsync(final DeleteEventsConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteEventsConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteEventsConfigurationResult call() throws Exception { DeleteEventsConfigurationResult result = null; try { result = executeDeleteEventsConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future deleteMediaCapturePipelineAsync(DeleteMediaCapturePipelineRequest request) { return deleteMediaCapturePipelineAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future deleteMediaCapturePipelineAsync(final DeleteMediaCapturePipelineRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteMediaCapturePipelineRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteMediaCapturePipelineResult call() throws Exception { DeleteMediaCapturePipelineResult result = null; try { result = executeDeleteMediaCapturePipeline(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future deleteMeetingAsync(DeleteMeetingRequest request) { return deleteMeetingAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future deleteMeetingAsync(final DeleteMeetingRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteMeetingRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteMeetingResult call() throws Exception { DeleteMeetingResult result = null; try { result = executeDeleteMeeting(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 deletePhoneNumberAsync(DeletePhoneNumberRequest request) { return deletePhoneNumberAsync(request, null); } @Override public java.util.concurrent.Future deletePhoneNumberAsync(final DeletePhoneNumberRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeletePhoneNumberRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeletePhoneNumberResult call() throws Exception { DeletePhoneNumberResult result = null; try { result = executeDeletePhoneNumber(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future deleteProxySessionAsync(DeleteProxySessionRequest request) { return deleteProxySessionAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future deleteProxySessionAsync(final DeleteProxySessionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteProxySessionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteProxySessionResult call() throws Exception { DeleteProxySessionResult result = null; try { result = executeDeleteProxySession(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 deleteRoomAsync(DeleteRoomRequest request) { return deleteRoomAsync(request, null); } @Override public java.util.concurrent.Future deleteRoomAsync(final DeleteRoomRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteRoomRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteRoomResult call() throws Exception { DeleteRoomResult result = null; try { result = executeDeleteRoom(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 deleteRoomMembershipAsync(DeleteRoomMembershipRequest request) { return deleteRoomMembershipAsync(request, null); } @Override public java.util.concurrent.Future deleteRoomMembershipAsync(final DeleteRoomMembershipRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteRoomMembershipRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteRoomMembershipResult call() throws Exception { DeleteRoomMembershipResult result = null; try { result = executeDeleteRoomMembership(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future deleteSipMediaApplicationAsync(DeleteSipMediaApplicationRequest request) { return deleteSipMediaApplicationAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future deleteSipMediaApplicationAsync(final DeleteSipMediaApplicationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteSipMediaApplicationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteSipMediaApplicationResult call() throws Exception { DeleteSipMediaApplicationResult result = null; try { result = executeDeleteSipMediaApplication(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future deleteSipRuleAsync(DeleteSipRuleRequest request) { return deleteSipRuleAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future deleteSipRuleAsync(final DeleteSipRuleRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteSipRuleRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteSipRuleResult call() throws Exception { DeleteSipRuleResult result = null; try { result = executeDeleteSipRule(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future deleteVoiceConnectorAsync(DeleteVoiceConnectorRequest request) { return deleteVoiceConnectorAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future deleteVoiceConnectorAsync(final DeleteVoiceConnectorRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteVoiceConnectorRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteVoiceConnectorResult call() throws Exception { DeleteVoiceConnectorResult result = null; try { result = executeDeleteVoiceConnector(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future deleteVoiceConnectorEmergencyCallingConfigurationAsync( DeleteVoiceConnectorEmergencyCallingConfigurationRequest request) { return deleteVoiceConnectorEmergencyCallingConfigurationAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future deleteVoiceConnectorEmergencyCallingConfigurationAsync( final DeleteVoiceConnectorEmergencyCallingConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteVoiceConnectorEmergencyCallingConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteVoiceConnectorEmergencyCallingConfigurationResult call() throws Exception { DeleteVoiceConnectorEmergencyCallingConfigurationResult result = null; try { result = executeDeleteVoiceConnectorEmergencyCallingConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future deleteVoiceConnectorGroupAsync(DeleteVoiceConnectorGroupRequest request) { return deleteVoiceConnectorGroupAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future deleteVoiceConnectorGroupAsync(final DeleteVoiceConnectorGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteVoiceConnectorGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteVoiceConnectorGroupResult call() throws Exception { DeleteVoiceConnectorGroupResult result = null; try { result = executeDeleteVoiceConnectorGroup(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future deleteVoiceConnectorOriginationAsync( DeleteVoiceConnectorOriginationRequest request) { return deleteVoiceConnectorOriginationAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future deleteVoiceConnectorOriginationAsync( final DeleteVoiceConnectorOriginationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteVoiceConnectorOriginationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteVoiceConnectorOriginationResult call() throws Exception { DeleteVoiceConnectorOriginationResult result = null; try { result = executeDeleteVoiceConnectorOrigination(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future deleteVoiceConnectorProxyAsync(DeleteVoiceConnectorProxyRequest request) { return deleteVoiceConnectorProxyAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future deleteVoiceConnectorProxyAsync(final DeleteVoiceConnectorProxyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteVoiceConnectorProxyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteVoiceConnectorProxyResult call() throws Exception { DeleteVoiceConnectorProxyResult result = null; try { result = executeDeleteVoiceConnectorProxy(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future deleteVoiceConnectorStreamingConfigurationAsync( DeleteVoiceConnectorStreamingConfigurationRequest request) { return deleteVoiceConnectorStreamingConfigurationAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future deleteVoiceConnectorStreamingConfigurationAsync( final DeleteVoiceConnectorStreamingConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteVoiceConnectorStreamingConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteVoiceConnectorStreamingConfigurationResult call() throws Exception { DeleteVoiceConnectorStreamingConfigurationResult result = null; try { result = executeDeleteVoiceConnectorStreamingConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future deleteVoiceConnectorTerminationAsync( DeleteVoiceConnectorTerminationRequest request) { return deleteVoiceConnectorTerminationAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future deleteVoiceConnectorTerminationAsync( final DeleteVoiceConnectorTerminationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteVoiceConnectorTerminationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteVoiceConnectorTerminationResult call() throws Exception { DeleteVoiceConnectorTerminationResult result = null; try { result = executeDeleteVoiceConnectorTermination(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future deleteVoiceConnectorTerminationCredentialsAsync( DeleteVoiceConnectorTerminationCredentialsRequest request) { return deleteVoiceConnectorTerminationCredentialsAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future deleteVoiceConnectorTerminationCredentialsAsync( final DeleteVoiceConnectorTerminationCredentialsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteVoiceConnectorTerminationCredentialsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteVoiceConnectorTerminationCredentialsResult call() throws Exception { DeleteVoiceConnectorTerminationCredentialsResult result = null; try { result = executeDeleteVoiceConnectorTerminationCredentials(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future describeAppInstanceAsync(DescribeAppInstanceRequest request) { return describeAppInstanceAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future describeAppInstanceAsync(final DescribeAppInstanceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeAppInstanceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeAppInstanceResult call() throws Exception { DescribeAppInstanceResult result = null; try { result = executeDescribeAppInstance(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future describeAppInstanceAdminAsync(DescribeAppInstanceAdminRequest request) { return describeAppInstanceAdminAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future describeAppInstanceAdminAsync(final DescribeAppInstanceAdminRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeAppInstanceAdminRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeAppInstanceAdminResult call() throws Exception { DescribeAppInstanceAdminResult result = null; try { result = executeDescribeAppInstanceAdmin(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future describeAppInstanceUserAsync(DescribeAppInstanceUserRequest request) { return describeAppInstanceUserAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future describeAppInstanceUserAsync(final DescribeAppInstanceUserRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeAppInstanceUserRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeAppInstanceUserResult call() throws Exception { DescribeAppInstanceUserResult result = null; try { result = executeDescribeAppInstanceUser(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future describeChannelAsync(DescribeChannelRequest request) { return describeChannelAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future describeChannelAsync(final DescribeChannelRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeChannelRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeChannelResult call() throws Exception { DescribeChannelResult result = null; try { result = executeDescribeChannel(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future describeChannelBanAsync(DescribeChannelBanRequest request) { return describeChannelBanAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future describeChannelBanAsync(final DescribeChannelBanRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeChannelBanRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeChannelBanResult call() throws Exception { DescribeChannelBanResult result = null; try { result = executeDescribeChannelBan(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future describeChannelMembershipAsync(DescribeChannelMembershipRequest request) { return describeChannelMembershipAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future describeChannelMembershipAsync(final DescribeChannelMembershipRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeChannelMembershipRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeChannelMembershipResult call() throws Exception { DescribeChannelMembershipResult result = null; try { result = executeDescribeChannelMembership(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future describeChannelMembershipForAppInstanceUserAsync( DescribeChannelMembershipForAppInstanceUserRequest request) { return describeChannelMembershipForAppInstanceUserAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future describeChannelMembershipForAppInstanceUserAsync( final DescribeChannelMembershipForAppInstanceUserRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeChannelMembershipForAppInstanceUserRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeChannelMembershipForAppInstanceUserResult call() throws Exception { DescribeChannelMembershipForAppInstanceUserResult result = null; try { result = executeDescribeChannelMembershipForAppInstanceUser(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future describeChannelModeratedByAppInstanceUserAsync( DescribeChannelModeratedByAppInstanceUserRequest request) { return describeChannelModeratedByAppInstanceUserAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future describeChannelModeratedByAppInstanceUserAsync( final DescribeChannelModeratedByAppInstanceUserRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeChannelModeratedByAppInstanceUserRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeChannelModeratedByAppInstanceUserResult call() throws Exception { DescribeChannelModeratedByAppInstanceUserResult result = null; try { result = executeDescribeChannelModeratedByAppInstanceUser(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future describeChannelModeratorAsync(DescribeChannelModeratorRequest request) { return describeChannelModeratorAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future describeChannelModeratorAsync(final DescribeChannelModeratorRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeChannelModeratorRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeChannelModeratorResult call() throws Exception { DescribeChannelModeratorResult result = null; try { result = executeDescribeChannelModerator(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 disassociatePhoneNumberFromUserAsync( DisassociatePhoneNumberFromUserRequest request) { return disassociatePhoneNumberFromUserAsync(request, null); } @Override public java.util.concurrent.Future disassociatePhoneNumberFromUserAsync( final DisassociatePhoneNumberFromUserRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DisassociatePhoneNumberFromUserRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DisassociatePhoneNumberFromUserResult call() throws Exception { DisassociatePhoneNumberFromUserResult result = null; try { result = executeDisassociatePhoneNumberFromUser(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future disassociatePhoneNumbersFromVoiceConnectorAsync( DisassociatePhoneNumbersFromVoiceConnectorRequest request) { return disassociatePhoneNumbersFromVoiceConnectorAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future disassociatePhoneNumbersFromVoiceConnectorAsync( final DisassociatePhoneNumbersFromVoiceConnectorRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DisassociatePhoneNumbersFromVoiceConnectorRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DisassociatePhoneNumbersFromVoiceConnectorResult call() throws Exception { DisassociatePhoneNumbersFromVoiceConnectorResult result = null; try { result = executeDisassociatePhoneNumbersFromVoiceConnector(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future disassociatePhoneNumbersFromVoiceConnectorGroupAsync( DisassociatePhoneNumbersFromVoiceConnectorGroupRequest request) { return disassociatePhoneNumbersFromVoiceConnectorGroupAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future disassociatePhoneNumbersFromVoiceConnectorGroupAsync( final DisassociatePhoneNumbersFromVoiceConnectorGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DisassociatePhoneNumbersFromVoiceConnectorGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DisassociatePhoneNumbersFromVoiceConnectorGroupResult call() throws Exception { DisassociatePhoneNumbersFromVoiceConnectorGroupResult result = null; try { result = executeDisassociatePhoneNumbersFromVoiceConnectorGroup(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 disassociateSigninDelegateGroupsFromAccountAsync( DisassociateSigninDelegateGroupsFromAccountRequest request) { return disassociateSigninDelegateGroupsFromAccountAsync(request, null); } @Override public java.util.concurrent.Future disassociateSigninDelegateGroupsFromAccountAsync( final DisassociateSigninDelegateGroupsFromAccountRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DisassociateSigninDelegateGroupsFromAccountRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DisassociateSigninDelegateGroupsFromAccountResult call() throws Exception { DisassociateSigninDelegateGroupsFromAccountResult result = null; try { result = executeDisassociateSigninDelegateGroupsFromAccount(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 getAccountAsync(GetAccountRequest request) { return getAccountAsync(request, null); } @Override public java.util.concurrent.Future getAccountAsync(final GetAccountRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetAccountRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetAccountResult call() throws Exception { GetAccountResult result = null; try { result = executeGetAccount(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 getAccountSettingsAsync(GetAccountSettingsRequest request) { return getAccountSettingsAsync(request, null); } @Override public java.util.concurrent.Future getAccountSettingsAsync(final GetAccountSettingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetAccountSettingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetAccountSettingsResult call() throws Exception { GetAccountSettingsResult result = null; try { result = executeGetAccountSettings(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future getAppInstanceRetentionSettingsAsync( GetAppInstanceRetentionSettingsRequest request) { return getAppInstanceRetentionSettingsAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future getAppInstanceRetentionSettingsAsync( final GetAppInstanceRetentionSettingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetAppInstanceRetentionSettingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetAppInstanceRetentionSettingsResult call() throws Exception { GetAppInstanceRetentionSettingsResult result = null; try { result = executeGetAppInstanceRetentionSettings(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future getAppInstanceStreamingConfigurationsAsync( GetAppInstanceStreamingConfigurationsRequest request) { return getAppInstanceStreamingConfigurationsAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future getAppInstanceStreamingConfigurationsAsync( final GetAppInstanceStreamingConfigurationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetAppInstanceStreamingConfigurationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetAppInstanceStreamingConfigurationsResult call() throws Exception { GetAppInstanceStreamingConfigurationsResult result = null; try { result = executeGetAppInstanceStreamingConfigurations(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future getAttendeeAsync(GetAttendeeRequest request) { return getAttendeeAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future getAttendeeAsync(final GetAttendeeRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetAttendeeRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetAttendeeResult call() throws Exception { GetAttendeeResult result = null; try { result = executeGetAttendee(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 getBotAsync(GetBotRequest request) { return getBotAsync(request, null); } @Override public java.util.concurrent.Future getBotAsync(final GetBotRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetBotRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetBotResult call() throws Exception { GetBotResult result = null; try { result = executeGetBot(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future getChannelMessageAsync(GetChannelMessageRequest request) { return getChannelMessageAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future getChannelMessageAsync(final GetChannelMessageRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetChannelMessageRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetChannelMessageResult call() throws Exception { GetChannelMessageResult result = null; try { result = executeGetChannelMessage(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 getEventsConfigurationAsync(GetEventsConfigurationRequest request) { return getEventsConfigurationAsync(request, null); } @Override public java.util.concurrent.Future getEventsConfigurationAsync(final GetEventsConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetEventsConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetEventsConfigurationResult call() throws Exception { GetEventsConfigurationResult result = null; try { result = executeGetEventsConfiguration(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 getGlobalSettingsAsync(GetGlobalSettingsRequest request) { return getGlobalSettingsAsync(request, null); } @Override public java.util.concurrent.Future getGlobalSettingsAsync(final GetGlobalSettingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetGlobalSettingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetGlobalSettingsResult call() throws Exception { GetGlobalSettingsResult result = null; try { result = executeGetGlobalSettings(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future getMediaCapturePipelineAsync(GetMediaCapturePipelineRequest request) { return getMediaCapturePipelineAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future getMediaCapturePipelineAsync(final GetMediaCapturePipelineRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetMediaCapturePipelineRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetMediaCapturePipelineResult call() throws Exception { GetMediaCapturePipelineResult result = null; try { result = executeGetMediaCapturePipeline(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future getMeetingAsync(GetMeetingRequest request) { return getMeetingAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future getMeetingAsync(final GetMeetingRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetMeetingRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetMeetingResult call() throws Exception { GetMeetingResult result = null; try { result = executeGetMeeting(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future getMessagingSessionEndpointAsync(GetMessagingSessionEndpointRequest request) { return getMessagingSessionEndpointAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future getMessagingSessionEndpointAsync(final GetMessagingSessionEndpointRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetMessagingSessionEndpointRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetMessagingSessionEndpointResult call() throws Exception { GetMessagingSessionEndpointResult result = null; try { result = executeGetMessagingSessionEndpoint(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 getPhoneNumberAsync(GetPhoneNumberRequest request) { return getPhoneNumberAsync(request, null); } @Override public java.util.concurrent.Future getPhoneNumberAsync(final GetPhoneNumberRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetPhoneNumberRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetPhoneNumberResult call() throws Exception { GetPhoneNumberResult result = null; try { result = executeGetPhoneNumber(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 getPhoneNumberOrderAsync(GetPhoneNumberOrderRequest request) { return getPhoneNumberOrderAsync(request, null); } @Override public java.util.concurrent.Future getPhoneNumberOrderAsync(final GetPhoneNumberOrderRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetPhoneNumberOrderRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetPhoneNumberOrderResult call() throws Exception { GetPhoneNumberOrderResult result = null; try { result = executeGetPhoneNumberOrder(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 getPhoneNumberSettingsAsync(GetPhoneNumberSettingsRequest request) { return getPhoneNumberSettingsAsync(request, null); } @Override public java.util.concurrent.Future getPhoneNumberSettingsAsync(final GetPhoneNumberSettingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetPhoneNumberSettingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetPhoneNumberSettingsResult call() throws Exception { GetPhoneNumberSettingsResult result = null; try { result = executeGetPhoneNumberSettings(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future getProxySessionAsync(GetProxySessionRequest request) { return getProxySessionAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future getProxySessionAsync(final GetProxySessionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetProxySessionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetProxySessionResult call() throws Exception { GetProxySessionResult result = null; try { result = executeGetProxySession(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 getRetentionSettingsAsync(GetRetentionSettingsRequest request) { return getRetentionSettingsAsync(request, null); } @Override public java.util.concurrent.Future getRetentionSettingsAsync(final GetRetentionSettingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetRetentionSettingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetRetentionSettingsResult call() throws Exception { GetRetentionSettingsResult result = null; try { result = executeGetRetentionSettings(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 getRoomAsync(GetRoomRequest request) { return getRoomAsync(request, null); } @Override public java.util.concurrent.Future getRoomAsync(final GetRoomRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetRoomRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetRoomResult call() throws Exception { GetRoomResult result = null; try { result = executeGetRoom(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future getSipMediaApplicationAsync(GetSipMediaApplicationRequest request) { return getSipMediaApplicationAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future getSipMediaApplicationAsync(final GetSipMediaApplicationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetSipMediaApplicationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetSipMediaApplicationResult call() throws Exception { GetSipMediaApplicationResult result = null; try { result = executeGetSipMediaApplication(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future getSipMediaApplicationLoggingConfigurationAsync( GetSipMediaApplicationLoggingConfigurationRequest request) { return getSipMediaApplicationLoggingConfigurationAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future getSipMediaApplicationLoggingConfigurationAsync( final GetSipMediaApplicationLoggingConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetSipMediaApplicationLoggingConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetSipMediaApplicationLoggingConfigurationResult call() throws Exception { GetSipMediaApplicationLoggingConfigurationResult result = null; try { result = executeGetSipMediaApplicationLoggingConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future getSipRuleAsync(GetSipRuleRequest request) { return getSipRuleAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future getSipRuleAsync(final GetSipRuleRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetSipRuleRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetSipRuleResult call() throws Exception { GetSipRuleResult result = null; try { result = executeGetSipRule(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 getUserAsync(GetUserRequest request) { return getUserAsync(request, null); } @Override public java.util.concurrent.Future getUserAsync(final GetUserRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetUserRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetUserResult call() throws Exception { GetUserResult result = null; try { result = executeGetUser(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 getUserSettingsAsync(GetUserSettingsRequest request) { return getUserSettingsAsync(request, null); } @Override public java.util.concurrent.Future getUserSettingsAsync(final GetUserSettingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetUserSettingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetUserSettingsResult call() throws Exception { GetUserSettingsResult result = null; try { result = executeGetUserSettings(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future getVoiceConnectorAsync(GetVoiceConnectorRequest request) { return getVoiceConnectorAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future getVoiceConnectorAsync(final GetVoiceConnectorRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetVoiceConnectorRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetVoiceConnectorResult call() throws Exception { GetVoiceConnectorResult result = null; try { result = executeGetVoiceConnector(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future getVoiceConnectorEmergencyCallingConfigurationAsync( GetVoiceConnectorEmergencyCallingConfigurationRequest request) { return getVoiceConnectorEmergencyCallingConfigurationAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future getVoiceConnectorEmergencyCallingConfigurationAsync( final GetVoiceConnectorEmergencyCallingConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetVoiceConnectorEmergencyCallingConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetVoiceConnectorEmergencyCallingConfigurationResult call() throws Exception { GetVoiceConnectorEmergencyCallingConfigurationResult result = null; try { result = executeGetVoiceConnectorEmergencyCallingConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future getVoiceConnectorGroupAsync(GetVoiceConnectorGroupRequest request) { return getVoiceConnectorGroupAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future getVoiceConnectorGroupAsync(final GetVoiceConnectorGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetVoiceConnectorGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetVoiceConnectorGroupResult call() throws Exception { GetVoiceConnectorGroupResult result = null; try { result = executeGetVoiceConnectorGroup(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future getVoiceConnectorLoggingConfigurationAsync( GetVoiceConnectorLoggingConfigurationRequest request) { return getVoiceConnectorLoggingConfigurationAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future getVoiceConnectorLoggingConfigurationAsync( final GetVoiceConnectorLoggingConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetVoiceConnectorLoggingConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetVoiceConnectorLoggingConfigurationResult call() throws Exception { GetVoiceConnectorLoggingConfigurationResult result = null; try { result = executeGetVoiceConnectorLoggingConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future getVoiceConnectorOriginationAsync(GetVoiceConnectorOriginationRequest request) { return getVoiceConnectorOriginationAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future getVoiceConnectorOriginationAsync(final GetVoiceConnectorOriginationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetVoiceConnectorOriginationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetVoiceConnectorOriginationResult call() throws Exception { GetVoiceConnectorOriginationResult result = null; try { result = executeGetVoiceConnectorOrigination(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future getVoiceConnectorProxyAsync(GetVoiceConnectorProxyRequest request) { return getVoiceConnectorProxyAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future getVoiceConnectorProxyAsync(final GetVoiceConnectorProxyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetVoiceConnectorProxyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetVoiceConnectorProxyResult call() throws Exception { GetVoiceConnectorProxyResult result = null; try { result = executeGetVoiceConnectorProxy(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future getVoiceConnectorStreamingConfigurationAsync( GetVoiceConnectorStreamingConfigurationRequest request) { return getVoiceConnectorStreamingConfigurationAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future getVoiceConnectorStreamingConfigurationAsync( final GetVoiceConnectorStreamingConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetVoiceConnectorStreamingConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetVoiceConnectorStreamingConfigurationResult call() throws Exception { GetVoiceConnectorStreamingConfigurationResult result = null; try { result = executeGetVoiceConnectorStreamingConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future getVoiceConnectorTerminationAsync(GetVoiceConnectorTerminationRequest request) { return getVoiceConnectorTerminationAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future getVoiceConnectorTerminationAsync(final GetVoiceConnectorTerminationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetVoiceConnectorTerminationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetVoiceConnectorTerminationResult call() throws Exception { GetVoiceConnectorTerminationResult result = null; try { result = executeGetVoiceConnectorTermination(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future getVoiceConnectorTerminationHealthAsync( GetVoiceConnectorTerminationHealthRequest request) { return getVoiceConnectorTerminationHealthAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future getVoiceConnectorTerminationHealthAsync( final GetVoiceConnectorTerminationHealthRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetVoiceConnectorTerminationHealthRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetVoiceConnectorTerminationHealthResult call() throws Exception { GetVoiceConnectorTerminationHealthResult result = null; try { result = executeGetVoiceConnectorTerminationHealth(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 inviteUsersAsync(InviteUsersRequest request) { return inviteUsersAsync(request, null); } @Override public java.util.concurrent.Future inviteUsersAsync(final InviteUsersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final InviteUsersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public InviteUsersResult call() throws Exception { InviteUsersResult result = null; try { result = executeInviteUsers(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 listAccountsAsync(ListAccountsRequest request) { return listAccountsAsync(request, null); } @Override public java.util.concurrent.Future listAccountsAsync(final ListAccountsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAccountsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAccountsResult call() throws Exception { ListAccountsResult result = null; try { result = executeListAccounts(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future listAppInstanceAdminsAsync(ListAppInstanceAdminsRequest request) { return listAppInstanceAdminsAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future listAppInstanceAdminsAsync(final ListAppInstanceAdminsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAppInstanceAdminsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAppInstanceAdminsResult call() throws Exception { ListAppInstanceAdminsResult result = null; try { result = executeListAppInstanceAdmins(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future listAppInstanceUsersAsync(ListAppInstanceUsersRequest request) { return listAppInstanceUsersAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future listAppInstanceUsersAsync(final ListAppInstanceUsersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAppInstanceUsersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAppInstanceUsersResult call() throws Exception { ListAppInstanceUsersResult result = null; try { result = executeListAppInstanceUsers(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future listAppInstancesAsync(ListAppInstancesRequest request) { return listAppInstancesAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future listAppInstancesAsync(final ListAppInstancesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAppInstancesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAppInstancesResult call() throws Exception { ListAppInstancesResult result = null; try { result = executeListAppInstances(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future listAttendeeTagsAsync(ListAttendeeTagsRequest request) { return listAttendeeTagsAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future listAttendeeTagsAsync(final ListAttendeeTagsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAttendeeTagsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAttendeeTagsResult call() throws Exception { ListAttendeeTagsResult result = null; try { result = executeListAttendeeTags(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future listAttendeesAsync(ListAttendeesRequest request) { return listAttendeesAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future listAttendeesAsync(final ListAttendeesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAttendeesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAttendeesResult call() throws Exception { ListAttendeesResult result = null; try { result = executeListAttendees(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 listBotsAsync(ListBotsRequest request) { return listBotsAsync(request, null); } @Override public java.util.concurrent.Future listBotsAsync(final ListBotsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListBotsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListBotsResult call() throws Exception { ListBotsResult result = null; try { result = executeListBots(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future listChannelBansAsync(ListChannelBansRequest request) { return listChannelBansAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future listChannelBansAsync(final ListChannelBansRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListChannelBansRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListChannelBansResult call() throws Exception { ListChannelBansResult result = null; try { result = executeListChannelBans(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future listChannelMembershipsAsync(ListChannelMembershipsRequest request) { return listChannelMembershipsAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future listChannelMembershipsAsync(final ListChannelMembershipsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListChannelMembershipsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListChannelMembershipsResult call() throws Exception { ListChannelMembershipsResult result = null; try { result = executeListChannelMemberships(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future listChannelMembershipsForAppInstanceUserAsync( ListChannelMembershipsForAppInstanceUserRequest request) { return listChannelMembershipsForAppInstanceUserAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future listChannelMembershipsForAppInstanceUserAsync( final ListChannelMembershipsForAppInstanceUserRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListChannelMembershipsForAppInstanceUserRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListChannelMembershipsForAppInstanceUserResult call() throws Exception { ListChannelMembershipsForAppInstanceUserResult result = null; try { result = executeListChannelMembershipsForAppInstanceUser(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future listChannelMessagesAsync(ListChannelMessagesRequest request) { return listChannelMessagesAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future listChannelMessagesAsync(final ListChannelMessagesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListChannelMessagesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListChannelMessagesResult call() throws Exception { ListChannelMessagesResult result = null; try { result = executeListChannelMessages(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future listChannelModeratorsAsync(ListChannelModeratorsRequest request) { return listChannelModeratorsAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future listChannelModeratorsAsync(final ListChannelModeratorsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListChannelModeratorsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListChannelModeratorsResult call() throws Exception { ListChannelModeratorsResult result = null; try { result = executeListChannelModerators(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future listChannelsAsync(ListChannelsRequest request) { return listChannelsAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future listChannelsAsync(final ListChannelsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListChannelsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListChannelsResult call() throws Exception { ListChannelsResult result = null; try { result = executeListChannels(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future listChannelsModeratedByAppInstanceUserAsync( ListChannelsModeratedByAppInstanceUserRequest request) { return listChannelsModeratedByAppInstanceUserAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future listChannelsModeratedByAppInstanceUserAsync( final ListChannelsModeratedByAppInstanceUserRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListChannelsModeratedByAppInstanceUserRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListChannelsModeratedByAppInstanceUserResult call() throws Exception { ListChannelsModeratedByAppInstanceUserResult result = null; try { result = executeListChannelsModeratedByAppInstanceUser(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future listMediaCapturePipelinesAsync(ListMediaCapturePipelinesRequest request) { return listMediaCapturePipelinesAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future listMediaCapturePipelinesAsync(final ListMediaCapturePipelinesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListMediaCapturePipelinesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListMediaCapturePipelinesResult call() throws Exception { ListMediaCapturePipelinesResult result = null; try { result = executeListMediaCapturePipelines(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future listMeetingTagsAsync(ListMeetingTagsRequest request) { return listMeetingTagsAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future listMeetingTagsAsync(final ListMeetingTagsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListMeetingTagsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListMeetingTagsResult call() throws Exception { ListMeetingTagsResult result = null; try { result = executeListMeetingTags(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future listMeetingsAsync(ListMeetingsRequest request) { return listMeetingsAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future listMeetingsAsync(final ListMeetingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListMeetingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListMeetingsResult call() throws Exception { ListMeetingsResult result = null; try { result = executeListMeetings(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 listPhoneNumberOrdersAsync(ListPhoneNumberOrdersRequest request) { return listPhoneNumberOrdersAsync(request, null); } @Override public java.util.concurrent.Future listPhoneNumberOrdersAsync(final ListPhoneNumberOrdersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListPhoneNumberOrdersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListPhoneNumberOrdersResult call() throws Exception { ListPhoneNumberOrdersResult result = null; try { result = executeListPhoneNumberOrders(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 listPhoneNumbersAsync(ListPhoneNumbersRequest request) { return listPhoneNumbersAsync(request, null); } @Override public java.util.concurrent.Future listPhoneNumbersAsync(final ListPhoneNumbersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListPhoneNumbersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListPhoneNumbersResult call() throws Exception { ListPhoneNumbersResult result = null; try { result = executeListPhoneNumbers(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future listProxySessionsAsync(ListProxySessionsRequest request) { return listProxySessionsAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future listProxySessionsAsync(final ListProxySessionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListProxySessionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListProxySessionsResult call() throws Exception { ListProxySessionsResult result = null; try { result = executeListProxySessions(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 listRoomMembershipsAsync(ListRoomMembershipsRequest request) { return listRoomMembershipsAsync(request, null); } @Override public java.util.concurrent.Future listRoomMembershipsAsync(final ListRoomMembershipsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListRoomMembershipsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListRoomMembershipsResult call() throws Exception { ListRoomMembershipsResult result = null; try { result = executeListRoomMemberships(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 listRoomsAsync(ListRoomsRequest request) { return listRoomsAsync(request, null); } @Override public java.util.concurrent.Future listRoomsAsync(final ListRoomsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListRoomsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListRoomsResult call() throws Exception { ListRoomsResult result = null; try { result = executeListRooms(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future listSipMediaApplicationsAsync(ListSipMediaApplicationsRequest request) { return listSipMediaApplicationsAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future listSipMediaApplicationsAsync(final ListSipMediaApplicationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListSipMediaApplicationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListSipMediaApplicationsResult call() throws Exception { ListSipMediaApplicationsResult result = null; try { result = executeListSipMediaApplications(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future listSipRulesAsync(ListSipRulesRequest request) { return listSipRulesAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future listSipRulesAsync(final ListSipRulesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListSipRulesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListSipRulesResult call() throws Exception { ListSipRulesResult result = null; try { result = executeListSipRules(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 listSupportedPhoneNumberCountriesAsync( ListSupportedPhoneNumberCountriesRequest request) { return listSupportedPhoneNumberCountriesAsync(request, null); } @Override public java.util.concurrent.Future listSupportedPhoneNumberCountriesAsync( final ListSupportedPhoneNumberCountriesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListSupportedPhoneNumberCountriesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListSupportedPhoneNumberCountriesResult call() throws Exception { ListSupportedPhoneNumberCountriesResult result = null; try { result = executeListSupportedPhoneNumberCountries(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest request) { return listTagsForResourceAsync(request, null); } @Override @Deprecated 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 listUsersAsync(ListUsersRequest request) { return listUsersAsync(request, null); } @Override public java.util.concurrent.Future listUsersAsync(final ListUsersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListUsersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListUsersResult call() throws Exception { ListUsersResult result = null; try { result = executeListUsers(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future listVoiceConnectorGroupsAsync(ListVoiceConnectorGroupsRequest request) { return listVoiceConnectorGroupsAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future listVoiceConnectorGroupsAsync(final ListVoiceConnectorGroupsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListVoiceConnectorGroupsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListVoiceConnectorGroupsResult call() throws Exception { ListVoiceConnectorGroupsResult result = null; try { result = executeListVoiceConnectorGroups(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future listVoiceConnectorTerminationCredentialsAsync( ListVoiceConnectorTerminationCredentialsRequest request) { return listVoiceConnectorTerminationCredentialsAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future listVoiceConnectorTerminationCredentialsAsync( final ListVoiceConnectorTerminationCredentialsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListVoiceConnectorTerminationCredentialsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListVoiceConnectorTerminationCredentialsResult call() throws Exception { ListVoiceConnectorTerminationCredentialsResult result = null; try { result = executeListVoiceConnectorTerminationCredentials(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future listVoiceConnectorsAsync(ListVoiceConnectorsRequest request) { return listVoiceConnectorsAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future listVoiceConnectorsAsync(final ListVoiceConnectorsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListVoiceConnectorsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListVoiceConnectorsResult call() throws Exception { ListVoiceConnectorsResult result = null; try { result = executeListVoiceConnectors(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 logoutUserAsync(LogoutUserRequest request) { return logoutUserAsync(request, null); } @Override public java.util.concurrent.Future logoutUserAsync(final LogoutUserRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final LogoutUserRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public LogoutUserResult call() throws Exception { LogoutUserResult result = null; try { result = executeLogoutUser(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future putAppInstanceRetentionSettingsAsync( PutAppInstanceRetentionSettingsRequest request) { return putAppInstanceRetentionSettingsAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future putAppInstanceRetentionSettingsAsync( final PutAppInstanceRetentionSettingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutAppInstanceRetentionSettingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutAppInstanceRetentionSettingsResult call() throws Exception { PutAppInstanceRetentionSettingsResult result = null; try { result = executePutAppInstanceRetentionSettings(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future putAppInstanceStreamingConfigurationsAsync( PutAppInstanceStreamingConfigurationsRequest request) { return putAppInstanceStreamingConfigurationsAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future putAppInstanceStreamingConfigurationsAsync( final PutAppInstanceStreamingConfigurationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutAppInstanceStreamingConfigurationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutAppInstanceStreamingConfigurationsResult call() throws Exception { PutAppInstanceStreamingConfigurationsResult result = null; try { result = executePutAppInstanceStreamingConfigurations(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 putEventsConfigurationAsync(PutEventsConfigurationRequest request) { return putEventsConfigurationAsync(request, null); } @Override public java.util.concurrent.Future putEventsConfigurationAsync(final PutEventsConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutEventsConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutEventsConfigurationResult call() throws Exception { PutEventsConfigurationResult result = null; try { result = executePutEventsConfiguration(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 putRetentionSettingsAsync(PutRetentionSettingsRequest request) { return putRetentionSettingsAsync(request, null); } @Override public java.util.concurrent.Future putRetentionSettingsAsync(final PutRetentionSettingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutRetentionSettingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutRetentionSettingsResult call() throws Exception { PutRetentionSettingsResult result = null; try { result = executePutRetentionSettings(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future putSipMediaApplicationLoggingConfigurationAsync( PutSipMediaApplicationLoggingConfigurationRequest request) { return putSipMediaApplicationLoggingConfigurationAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future putSipMediaApplicationLoggingConfigurationAsync( final PutSipMediaApplicationLoggingConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutSipMediaApplicationLoggingConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutSipMediaApplicationLoggingConfigurationResult call() throws Exception { PutSipMediaApplicationLoggingConfigurationResult result = null; try { result = executePutSipMediaApplicationLoggingConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future putVoiceConnectorEmergencyCallingConfigurationAsync( PutVoiceConnectorEmergencyCallingConfigurationRequest request) { return putVoiceConnectorEmergencyCallingConfigurationAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future putVoiceConnectorEmergencyCallingConfigurationAsync( final PutVoiceConnectorEmergencyCallingConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutVoiceConnectorEmergencyCallingConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutVoiceConnectorEmergencyCallingConfigurationResult call() throws Exception { PutVoiceConnectorEmergencyCallingConfigurationResult result = null; try { result = executePutVoiceConnectorEmergencyCallingConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future putVoiceConnectorLoggingConfigurationAsync( PutVoiceConnectorLoggingConfigurationRequest request) { return putVoiceConnectorLoggingConfigurationAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future putVoiceConnectorLoggingConfigurationAsync( final PutVoiceConnectorLoggingConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutVoiceConnectorLoggingConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutVoiceConnectorLoggingConfigurationResult call() throws Exception { PutVoiceConnectorLoggingConfigurationResult result = null; try { result = executePutVoiceConnectorLoggingConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future putVoiceConnectorOriginationAsync(PutVoiceConnectorOriginationRequest request) { return putVoiceConnectorOriginationAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future putVoiceConnectorOriginationAsync(final PutVoiceConnectorOriginationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutVoiceConnectorOriginationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutVoiceConnectorOriginationResult call() throws Exception { PutVoiceConnectorOriginationResult result = null; try { result = executePutVoiceConnectorOrigination(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future putVoiceConnectorProxyAsync(PutVoiceConnectorProxyRequest request) { return putVoiceConnectorProxyAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future putVoiceConnectorProxyAsync(final PutVoiceConnectorProxyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutVoiceConnectorProxyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutVoiceConnectorProxyResult call() throws Exception { PutVoiceConnectorProxyResult result = null; try { result = executePutVoiceConnectorProxy(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future putVoiceConnectorStreamingConfigurationAsync( PutVoiceConnectorStreamingConfigurationRequest request) { return putVoiceConnectorStreamingConfigurationAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future putVoiceConnectorStreamingConfigurationAsync( final PutVoiceConnectorStreamingConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutVoiceConnectorStreamingConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutVoiceConnectorStreamingConfigurationResult call() throws Exception { PutVoiceConnectorStreamingConfigurationResult result = null; try { result = executePutVoiceConnectorStreamingConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future putVoiceConnectorTerminationAsync(PutVoiceConnectorTerminationRequest request) { return putVoiceConnectorTerminationAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future putVoiceConnectorTerminationAsync(final PutVoiceConnectorTerminationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutVoiceConnectorTerminationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutVoiceConnectorTerminationResult call() throws Exception { PutVoiceConnectorTerminationResult result = null; try { result = executePutVoiceConnectorTermination(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future putVoiceConnectorTerminationCredentialsAsync( PutVoiceConnectorTerminationCredentialsRequest request) { return putVoiceConnectorTerminationCredentialsAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future putVoiceConnectorTerminationCredentialsAsync( final PutVoiceConnectorTerminationCredentialsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutVoiceConnectorTerminationCredentialsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutVoiceConnectorTerminationCredentialsResult call() throws Exception { PutVoiceConnectorTerminationCredentialsResult result = null; try { result = executePutVoiceConnectorTerminationCredentials(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future redactChannelMessageAsync(RedactChannelMessageRequest request) { return redactChannelMessageAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future redactChannelMessageAsync(final RedactChannelMessageRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RedactChannelMessageRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RedactChannelMessageResult call() throws Exception { RedactChannelMessageResult result = null; try { result = executeRedactChannelMessage(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 redactConversationMessageAsync(RedactConversationMessageRequest request) { return redactConversationMessageAsync(request, null); } @Override public java.util.concurrent.Future redactConversationMessageAsync(final RedactConversationMessageRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RedactConversationMessageRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RedactConversationMessageResult call() throws Exception { RedactConversationMessageResult result = null; try { result = executeRedactConversationMessage(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 redactRoomMessageAsync(RedactRoomMessageRequest request) { return redactRoomMessageAsync(request, null); } @Override public java.util.concurrent.Future redactRoomMessageAsync(final RedactRoomMessageRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RedactRoomMessageRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RedactRoomMessageResult call() throws Exception { RedactRoomMessageResult result = null; try { result = executeRedactRoomMessage(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 regenerateSecurityTokenAsync(RegenerateSecurityTokenRequest request) { return regenerateSecurityTokenAsync(request, null); } @Override public java.util.concurrent.Future regenerateSecurityTokenAsync(final RegenerateSecurityTokenRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RegenerateSecurityTokenRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RegenerateSecurityTokenResult call() throws Exception { RegenerateSecurityTokenResult result = null; try { result = executeRegenerateSecurityToken(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 resetPersonalPINAsync(ResetPersonalPINRequest request) { return resetPersonalPINAsync(request, null); } @Override public java.util.concurrent.Future resetPersonalPINAsync(final ResetPersonalPINRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ResetPersonalPINRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ResetPersonalPINResult call() throws Exception { ResetPersonalPINResult result = null; try { result = executeResetPersonalPIN(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 restorePhoneNumberAsync(RestorePhoneNumberRequest request) { return restorePhoneNumberAsync(request, null); } @Override public java.util.concurrent.Future restorePhoneNumberAsync(final RestorePhoneNumberRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RestorePhoneNumberRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RestorePhoneNumberResult call() throws Exception { RestorePhoneNumberResult result = null; try { result = executeRestorePhoneNumber(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 searchAvailablePhoneNumbersAsync(SearchAvailablePhoneNumbersRequest request) { return searchAvailablePhoneNumbersAsync(request, null); } @Override public java.util.concurrent.Future searchAvailablePhoneNumbersAsync(final SearchAvailablePhoneNumbersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final SearchAvailablePhoneNumbersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public SearchAvailablePhoneNumbersResult call() throws Exception { SearchAvailablePhoneNumbersResult result = null; try { result = executeSearchAvailablePhoneNumbers(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future sendChannelMessageAsync(SendChannelMessageRequest request) { return sendChannelMessageAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future sendChannelMessageAsync(final SendChannelMessageRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final SendChannelMessageRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public SendChannelMessageResult call() throws Exception { SendChannelMessageResult result = null; try { result = executeSendChannelMessage(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future startMeetingTranscriptionAsync(StartMeetingTranscriptionRequest request) { return startMeetingTranscriptionAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future startMeetingTranscriptionAsync(final StartMeetingTranscriptionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StartMeetingTranscriptionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StartMeetingTranscriptionResult call() throws Exception { StartMeetingTranscriptionResult result = null; try { result = executeStartMeetingTranscription(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future stopMeetingTranscriptionAsync(StopMeetingTranscriptionRequest request) { return stopMeetingTranscriptionAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future stopMeetingTranscriptionAsync(final StopMeetingTranscriptionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StopMeetingTranscriptionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StopMeetingTranscriptionResult call() throws Exception { StopMeetingTranscriptionResult result = null; try { result = executeStopMeetingTranscription(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future tagAttendeeAsync(TagAttendeeRequest request) { return tagAttendeeAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future tagAttendeeAsync(final TagAttendeeRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final TagAttendeeRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public TagAttendeeResult call() throws Exception { TagAttendeeResult result = null; try { result = executeTagAttendee(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future tagMeetingAsync(TagMeetingRequest request) { return tagMeetingAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future tagMeetingAsync(final TagMeetingRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final TagMeetingRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public TagMeetingResult call() throws Exception { TagMeetingResult result = null; try { result = executeTagMeeting(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future tagResourceAsync(TagResourceRequest request) { return tagResourceAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future tagResourceAsync(final TagResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final TagResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public TagResourceResult call() throws Exception { TagResourceResult result = null; try { result = executeTagResource(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future untagAttendeeAsync(UntagAttendeeRequest request) { return untagAttendeeAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future untagAttendeeAsync(final UntagAttendeeRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UntagAttendeeRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UntagAttendeeResult call() throws Exception { UntagAttendeeResult result = null; try { result = executeUntagAttendee(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future untagMeetingAsync(UntagMeetingRequest request) { return untagMeetingAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future untagMeetingAsync(final UntagMeetingRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UntagMeetingRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UntagMeetingResult call() throws Exception { UntagMeetingResult result = null; try { result = executeUntagMeeting(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future untagResourceAsync(UntagResourceRequest request) { return untagResourceAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future untagResourceAsync(final UntagResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UntagResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UntagResourceResult call() throws Exception { UntagResourceResult result = null; try { result = executeUntagResource(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateAccountAsync(UpdateAccountRequest request) { return updateAccountAsync(request, null); } @Override public java.util.concurrent.Future updateAccountAsync(final UpdateAccountRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAccountRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAccountResult call() throws Exception { UpdateAccountResult result = null; try { result = executeUpdateAccount(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 updateAccountSettingsAsync(UpdateAccountSettingsRequest request) { return updateAccountSettingsAsync(request, null); } @Override public java.util.concurrent.Future updateAccountSettingsAsync(final UpdateAccountSettingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAccountSettingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAccountSettingsResult call() throws Exception { UpdateAccountSettingsResult result = null; try { result = executeUpdateAccountSettings(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future updateAppInstanceAsync(UpdateAppInstanceRequest request) { return updateAppInstanceAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future updateAppInstanceAsync(final UpdateAppInstanceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAppInstanceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAppInstanceResult call() throws Exception { UpdateAppInstanceResult result = null; try { result = executeUpdateAppInstance(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future updateAppInstanceUserAsync(UpdateAppInstanceUserRequest request) { return updateAppInstanceUserAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future updateAppInstanceUserAsync(final UpdateAppInstanceUserRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAppInstanceUserRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAppInstanceUserResult call() throws Exception { UpdateAppInstanceUserResult result = null; try { result = executeUpdateAppInstanceUser(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 updateBotAsync(UpdateBotRequest request) { return updateBotAsync(request, null); } @Override public java.util.concurrent.Future updateBotAsync(final UpdateBotRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateBotRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateBotResult call() throws Exception { UpdateBotResult result = null; try { result = executeUpdateBot(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future updateChannelAsync(UpdateChannelRequest request) { return updateChannelAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future updateChannelAsync(final UpdateChannelRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateChannelRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateChannelResult call() throws Exception { UpdateChannelResult result = null; try { result = executeUpdateChannel(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future updateChannelMessageAsync(UpdateChannelMessageRequest request) { return updateChannelMessageAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future updateChannelMessageAsync(final UpdateChannelMessageRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateChannelMessageRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateChannelMessageResult call() throws Exception { UpdateChannelMessageResult result = null; try { result = executeUpdateChannelMessage(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future updateChannelReadMarkerAsync(UpdateChannelReadMarkerRequest request) { return updateChannelReadMarkerAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future updateChannelReadMarkerAsync(final UpdateChannelReadMarkerRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateChannelReadMarkerRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateChannelReadMarkerResult call() throws Exception { UpdateChannelReadMarkerResult result = null; try { result = executeUpdateChannelReadMarker(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 updateGlobalSettingsAsync(UpdateGlobalSettingsRequest request) { return updateGlobalSettingsAsync(request, null); } @Override public java.util.concurrent.Future updateGlobalSettingsAsync(final UpdateGlobalSettingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateGlobalSettingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateGlobalSettingsResult call() throws Exception { UpdateGlobalSettingsResult result = null; try { result = executeUpdateGlobalSettings(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 updatePhoneNumberAsync(UpdatePhoneNumberRequest request) { return updatePhoneNumberAsync(request, null); } @Override public java.util.concurrent.Future updatePhoneNumberAsync(final UpdatePhoneNumberRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdatePhoneNumberRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdatePhoneNumberResult call() throws Exception { UpdatePhoneNumberResult result = null; try { result = executeUpdatePhoneNumber(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 updatePhoneNumberSettingsAsync(UpdatePhoneNumberSettingsRequest request) { return updatePhoneNumberSettingsAsync(request, null); } @Override public java.util.concurrent.Future updatePhoneNumberSettingsAsync(final UpdatePhoneNumberSettingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdatePhoneNumberSettingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdatePhoneNumberSettingsResult call() throws Exception { UpdatePhoneNumberSettingsResult result = null; try { result = executeUpdatePhoneNumberSettings(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future updateProxySessionAsync(UpdateProxySessionRequest request) { return updateProxySessionAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future updateProxySessionAsync(final UpdateProxySessionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateProxySessionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateProxySessionResult call() throws Exception { UpdateProxySessionResult result = null; try { result = executeUpdateProxySession(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 updateRoomAsync(UpdateRoomRequest request) { return updateRoomAsync(request, null); } @Override public java.util.concurrent.Future updateRoomAsync(final UpdateRoomRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateRoomRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateRoomResult call() throws Exception { UpdateRoomResult result = null; try { result = executeUpdateRoom(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 updateRoomMembershipAsync(UpdateRoomMembershipRequest request) { return updateRoomMembershipAsync(request, null); } @Override public java.util.concurrent.Future updateRoomMembershipAsync(final UpdateRoomMembershipRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateRoomMembershipRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateRoomMembershipResult call() throws Exception { UpdateRoomMembershipResult result = null; try { result = executeUpdateRoomMembership(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future updateSipMediaApplicationAsync(UpdateSipMediaApplicationRequest request) { return updateSipMediaApplicationAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future updateSipMediaApplicationAsync(final UpdateSipMediaApplicationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateSipMediaApplicationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateSipMediaApplicationResult call() throws Exception { UpdateSipMediaApplicationResult result = null; try { result = executeUpdateSipMediaApplication(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future updateSipMediaApplicationCallAsync(UpdateSipMediaApplicationCallRequest request) { return updateSipMediaApplicationCallAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future updateSipMediaApplicationCallAsync( final UpdateSipMediaApplicationCallRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateSipMediaApplicationCallRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateSipMediaApplicationCallResult call() throws Exception { UpdateSipMediaApplicationCallResult result = null; try { result = executeUpdateSipMediaApplicationCall(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future updateSipRuleAsync(UpdateSipRuleRequest request) { return updateSipRuleAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future updateSipRuleAsync(final UpdateSipRuleRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateSipRuleRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateSipRuleResult call() throws Exception { UpdateSipRuleResult result = null; try { result = executeUpdateSipRule(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 updateUserAsync(UpdateUserRequest request) { return updateUserAsync(request, null); } @Override public java.util.concurrent.Future updateUserAsync(final UpdateUserRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateUserRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateUserResult call() throws Exception { UpdateUserResult result = null; try { result = executeUpdateUser(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 updateUserSettingsAsync(UpdateUserSettingsRequest request) { return updateUserSettingsAsync(request, null); } @Override public java.util.concurrent.Future updateUserSettingsAsync(final UpdateUserSettingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateUserSettingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateUserSettingsResult call() throws Exception { UpdateUserSettingsResult result = null; try { result = executeUpdateUserSettings(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future updateVoiceConnectorAsync(UpdateVoiceConnectorRequest request) { return updateVoiceConnectorAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future updateVoiceConnectorAsync(final UpdateVoiceConnectorRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateVoiceConnectorRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateVoiceConnectorResult call() throws Exception { UpdateVoiceConnectorResult result = null; try { result = executeUpdateVoiceConnector(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future updateVoiceConnectorGroupAsync(UpdateVoiceConnectorGroupRequest request) { return updateVoiceConnectorGroupAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future updateVoiceConnectorGroupAsync(final UpdateVoiceConnectorGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateVoiceConnectorGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateVoiceConnectorGroupResult call() throws Exception { UpdateVoiceConnectorGroupResult result = null; try { result = executeUpdateVoiceConnectorGroup(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override @Deprecated public java.util.concurrent.Future validateE911AddressAsync(ValidateE911AddressRequest request) { return validateE911AddressAsync(request, null); } @Override @Deprecated public java.util.concurrent.Future validateE911AddressAsync(final ValidateE911AddressRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ValidateE911AddressRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ValidateE911AddressResult call() throws Exception { ValidateE911AddressResult result = null; try { result = executeValidateE911Address(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