com.amazonaws.services.chime.AmazonChimeAsyncClient Maven / Gradle / Ivy
Show all versions of aws-java-sdk-chime Show documentation
/*
* 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