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
/*
* Copyright 2014-2019 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 AWS 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) {
super(asyncClientParams);
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 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 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 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 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 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 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 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 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 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 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 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 describeDataSetAsync(DescribeDataSetRequest request) {
return describeDataSetAsync(request, null);
}
@Override
public java.util.concurrent.Future describeDataSetAsync(final DescribeDataSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeDataSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeDataSetResult call() throws Exception {
DescribeDataSetResult result = null;
try {
result = executeDescribeDataSet(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeDataSetPermissionsAsync(DescribeDataSetPermissionsRequest request) {
return describeDataSetPermissionsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeDataSetPermissionsAsync(final DescribeDataSetPermissionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeDataSetPermissionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeDataSetPermissionsResult call() throws Exception {
DescribeDataSetPermissionsResult result = null;
try {
result = executeDescribeDataSetPermissions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeDataSourceAsync(DescribeDataSourceRequest request) {
return describeDataSourceAsync(request, null);
}
@Override
public java.util.concurrent.Future describeDataSourceAsync(final DescribeDataSourceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeDataSourceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeDataSourceResult call() throws Exception {
DescribeDataSourceResult result = null;
try {
result = executeDescribeDataSource(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeDataSourcePermissionsAsync(DescribeDataSourcePermissionsRequest request) {
return describeDataSourcePermissionsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeDataSourcePermissionsAsync(
final DescribeDataSourcePermissionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeDataSourcePermissionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeDataSourcePermissionsResult call() throws Exception {
DescribeDataSourcePermissionsResult result = null;
try {
result = executeDescribeDataSourcePermissions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeGroupAsync(DescribeGroupRequest request) {
return describeGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future describeGroupAsync(final DescribeGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeGroupResult call() throws Exception {
DescribeGroupResult result = null;
try {
result = executeDescribeGroup(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeIAMPolicyAssignmentAsync(DescribeIAMPolicyAssignmentRequest request) {
return describeIAMPolicyAssignmentAsync(request, null);
}
@Override
public java.util.concurrent.Future describeIAMPolicyAssignmentAsync(final DescribeIAMPolicyAssignmentRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeIAMPolicyAssignmentRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeIAMPolicyAssignmentResult call() throws Exception {
DescribeIAMPolicyAssignmentResult result = null;
try {
result = executeDescribeIAMPolicyAssignment(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeIngestionAsync(DescribeIngestionRequest request) {
return describeIngestionAsync(request, null);
}
@Override
public java.util.concurrent.Future describeIngestionAsync(final DescribeIngestionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeIngestionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeIngestionResult call() throws Exception {
DescribeIngestionResult result = null;
try {
result = executeDescribeIngestion(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeTemplateAsync(DescribeTemplateRequest request) {
return describeTemplateAsync(request, null);
}
@Override
public java.util.concurrent.Future describeTemplateAsync(final DescribeTemplateRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeTemplateRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeTemplateResult call() throws Exception {
DescribeTemplateResult result = null;
try {
result = executeDescribeTemplate(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeTemplateAliasAsync(DescribeTemplateAliasRequest request) {
return describeTemplateAliasAsync(request, null);
}
@Override
public java.util.concurrent.Future describeTemplateAliasAsync(final DescribeTemplateAliasRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeTemplateAliasRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeTemplateAliasResult call() throws Exception {
DescribeTemplateAliasResult result = null;
try {
result = executeDescribeTemplateAlias(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeTemplatePermissionsAsync(DescribeTemplatePermissionsRequest request) {
return describeTemplatePermissionsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeTemplatePermissionsAsync(final DescribeTemplatePermissionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeTemplatePermissionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeTemplatePermissionsResult call() throws Exception {
DescribeTemplatePermissionsResult result = null;
try {
result = executeDescribeTemplatePermissions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeUserAsync(DescribeUserRequest request) {
return describeUserAsync(request, null);
}
@Override
public java.util.concurrent.Future describeUserAsync(final DescribeUserRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeUserRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeUserResult call() throws Exception {
DescribeUserResult result = null;
try {
result = executeDescribeUser(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getDashboardEmbedUrlAsync(GetDashboardEmbedUrlRequest request) {
return getDashboardEmbedUrlAsync(request, null);
}
@Override
public java.util.concurrent.Future getDashboardEmbedUrlAsync(final GetDashboardEmbedUrlRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetDashboardEmbedUrlRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetDashboardEmbedUrlResult call() throws Exception {
GetDashboardEmbedUrlResult result = null;
try {
result = executeGetDashboardEmbedUrl(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listDashboardVersionsAsync(ListDashboardVersionsRequest request) {
return listDashboardVersionsAsync(request, null);
}
@Override
public java.util.concurrent.Future listDashboardVersionsAsync(final ListDashboardVersionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListDashboardVersionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListDashboardVersionsResult call() throws Exception {
ListDashboardVersionsResult result = null;
try {
result = executeListDashboardVersions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listDashboardsAsync(ListDashboardsRequest request) {
return listDashboardsAsync(request, null);
}
@Override
public java.util.concurrent.Future listDashboardsAsync(final ListDashboardsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListDashboardsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListDashboardsResult call() throws Exception {
ListDashboardsResult result = null;
try {
result = executeListDashboards(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listDataSetsAsync(ListDataSetsRequest request) {
return listDataSetsAsync(request, null);
}
@Override
public java.util.concurrent.Future listDataSetsAsync(final ListDataSetsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListDataSetsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListDataSetsResult call() throws Exception {
ListDataSetsResult result = null;
try {
result = executeListDataSets(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listDataSourcesAsync(ListDataSourcesRequest request) {
return listDataSourcesAsync(request, null);
}
@Override
public java.util.concurrent.Future listDataSourcesAsync(final ListDataSourcesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListDataSourcesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListDataSourcesResult call() throws Exception {
ListDataSourcesResult result = null;
try {
result = executeListDataSources(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listGroupMembershipsAsync(ListGroupMembershipsRequest request) {
return listGroupMembershipsAsync(request, null);
}
@Override
public java.util.concurrent.Future listGroupMembershipsAsync(final ListGroupMembershipsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListGroupMembershipsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListGroupMembershipsResult call() throws Exception {
ListGroupMembershipsResult result = null;
try {
result = executeListGroupMemberships(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listGroupsAsync(ListGroupsRequest request) {
return listGroupsAsync(request, null);
}
@Override
public java.util.concurrent.Future listGroupsAsync(final ListGroupsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListGroupsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListGroupsResult call() throws Exception {
ListGroupsResult result = null;
try {
result = executeListGroups(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listIAMPolicyAssignmentsAsync(ListIAMPolicyAssignmentsRequest request) {
return listIAMPolicyAssignmentsAsync(request, null);
}
@Override
public java.util.concurrent.Future listIAMPolicyAssignmentsAsync(final ListIAMPolicyAssignmentsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListIAMPolicyAssignmentsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListIAMPolicyAssignmentsResult call() throws Exception {
ListIAMPolicyAssignmentsResult result = null;
try {
result = executeListIAMPolicyAssignments(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listIAMPolicyAssignmentsForUserAsync(
ListIAMPolicyAssignmentsForUserRequest request) {
return listIAMPolicyAssignmentsForUserAsync(request, null);
}
@Override
public java.util.concurrent.Future listIAMPolicyAssignmentsForUserAsync(
final ListIAMPolicyAssignmentsForUserRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListIAMPolicyAssignmentsForUserRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListIAMPolicyAssignmentsForUserResult call() throws Exception {
ListIAMPolicyAssignmentsForUserResult result = null;
try {
result = executeListIAMPolicyAssignmentsForUser(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listIngestionsAsync(ListIngestionsRequest request) {
return listIngestionsAsync(request, null);
}
@Override
public java.util.concurrent.Future listIngestionsAsync(final ListIngestionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListIngestionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListIngestionsResult call() throws Exception {
ListIngestionsResult result = null;
try {
result = executeListIngestions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest request) {
return listTagsForResourceAsync(request, null);
}
@Override
public java.util.concurrent.Future listTagsForResourceAsync(final ListTagsForResourceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListTagsForResourceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListTagsForResourceResult call() throws Exception {
ListTagsForResourceResult result = null;
try {
result = executeListTagsForResource(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listTemplateAliasesAsync(ListTemplateAliasesRequest request) {
return listTemplateAliasesAsync(request, null);
}
@Override
public java.util.concurrent.Future listTemplateAliasesAsync(final ListTemplateAliasesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListTemplateAliasesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListTemplateAliasesResult call() throws Exception {
ListTemplateAliasesResult result = null;
try {
result = executeListTemplateAliases(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listTemplateVersionsAsync(ListTemplateVersionsRequest request) {
return listTemplateVersionsAsync(request, null);
}
@Override
public java.util.concurrent.Future listTemplateVersionsAsync(final ListTemplateVersionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListTemplateVersionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListTemplateVersionsResult call() throws Exception {
ListTemplateVersionsResult result = null;
try {
result = executeListTemplateVersions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listTemplatesAsync(ListTemplatesRequest request) {
return listTemplatesAsync(request, null);
}
@Override
public java.util.concurrent.Future listTemplatesAsync(final ListTemplatesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListTemplatesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListTemplatesResult call() throws Exception {
ListTemplatesResult result = null;
try {
result = executeListTemplates(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listUserGroupsAsync(ListUserGroupsRequest request) {
return listUserGroupsAsync(request, null);
}
@Override
public java.util.concurrent.Future listUserGroupsAsync(final ListUserGroupsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListUserGroupsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListUserGroupsResult call() throws Exception {
ListUserGroupsResult result = null;
try {
result = executeListUserGroups(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listUsersAsync(ListUsersRequest request) {
return listUsersAsync(request, null);
}
@Override
public java.util.concurrent.Future listUsersAsync(final ListUsersRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListUsersRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListUsersResult call() throws Exception {
ListUsersResult result = null;
try {
result = executeListUsers(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future registerUserAsync(RegisterUserRequest request) {
return registerUserAsync(request, null);
}
@Override
public java.util.concurrent.Future registerUserAsync(final RegisterUserRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final RegisterUserRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public RegisterUserResult call() throws Exception {
RegisterUserResult result = null;
try {
result = executeRegisterUser(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future tagResourceAsync(TagResourceRequest request) {
return tagResourceAsync(request, null);
}
@Override
public java.util.concurrent.Future tagResourceAsync(final TagResourceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final TagResourceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public TagResourceResult call() throws Exception {
TagResourceResult result = null;
try {
result = executeTagResource(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future untagResourceAsync(UntagResourceRequest request) {
return untagResourceAsync(request, null);
}
@Override
public java.util.concurrent.Future untagResourceAsync(final UntagResourceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UntagResourceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UntagResourceResult call() throws Exception {
UntagResourceResult result = null;
try {
result = executeUntagResource(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateDashboardAsync(UpdateDashboardRequest request) {
return updateDashboardAsync(request, null);
}
@Override
public java.util.concurrent.Future updateDashboardAsync(final UpdateDashboardRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateDashboardRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateDashboardResult call() throws Exception {
UpdateDashboardResult result = null;
try {
result = executeUpdateDashboard(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateDashboardPermissionsAsync(UpdateDashboardPermissionsRequest request) {
return updateDashboardPermissionsAsync(request, null);
}
@Override
public java.util.concurrent.Future updateDashboardPermissionsAsync(final UpdateDashboardPermissionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateDashboardPermissionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateDashboardPermissionsResult call() throws Exception {
UpdateDashboardPermissionsResult result = null;
try {
result = executeUpdateDashboardPermissions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateDashboardPublishedVersionAsync(
UpdateDashboardPublishedVersionRequest request) {
return updateDashboardPublishedVersionAsync(request, null);
}
@Override
public java.util.concurrent.Future updateDashboardPublishedVersionAsync(
final UpdateDashboardPublishedVersionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateDashboardPublishedVersionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateDashboardPublishedVersionResult call() throws Exception {
UpdateDashboardPublishedVersionResult result = null;
try {
result = executeUpdateDashboardPublishedVersion(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateDataSetAsync(UpdateDataSetRequest request) {
return updateDataSetAsync(request, null);
}
@Override
public java.util.concurrent.Future updateDataSetAsync(final UpdateDataSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateDataSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateDataSetResult call() throws Exception {
UpdateDataSetResult result = null;
try {
result = executeUpdateDataSet(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateDataSetPermissionsAsync(UpdateDataSetPermissionsRequest request) {
return updateDataSetPermissionsAsync(request, null);
}
@Override
public java.util.concurrent.Future updateDataSetPermissionsAsync(final UpdateDataSetPermissionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateDataSetPermissionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateDataSetPermissionsResult call() throws Exception {
UpdateDataSetPermissionsResult result = null;
try {
result = executeUpdateDataSetPermissions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateDataSourceAsync(UpdateDataSourceRequest request) {
return updateDataSourceAsync(request, null);
}
@Override
public java.util.concurrent.Future updateDataSourceAsync(final UpdateDataSourceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateDataSourceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateDataSourceResult call() throws Exception {
UpdateDataSourceResult result = null;
try {
result = executeUpdateDataSource(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateDataSourcePermissionsAsync(UpdateDataSourcePermissionsRequest request) {
return updateDataSourcePermissionsAsync(request, null);
}
@Override
public java.util.concurrent.Future updateDataSourcePermissionsAsync(final UpdateDataSourcePermissionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateDataSourcePermissionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateDataSourcePermissionsResult call() throws Exception {
UpdateDataSourcePermissionsResult result = null;
try {
result = executeUpdateDataSourcePermissions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateGroupAsync(UpdateGroupRequest request) {
return updateGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future updateGroupAsync(final UpdateGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateGroupResult call() throws Exception {
UpdateGroupResult result = null;
try {
result = executeUpdateGroup(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateIAMPolicyAssignmentAsync(UpdateIAMPolicyAssignmentRequest request) {
return updateIAMPolicyAssignmentAsync(request, null);
}
@Override
public java.util.concurrent.Future updateIAMPolicyAssignmentAsync(final UpdateIAMPolicyAssignmentRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateIAMPolicyAssignmentRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateIAMPolicyAssignmentResult call() throws Exception {
UpdateIAMPolicyAssignmentResult result = null;
try {
result = executeUpdateIAMPolicyAssignment(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateTemplateAsync(UpdateTemplateRequest request) {
return updateTemplateAsync(request, null);
}
@Override
public java.util.concurrent.Future updateTemplateAsync(final UpdateTemplateRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateTemplateRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateTemplateResult call() throws Exception {
UpdateTemplateResult result = null;
try {
result = executeUpdateTemplate(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateTemplateAliasAsync(UpdateTemplateAliasRequest request) {
return updateTemplateAliasAsync(request, null);
}
@Override
public java.util.concurrent.Future updateTemplateAliasAsync(final UpdateTemplateAliasRequest request,
final com.amazonaws.handlers.AsyncHandler