com.amazonaws.services.quicksight.AmazonQuickSightAsyncClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-quicksight Show documentation
Show all versions of aws-java-sdk-quicksight Show documentation
The AWS Java SDK for Amazon QuickSight module holds the client classes that are used for communicating with Amazon QuickSight Service
The newest version!
/*
* Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.quicksight;
import javax.annotation.Generated;
import com.amazonaws.services.quicksight.model.*;
import com.amazonaws.client.AwsAsyncClientParams;
import com.amazonaws.annotation.ThreadSafe;
import java.util.concurrent.ExecutorService;
/**
* Client for accessing Amazon QuickSight asynchronously. Each asynchronous method will return a Java Future object
* representing the asynchronous operation; overloads which accept an {@code AsyncHandler} can be used to receive
* notification when an asynchronous operation completes.
*
* Amazon QuickSight API Reference
*
* Amazon QuickSight is a fully managed, serverless business intelligence service for the Amazon Web Services Cloud that
* makes it easy to extend data and insights to every user in your organization. This API reference contains
* documentation for a programming interface that you can use to manage Amazon QuickSight.
*
*/
@ThreadSafe
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AmazonQuickSightAsyncClient extends AmazonQuickSightClient implements AmazonQuickSightAsync {
private static final int DEFAULT_THREAD_POOL_SIZE = 50;
private final java.util.concurrent.ExecutorService executorService;
public static AmazonQuickSightAsyncClientBuilder asyncBuilder() {
return AmazonQuickSightAsyncClientBuilder.standard();
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon QuickSight using the specified
* parameters.
*
* @param asyncClientParams
* Object providing client parameters.
*/
AmazonQuickSightAsyncClient(AwsAsyncClientParams asyncClientParams) {
this(asyncClientParams, false);
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon QuickSight using the specified
* parameters.
*
* @param asyncClientParams
* Object providing client parameters.
* @param endpointDiscoveryEnabled
* true will enable endpoint discovery if the service supports it.
*/
AmazonQuickSightAsyncClient(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 batchCreateTopicReviewedAnswerAsync(BatchCreateTopicReviewedAnswerRequest request) {
return batchCreateTopicReviewedAnswerAsync(request, null);
}
@Override
public java.util.concurrent.Future batchCreateTopicReviewedAnswerAsync(
final BatchCreateTopicReviewedAnswerRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final BatchCreateTopicReviewedAnswerRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public BatchCreateTopicReviewedAnswerResult call() throws Exception {
BatchCreateTopicReviewedAnswerResult result = null;
try {
result = executeBatchCreateTopicReviewedAnswer(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future batchDeleteTopicReviewedAnswerAsync(BatchDeleteTopicReviewedAnswerRequest request) {
return batchDeleteTopicReviewedAnswerAsync(request, null);
}
@Override
public java.util.concurrent.Future batchDeleteTopicReviewedAnswerAsync(
final BatchDeleteTopicReviewedAnswerRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final BatchDeleteTopicReviewedAnswerRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public BatchDeleteTopicReviewedAnswerResult call() throws Exception {
BatchDeleteTopicReviewedAnswerResult result = null;
try {
result = executeBatchDeleteTopicReviewedAnswer(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future cancelIngestionAsync(CancelIngestionRequest request) {
return cancelIngestionAsync(request, null);
}
@Override
public java.util.concurrent.Future cancelIngestionAsync(final CancelIngestionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CancelIngestionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CancelIngestionResult call() throws Exception {
CancelIngestionResult result = null;
try {
result = executeCancelIngestion(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createAccountCustomizationAsync(CreateAccountCustomizationRequest request) {
return createAccountCustomizationAsync(request, null);
}
@Override
public java.util.concurrent.Future createAccountCustomizationAsync(final CreateAccountCustomizationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateAccountCustomizationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateAccountCustomizationResult call() throws Exception {
CreateAccountCustomizationResult result = null;
try {
result = executeCreateAccountCustomization(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createAccountSubscriptionAsync(CreateAccountSubscriptionRequest request) {
return createAccountSubscriptionAsync(request, null);
}
@Override
public java.util.concurrent.Future createAccountSubscriptionAsync(final CreateAccountSubscriptionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateAccountSubscriptionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateAccountSubscriptionResult call() throws Exception {
CreateAccountSubscriptionResult result = null;
try {
result = executeCreateAccountSubscription(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createAnalysisAsync(CreateAnalysisRequest request) {
return createAnalysisAsync(request, null);
}
@Override
public java.util.concurrent.Future createAnalysisAsync(final CreateAnalysisRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateAnalysisRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateAnalysisResult call() throws Exception {
CreateAnalysisResult result = null;
try {
result = executeCreateAnalysis(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createDashboardAsync(CreateDashboardRequest request) {
return createDashboardAsync(request, null);
}
@Override
public java.util.concurrent.Future createDashboardAsync(final CreateDashboardRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateDashboardRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateDashboardResult call() throws Exception {
CreateDashboardResult result = null;
try {
result = executeCreateDashboard(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createDataSetAsync(CreateDataSetRequest request) {
return createDataSetAsync(request, null);
}
@Override
public java.util.concurrent.Future createDataSetAsync(final CreateDataSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateDataSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateDataSetResult call() throws Exception {
CreateDataSetResult result = null;
try {
result = executeCreateDataSet(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createDataSourceAsync(CreateDataSourceRequest request) {
return createDataSourceAsync(request, null);
}
@Override
public java.util.concurrent.Future createDataSourceAsync(final CreateDataSourceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateDataSourceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateDataSourceResult call() throws Exception {
CreateDataSourceResult result = null;
try {
result = executeCreateDataSource(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createFolderAsync(CreateFolderRequest request) {
return createFolderAsync(request, null);
}
@Override
public java.util.concurrent.Future createFolderAsync(final CreateFolderRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateFolderRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateFolderResult call() throws Exception {
CreateFolderResult result = null;
try {
result = executeCreateFolder(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createFolderMembershipAsync(CreateFolderMembershipRequest request) {
return createFolderMembershipAsync(request, null);
}
@Override
public java.util.concurrent.Future createFolderMembershipAsync(final CreateFolderMembershipRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateFolderMembershipRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateFolderMembershipResult call() throws Exception {
CreateFolderMembershipResult result = null;
try {
result = executeCreateFolderMembership(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createGroupAsync(CreateGroupRequest request) {
return createGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future createGroupAsync(final CreateGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateGroupResult call() throws Exception {
CreateGroupResult result = null;
try {
result = executeCreateGroup(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createGroupMembershipAsync(CreateGroupMembershipRequest request) {
return createGroupMembershipAsync(request, null);
}
@Override
public java.util.concurrent.Future createGroupMembershipAsync(final CreateGroupMembershipRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateGroupMembershipRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateGroupMembershipResult call() throws Exception {
CreateGroupMembershipResult result = null;
try {
result = executeCreateGroupMembership(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createIAMPolicyAssignmentAsync(CreateIAMPolicyAssignmentRequest request) {
return createIAMPolicyAssignmentAsync(request, null);
}
@Override
public java.util.concurrent.Future createIAMPolicyAssignmentAsync(final CreateIAMPolicyAssignmentRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateIAMPolicyAssignmentRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateIAMPolicyAssignmentResult call() throws Exception {
CreateIAMPolicyAssignmentResult result = null;
try {
result = executeCreateIAMPolicyAssignment(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createIngestionAsync(CreateIngestionRequest request) {
return createIngestionAsync(request, null);
}
@Override
public java.util.concurrent.Future createIngestionAsync(final CreateIngestionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateIngestionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateIngestionResult call() throws Exception {
CreateIngestionResult result = null;
try {
result = executeCreateIngestion(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createNamespaceAsync(CreateNamespaceRequest request) {
return createNamespaceAsync(request, null);
}
@Override
public java.util.concurrent.Future createNamespaceAsync(final CreateNamespaceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateNamespaceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateNamespaceResult call() throws Exception {
CreateNamespaceResult result = null;
try {
result = executeCreateNamespace(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createRefreshScheduleAsync(CreateRefreshScheduleRequest request) {
return createRefreshScheduleAsync(request, null);
}
@Override
public java.util.concurrent.Future createRefreshScheduleAsync(final CreateRefreshScheduleRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateRefreshScheduleRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateRefreshScheduleResult call() throws Exception {
CreateRefreshScheduleResult result = null;
try {
result = executeCreateRefreshSchedule(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createRoleMembershipAsync(CreateRoleMembershipRequest request) {
return createRoleMembershipAsync(request, null);
}
@Override
public java.util.concurrent.Future createRoleMembershipAsync(final CreateRoleMembershipRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateRoleMembershipRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateRoleMembershipResult call() throws Exception {
CreateRoleMembershipResult result = null;
try {
result = executeCreateRoleMembership(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createTemplateAsync(CreateTemplateRequest request) {
return createTemplateAsync(request, null);
}
@Override
public java.util.concurrent.Future createTemplateAsync(final CreateTemplateRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateTemplateRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateTemplateResult call() throws Exception {
CreateTemplateResult result = null;
try {
result = executeCreateTemplate(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createTemplateAliasAsync(CreateTemplateAliasRequest request) {
return createTemplateAliasAsync(request, null);
}
@Override
public java.util.concurrent.Future createTemplateAliasAsync(final CreateTemplateAliasRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateTemplateAliasRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateTemplateAliasResult call() throws Exception {
CreateTemplateAliasResult result = null;
try {
result = executeCreateTemplateAlias(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createThemeAsync(CreateThemeRequest request) {
return createThemeAsync(request, null);
}
@Override
public java.util.concurrent.Future createThemeAsync(final CreateThemeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateThemeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateThemeResult call() throws Exception {
CreateThemeResult result = null;
try {
result = executeCreateTheme(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createThemeAliasAsync(CreateThemeAliasRequest request) {
return createThemeAliasAsync(request, null);
}
@Override
public java.util.concurrent.Future createThemeAliasAsync(final CreateThemeAliasRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateThemeAliasRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateThemeAliasResult call() throws Exception {
CreateThemeAliasResult result = null;
try {
result = executeCreateThemeAlias(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createTopicAsync(CreateTopicRequest request) {
return createTopicAsync(request, null);
}
@Override
public java.util.concurrent.Future createTopicAsync(final CreateTopicRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateTopicRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateTopicResult call() throws Exception {
CreateTopicResult result = null;
try {
result = executeCreateTopic(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createTopicRefreshScheduleAsync(CreateTopicRefreshScheduleRequest request) {
return createTopicRefreshScheduleAsync(request, null);
}
@Override
public java.util.concurrent.Future createTopicRefreshScheduleAsync(final CreateTopicRefreshScheduleRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateTopicRefreshScheduleRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateTopicRefreshScheduleResult call() throws Exception {
CreateTopicRefreshScheduleResult result = null;
try {
result = executeCreateTopicRefreshSchedule(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createVPCConnectionAsync(CreateVPCConnectionRequest request) {
return createVPCConnectionAsync(request, null);
}
@Override
public java.util.concurrent.Future createVPCConnectionAsync(final CreateVPCConnectionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateVPCConnectionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateVPCConnectionResult call() throws Exception {
CreateVPCConnectionResult result = null;
try {
result = executeCreateVPCConnection(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteAccountCustomizationAsync(DeleteAccountCustomizationRequest request) {
return deleteAccountCustomizationAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteAccountCustomizationAsync(final DeleteAccountCustomizationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteAccountCustomizationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteAccountCustomizationResult call() throws Exception {
DeleteAccountCustomizationResult result = null;
try {
result = executeDeleteAccountCustomization(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteAccountSubscriptionAsync(DeleteAccountSubscriptionRequest request) {
return deleteAccountSubscriptionAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteAccountSubscriptionAsync(final DeleteAccountSubscriptionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteAccountSubscriptionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteAccountSubscriptionResult call() throws Exception {
DeleteAccountSubscriptionResult result = null;
try {
result = executeDeleteAccountSubscription(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteAnalysisAsync(DeleteAnalysisRequest request) {
return deleteAnalysisAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteAnalysisAsync(final DeleteAnalysisRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteAnalysisRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteAnalysisResult call() throws Exception {
DeleteAnalysisResult result = null;
try {
result = executeDeleteAnalysis(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteDashboardAsync(DeleteDashboardRequest request) {
return deleteDashboardAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteDashboardAsync(final DeleteDashboardRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteDashboardRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteDashboardResult call() throws Exception {
DeleteDashboardResult result = null;
try {
result = executeDeleteDashboard(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteDataSetAsync(DeleteDataSetRequest request) {
return deleteDataSetAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteDataSetAsync(final DeleteDataSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteDataSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteDataSetResult call() throws Exception {
DeleteDataSetResult result = null;
try {
result = executeDeleteDataSet(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteDataSetRefreshPropertiesAsync(DeleteDataSetRefreshPropertiesRequest request) {
return deleteDataSetRefreshPropertiesAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteDataSetRefreshPropertiesAsync(
final DeleteDataSetRefreshPropertiesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteDataSetRefreshPropertiesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteDataSetRefreshPropertiesResult call() throws Exception {
DeleteDataSetRefreshPropertiesResult result = null;
try {
result = executeDeleteDataSetRefreshProperties(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteDataSourceAsync(DeleteDataSourceRequest request) {
return deleteDataSourceAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteDataSourceAsync(final DeleteDataSourceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteDataSourceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteDataSourceResult call() throws Exception {
DeleteDataSourceResult result = null;
try {
result = executeDeleteDataSource(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteFolderAsync(DeleteFolderRequest request) {
return deleteFolderAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteFolderAsync(final DeleteFolderRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteFolderRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteFolderResult call() throws Exception {
DeleteFolderResult result = null;
try {
result = executeDeleteFolder(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteFolderMembershipAsync(DeleteFolderMembershipRequest request) {
return deleteFolderMembershipAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteFolderMembershipAsync(final DeleteFolderMembershipRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteFolderMembershipRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteFolderMembershipResult call() throws Exception {
DeleteFolderMembershipResult result = null;
try {
result = executeDeleteFolderMembership(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteGroupAsync(DeleteGroupRequest request) {
return deleteGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteGroupAsync(final DeleteGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteGroupResult call() throws Exception {
DeleteGroupResult result = null;
try {
result = executeDeleteGroup(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteGroupMembershipAsync(DeleteGroupMembershipRequest request) {
return deleteGroupMembershipAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteGroupMembershipAsync(final DeleteGroupMembershipRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteGroupMembershipRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteGroupMembershipResult call() throws Exception {
DeleteGroupMembershipResult result = null;
try {
result = executeDeleteGroupMembership(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteIAMPolicyAssignmentAsync(DeleteIAMPolicyAssignmentRequest request) {
return deleteIAMPolicyAssignmentAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteIAMPolicyAssignmentAsync(final DeleteIAMPolicyAssignmentRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteIAMPolicyAssignmentRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteIAMPolicyAssignmentResult call() throws Exception {
DeleteIAMPolicyAssignmentResult result = null;
try {
result = executeDeleteIAMPolicyAssignment(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteIdentityPropagationConfigAsync(
DeleteIdentityPropagationConfigRequest request) {
return deleteIdentityPropagationConfigAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteIdentityPropagationConfigAsync(
final DeleteIdentityPropagationConfigRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteIdentityPropagationConfigRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteIdentityPropagationConfigResult call() throws Exception {
DeleteIdentityPropagationConfigResult result = null;
try {
result = executeDeleteIdentityPropagationConfig(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteNamespaceAsync(DeleteNamespaceRequest request) {
return deleteNamespaceAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteNamespaceAsync(final DeleteNamespaceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteNamespaceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteNamespaceResult call() throws Exception {
DeleteNamespaceResult result = null;
try {
result = executeDeleteNamespace(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteRefreshScheduleAsync(DeleteRefreshScheduleRequest request) {
return deleteRefreshScheduleAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteRefreshScheduleAsync(final DeleteRefreshScheduleRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteRefreshScheduleRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteRefreshScheduleResult call() throws Exception {
DeleteRefreshScheduleResult result = null;
try {
result = executeDeleteRefreshSchedule(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteRoleCustomPermissionAsync(DeleteRoleCustomPermissionRequest request) {
return deleteRoleCustomPermissionAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteRoleCustomPermissionAsync(final DeleteRoleCustomPermissionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteRoleCustomPermissionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteRoleCustomPermissionResult call() throws Exception {
DeleteRoleCustomPermissionResult result = null;
try {
result = executeDeleteRoleCustomPermission(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteRoleMembershipAsync(DeleteRoleMembershipRequest request) {
return deleteRoleMembershipAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteRoleMembershipAsync(final DeleteRoleMembershipRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteRoleMembershipRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteRoleMembershipResult call() throws Exception {
DeleteRoleMembershipResult result = null;
try {
result = executeDeleteRoleMembership(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteTemplateAsync(DeleteTemplateRequest request) {
return deleteTemplateAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteTemplateAsync(final DeleteTemplateRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteTemplateRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteTemplateResult call() throws Exception {
DeleteTemplateResult result = null;
try {
result = executeDeleteTemplate(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteTemplateAliasAsync(DeleteTemplateAliasRequest request) {
return deleteTemplateAliasAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteTemplateAliasAsync(final DeleteTemplateAliasRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteTemplateAliasRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteTemplateAliasResult call() throws Exception {
DeleteTemplateAliasResult result = null;
try {
result = executeDeleteTemplateAlias(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteThemeAsync(DeleteThemeRequest request) {
return deleteThemeAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteThemeAsync(final DeleteThemeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteThemeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteThemeResult call() throws Exception {
DeleteThemeResult result = null;
try {
result = executeDeleteTheme(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteThemeAliasAsync(DeleteThemeAliasRequest request) {
return deleteThemeAliasAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteThemeAliasAsync(final DeleteThemeAliasRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteThemeAliasRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteThemeAliasResult call() throws Exception {
DeleteThemeAliasResult result = null;
try {
result = executeDeleteThemeAlias(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteTopicAsync(DeleteTopicRequest request) {
return deleteTopicAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteTopicAsync(final DeleteTopicRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteTopicRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteTopicResult call() throws Exception {
DeleteTopicResult result = null;
try {
result = executeDeleteTopic(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteTopicRefreshScheduleAsync(DeleteTopicRefreshScheduleRequest request) {
return deleteTopicRefreshScheduleAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteTopicRefreshScheduleAsync(final DeleteTopicRefreshScheduleRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteTopicRefreshScheduleRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteTopicRefreshScheduleResult call() throws Exception {
DeleteTopicRefreshScheduleResult result = null;
try {
result = executeDeleteTopicRefreshSchedule(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteUserAsync(DeleteUserRequest request) {
return deleteUserAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteUserAsync(final DeleteUserRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteUserRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteUserResult call() throws Exception {
DeleteUserResult result = null;
try {
result = executeDeleteUser(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteUserByPrincipalIdAsync(DeleteUserByPrincipalIdRequest request) {
return deleteUserByPrincipalIdAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteUserByPrincipalIdAsync(final DeleteUserByPrincipalIdRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteUserByPrincipalIdRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteUserByPrincipalIdResult call() throws Exception {
DeleteUserByPrincipalIdResult result = null;
try {
result = executeDeleteUserByPrincipalId(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteVPCConnectionAsync(DeleteVPCConnectionRequest request) {
return deleteVPCConnectionAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteVPCConnectionAsync(final DeleteVPCConnectionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteVPCConnectionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteVPCConnectionResult call() throws Exception {
DeleteVPCConnectionResult result = null;
try {
result = executeDeleteVPCConnection(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeAccountCustomizationAsync(DescribeAccountCustomizationRequest request) {
return describeAccountCustomizationAsync(request, null);
}
@Override
public java.util.concurrent.Future describeAccountCustomizationAsync(final DescribeAccountCustomizationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeAccountCustomizationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeAccountCustomizationResult call() throws Exception {
DescribeAccountCustomizationResult result = null;
try {
result = executeDescribeAccountCustomization(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeAccountSettingsAsync(DescribeAccountSettingsRequest request) {
return describeAccountSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeAccountSettingsAsync(final DescribeAccountSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeAccountSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeAccountSettingsResult call() throws Exception {
DescribeAccountSettingsResult result = null;
try {
result = executeDescribeAccountSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeAccountSubscriptionAsync(DescribeAccountSubscriptionRequest request) {
return describeAccountSubscriptionAsync(request, null);
}
@Override
public java.util.concurrent.Future describeAccountSubscriptionAsync(final DescribeAccountSubscriptionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeAccountSubscriptionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeAccountSubscriptionResult call() throws Exception {
DescribeAccountSubscriptionResult result = null;
try {
result = executeDescribeAccountSubscription(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeAnalysisAsync(DescribeAnalysisRequest request) {
return describeAnalysisAsync(request, null);
}
@Override
public java.util.concurrent.Future describeAnalysisAsync(final DescribeAnalysisRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeAnalysisRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeAnalysisResult call() throws Exception {
DescribeAnalysisResult result = null;
try {
result = executeDescribeAnalysis(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeAnalysisDefinitionAsync(DescribeAnalysisDefinitionRequest request) {
return describeAnalysisDefinitionAsync(request, null);
}
@Override
public java.util.concurrent.Future describeAnalysisDefinitionAsync(final DescribeAnalysisDefinitionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeAnalysisDefinitionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeAnalysisDefinitionResult call() throws Exception {
DescribeAnalysisDefinitionResult result = null;
try {
result = executeDescribeAnalysisDefinition(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeAnalysisPermissionsAsync(DescribeAnalysisPermissionsRequest request) {
return describeAnalysisPermissionsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeAnalysisPermissionsAsync(final DescribeAnalysisPermissionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeAnalysisPermissionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeAnalysisPermissionsResult call() throws Exception {
DescribeAnalysisPermissionsResult result = null;
try {
result = executeDescribeAnalysisPermissions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeAssetBundleExportJobAsync(DescribeAssetBundleExportJobRequest request) {
return describeAssetBundleExportJobAsync(request, null);
}
@Override
public java.util.concurrent.Future describeAssetBundleExportJobAsync(final DescribeAssetBundleExportJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeAssetBundleExportJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeAssetBundleExportJobResult call() throws Exception {
DescribeAssetBundleExportJobResult result = null;
try {
result = executeDescribeAssetBundleExportJob(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeAssetBundleImportJobAsync(DescribeAssetBundleImportJobRequest request) {
return describeAssetBundleImportJobAsync(request, null);
}
@Override
public java.util.concurrent.Future describeAssetBundleImportJobAsync(final DescribeAssetBundleImportJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeAssetBundleImportJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeAssetBundleImportJobResult call() throws Exception {
DescribeAssetBundleImportJobResult result = null;
try {
result = executeDescribeAssetBundleImportJob(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeDashboardAsync(DescribeDashboardRequest request) {
return describeDashboardAsync(request, null);
}
@Override
public java.util.concurrent.Future describeDashboardAsync(final DescribeDashboardRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeDashboardRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeDashboardResult call() throws Exception {
DescribeDashboardResult result = null;
try {
result = executeDescribeDashboard(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeDashboardDefinitionAsync(DescribeDashboardDefinitionRequest request) {
return describeDashboardDefinitionAsync(request, null);
}
@Override
public java.util.concurrent.Future describeDashboardDefinitionAsync(final DescribeDashboardDefinitionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeDashboardDefinitionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeDashboardDefinitionResult call() throws Exception {
DescribeDashboardDefinitionResult result = null;
try {
result = executeDescribeDashboardDefinition(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeDashboardPermissionsAsync(DescribeDashboardPermissionsRequest request) {
return describeDashboardPermissionsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeDashboardPermissionsAsync(final DescribeDashboardPermissionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeDashboardPermissionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeDashboardPermissionsResult call() throws Exception {
DescribeDashboardPermissionsResult result = null;
try {
result = executeDescribeDashboardPermissions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeDashboardSnapshotJobAsync(DescribeDashboardSnapshotJobRequest request) {
return describeDashboardSnapshotJobAsync(request, null);
}
@Override
public java.util.concurrent.Future describeDashboardSnapshotJobAsync(final DescribeDashboardSnapshotJobRequest request,
final com.amazonaws.handlers.AsyncHandler