com.amazonaws.services.databasemigrationservice.AWSDatabaseMigrationServiceAsyncClient Maven / Gradle / Ivy
/*
* 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.databasemigrationservice;
import static java.util.concurrent.Executors.newFixedThreadPool;
import javax.annotation.Generated;
import com.amazonaws.services.databasemigrationservice.model.*;
import com.amazonaws.client.AwsAsyncClientParams;
import com.amazonaws.annotation.ThreadSafe;
import com.amazonaws.ClientConfiguration;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.AWSCredentialsProvider;
import java.util.concurrent.ExecutorService;
import com.amazonaws.auth.DefaultAWSCredentialsProviderChain;
/**
* Client for accessing AWS Database Migration Service 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.
*
* Database Migration Service
*
* Database Migration Service (DMS) can migrate your data to and from the most widely used commercial and open-source
* databases such as Oracle, PostgreSQL, Microsoft SQL Server, Amazon Redshift, MariaDB, Amazon Aurora, MySQL, and SAP
* Adaptive Server Enterprise (ASE). The service supports homogeneous migrations such as Oracle to Oracle, as well as
* heterogeneous migrations between different database platforms, such as Oracle to MySQL or SQL Server to PostgreSQL.
*
*
* For more information about DMS, see What Is
* Database Migration Service? in the Database Migration Service User Guide.
*
*/
@ThreadSafe
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AWSDatabaseMigrationServiceAsyncClient extends AWSDatabaseMigrationServiceClient implements AWSDatabaseMigrationServiceAsync {
private static final int DEFAULT_THREAD_POOL_SIZE = 50;
private final java.util.concurrent.ExecutorService executorService;
/**
* Constructs a new asynchronous client to invoke service methods on AWS Database Migration Service. A credentials
* provider chain will be used that searches for credentials in this order:
*
* - Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
* - Java System Properties - aws.accessKeyId and aws.secretKey
* - Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
* - Instance profile credentials delivered through the Amazon EC2 metadata service
*
*
* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default
* maximum number of concurrent connections to the service).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AWSDatabaseMigrationServiceAsyncClientBuilder#defaultClient()}
*/
@Deprecated
public AWSDatabaseMigrationServiceAsyncClient() {
this(DefaultAWSCredentialsProviderChain.getInstance());
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Database Migration Service. A credentials
* provider chain will be used that searches for credentials in this order:
*
* - Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
* - Java System Properties - aws.accessKeyId and aws.secretKey
* - Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
* - Instance profile credentials delivered through the Amazon EC2 metadata service
*
*
* Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
* maximum number of concurrent connections configured via {@code ClientConfiguration.getMaxConnections()}.
*
* @param clientConfiguration
* The client configuration options controlling how this client connects to AWS Database Migration Service
* (ex: proxy settings, retry counts, etc).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use
* {@link AWSDatabaseMigrationServiceAsyncClientBuilder#withClientConfiguration(ClientConfiguration)}
*/
@Deprecated
public AWSDatabaseMigrationServiceAsyncClient(ClientConfiguration clientConfiguration) {
this(DefaultAWSCredentialsProviderChain.getInstance(), clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections()));
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Database Migration Service using the
* specified AWS account credentials.
*
* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default
* maximum number of concurrent connections to the service).
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AWSDatabaseMigrationServiceAsyncClientBuilder#withCredentials(AWSCredentialsProvider)}
*/
@Deprecated
public AWSDatabaseMigrationServiceAsyncClient(AWSCredentials awsCredentials) {
this(awsCredentials, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE));
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Database Migration Service using the
* specified AWS account credentials and executor service. Default client settings will be used.
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AWSDatabaseMigrationServiceAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSDatabaseMigrationServiceAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AWSDatabaseMigrationServiceAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService) {
this(awsCredentials, configFactory.getConfig(), executorService);
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Database Migration Service using the
* specified AWS account credentials, executor service, and client configuration options.
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @param clientConfiguration
* Client configuration options (ex: max retry limit, proxy settings, etc).
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AWSDatabaseMigrationServiceAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSDatabaseMigrationServiceAsyncClientBuilder#withClientConfiguration(ClientConfiguration)}
* and
* {@link AWSDatabaseMigrationServiceAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AWSDatabaseMigrationServiceAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) {
super(awsCredentials, clientConfiguration);
this.executorService = executorService;
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Database Migration Service using the
* specified AWS account credentials provider. Default client settings will be used.
*
* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default
* maximum number of concurrent connections to the service).
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AWSDatabaseMigrationServiceAsyncClientBuilder#withCredentials(AWSCredentialsProvider)}
*/
@Deprecated
public AWSDatabaseMigrationServiceAsyncClient(AWSCredentialsProvider awsCredentialsProvider) {
this(awsCredentialsProvider, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE));
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Database Migration Service using the
* provided AWS account credentials provider and client configuration options.
*
* Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
* maximum number of concurrent connections configured via {@code ClientConfiguration.getMaxConnections()}.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param clientConfiguration
* Client configuration options (ex: max retry limit, proxy settings, etc).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AWSDatabaseMigrationServiceAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSDatabaseMigrationServiceAsyncClientBuilder#withClientConfiguration(ClientConfiguration)}
*/
@Deprecated
public AWSDatabaseMigrationServiceAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) {
this(awsCredentialsProvider, clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections()));
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Database Migration Service using the
* specified AWS account credentials provider and executor service. Default client settings will be used.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AWSDatabaseMigrationServiceAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSDatabaseMigrationServiceAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AWSDatabaseMigrationServiceAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) {
this(awsCredentialsProvider, configFactory.getConfig(), executorService);
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Database Migration Service using the
* specified AWS account credentials provider, executor service, and client configuration options.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param clientConfiguration
* Client configuration options (ex: max retry limit, proxy settings, etc).
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AWSDatabaseMigrationServiceAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSDatabaseMigrationServiceAsyncClientBuilder#withClientConfiguration(ClientConfiguration)}
* and
* {@link AWSDatabaseMigrationServiceAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AWSDatabaseMigrationServiceAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration,
ExecutorService executorService) {
super(awsCredentialsProvider, clientConfiguration);
this.executorService = executorService;
}
public static AWSDatabaseMigrationServiceAsyncClientBuilder asyncBuilder() {
return AWSDatabaseMigrationServiceAsyncClientBuilder.standard();
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Database Migration Service using the
* specified parameters.
*
* @param asyncClientParams
* Object providing client parameters.
*/
AWSDatabaseMigrationServiceAsyncClient(AwsAsyncClientParams asyncClientParams) {
this(asyncClientParams, false);
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Database Migration Service using the
* specified parameters.
*
* @param asyncClientParams
* Object providing client parameters.
* @param endpointDiscoveryEnabled
* true will enable endpoint discovery if the service supports it.
*/
AWSDatabaseMigrationServiceAsyncClient(AwsAsyncClientParams asyncClientParams, boolean endpointDiscoveryEnabled) {
super(asyncClientParams, endpointDiscoveryEnabled);
this.executorService = asyncClientParams.getExecutor();
}
/**
* Returns the executor service used by this client to execute async requests.
*
* @return The executor service used by this client to execute async requests.
*/
public ExecutorService getExecutorService() {
return executorService;
}
@Override
public java.util.concurrent.Future addTagsToResourceAsync(AddTagsToResourceRequest request) {
return addTagsToResourceAsync(request, null);
}
@Override
public java.util.concurrent.Future addTagsToResourceAsync(final AddTagsToResourceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AddTagsToResourceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AddTagsToResourceResult call() throws Exception {
AddTagsToResourceResult result = null;
try {
result = executeAddTagsToResource(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future applyPendingMaintenanceActionAsync(ApplyPendingMaintenanceActionRequest request) {
return applyPendingMaintenanceActionAsync(request, null);
}
@Override
public java.util.concurrent.Future applyPendingMaintenanceActionAsync(
final ApplyPendingMaintenanceActionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ApplyPendingMaintenanceActionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ApplyPendingMaintenanceActionResult call() throws Exception {
ApplyPendingMaintenanceActionResult result = null;
try {
result = executeApplyPendingMaintenanceAction(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future batchStartRecommendationsAsync(BatchStartRecommendationsRequest request) {
return batchStartRecommendationsAsync(request, null);
}
@Override
public java.util.concurrent.Future batchStartRecommendationsAsync(final BatchStartRecommendationsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final BatchStartRecommendationsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public BatchStartRecommendationsResult call() throws Exception {
BatchStartRecommendationsResult result = null;
try {
result = executeBatchStartRecommendations(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future cancelReplicationTaskAssessmentRunAsync(
CancelReplicationTaskAssessmentRunRequest request) {
return cancelReplicationTaskAssessmentRunAsync(request, null);
}
@Override
public java.util.concurrent.Future cancelReplicationTaskAssessmentRunAsync(
final CancelReplicationTaskAssessmentRunRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CancelReplicationTaskAssessmentRunRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CancelReplicationTaskAssessmentRunResult call() throws Exception {
CancelReplicationTaskAssessmentRunResult result = null;
try {
result = executeCancelReplicationTaskAssessmentRun(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createDataProviderAsync(CreateDataProviderRequest request) {
return createDataProviderAsync(request, null);
}
@Override
public java.util.concurrent.Future createDataProviderAsync(final CreateDataProviderRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateDataProviderRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateDataProviderResult call() throws Exception {
CreateDataProviderResult result = null;
try {
result = executeCreateDataProvider(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createEndpointAsync(CreateEndpointRequest request) {
return createEndpointAsync(request, null);
}
@Override
public java.util.concurrent.Future createEndpointAsync(final CreateEndpointRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateEndpointRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateEndpointResult call() throws Exception {
CreateEndpointResult result = null;
try {
result = executeCreateEndpoint(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createEventSubscriptionAsync(CreateEventSubscriptionRequest request) {
return createEventSubscriptionAsync(request, null);
}
@Override
public java.util.concurrent.Future createEventSubscriptionAsync(final CreateEventSubscriptionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateEventSubscriptionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateEventSubscriptionResult call() throws Exception {
CreateEventSubscriptionResult result = null;
try {
result = executeCreateEventSubscription(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createFleetAdvisorCollectorAsync(CreateFleetAdvisorCollectorRequest request) {
return createFleetAdvisorCollectorAsync(request, null);
}
@Override
public java.util.concurrent.Future createFleetAdvisorCollectorAsync(final CreateFleetAdvisorCollectorRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateFleetAdvisorCollectorRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateFleetAdvisorCollectorResult call() throws Exception {
CreateFleetAdvisorCollectorResult result = null;
try {
result = executeCreateFleetAdvisorCollector(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createInstanceProfileAsync(CreateInstanceProfileRequest request) {
return createInstanceProfileAsync(request, null);
}
@Override
public java.util.concurrent.Future createInstanceProfileAsync(final CreateInstanceProfileRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateInstanceProfileRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateInstanceProfileResult call() throws Exception {
CreateInstanceProfileResult result = null;
try {
result = executeCreateInstanceProfile(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createMigrationProjectAsync(CreateMigrationProjectRequest request) {
return createMigrationProjectAsync(request, null);
}
@Override
public java.util.concurrent.Future createMigrationProjectAsync(final CreateMigrationProjectRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateMigrationProjectRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateMigrationProjectResult call() throws Exception {
CreateMigrationProjectResult result = null;
try {
result = executeCreateMigrationProject(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createReplicationConfigAsync(CreateReplicationConfigRequest request) {
return createReplicationConfigAsync(request, null);
}
@Override
public java.util.concurrent.Future createReplicationConfigAsync(final CreateReplicationConfigRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateReplicationConfigRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateReplicationConfigResult call() throws Exception {
CreateReplicationConfigResult result = null;
try {
result = executeCreateReplicationConfig(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createReplicationInstanceAsync(CreateReplicationInstanceRequest request) {
return createReplicationInstanceAsync(request, null);
}
@Override
public java.util.concurrent.Future createReplicationInstanceAsync(final CreateReplicationInstanceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateReplicationInstanceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateReplicationInstanceResult call() throws Exception {
CreateReplicationInstanceResult result = null;
try {
result = executeCreateReplicationInstance(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createReplicationSubnetGroupAsync(CreateReplicationSubnetGroupRequest request) {
return createReplicationSubnetGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future createReplicationSubnetGroupAsync(final CreateReplicationSubnetGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateReplicationSubnetGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateReplicationSubnetGroupResult call() throws Exception {
CreateReplicationSubnetGroupResult result = null;
try {
result = executeCreateReplicationSubnetGroup(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createReplicationTaskAsync(CreateReplicationTaskRequest request) {
return createReplicationTaskAsync(request, null);
}
@Override
public java.util.concurrent.Future createReplicationTaskAsync(final CreateReplicationTaskRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateReplicationTaskRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateReplicationTaskResult call() throws Exception {
CreateReplicationTaskResult result = null;
try {
result = executeCreateReplicationTask(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteCertificateAsync(DeleteCertificateRequest request) {
return deleteCertificateAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteCertificateAsync(final DeleteCertificateRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteCertificateRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteCertificateResult call() throws Exception {
DeleteCertificateResult result = null;
try {
result = executeDeleteCertificate(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteConnectionAsync(DeleteConnectionRequest request) {
return deleteConnectionAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteConnectionAsync(final DeleteConnectionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteConnectionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteConnectionResult call() throws Exception {
DeleteConnectionResult result = null;
try {
result = executeDeleteConnection(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteDataProviderAsync(DeleteDataProviderRequest request) {
return deleteDataProviderAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteDataProviderAsync(final DeleteDataProviderRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteDataProviderRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteDataProviderResult call() throws Exception {
DeleteDataProviderResult result = null;
try {
result = executeDeleteDataProvider(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteEndpointAsync(DeleteEndpointRequest request) {
return deleteEndpointAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteEndpointAsync(final DeleteEndpointRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteEndpointRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteEndpointResult call() throws Exception {
DeleteEndpointResult result = null;
try {
result = executeDeleteEndpoint(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteEventSubscriptionAsync(DeleteEventSubscriptionRequest request) {
return deleteEventSubscriptionAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteEventSubscriptionAsync(final DeleteEventSubscriptionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteEventSubscriptionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteEventSubscriptionResult call() throws Exception {
DeleteEventSubscriptionResult result = null;
try {
result = executeDeleteEventSubscription(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteFleetAdvisorCollectorAsync(DeleteFleetAdvisorCollectorRequest request) {
return deleteFleetAdvisorCollectorAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteFleetAdvisorCollectorAsync(final DeleteFleetAdvisorCollectorRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteFleetAdvisorCollectorRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteFleetAdvisorCollectorResult call() throws Exception {
DeleteFleetAdvisorCollectorResult result = null;
try {
result = executeDeleteFleetAdvisorCollector(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteFleetAdvisorDatabasesAsync(DeleteFleetAdvisorDatabasesRequest request) {
return deleteFleetAdvisorDatabasesAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteFleetAdvisorDatabasesAsync(final DeleteFleetAdvisorDatabasesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteFleetAdvisorDatabasesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteFleetAdvisorDatabasesResult call() throws Exception {
DeleteFleetAdvisorDatabasesResult result = null;
try {
result = executeDeleteFleetAdvisorDatabases(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteInstanceProfileAsync(DeleteInstanceProfileRequest request) {
return deleteInstanceProfileAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteInstanceProfileAsync(final DeleteInstanceProfileRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteInstanceProfileRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteInstanceProfileResult call() throws Exception {
DeleteInstanceProfileResult result = null;
try {
result = executeDeleteInstanceProfile(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteMigrationProjectAsync(DeleteMigrationProjectRequest request) {
return deleteMigrationProjectAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteMigrationProjectAsync(final DeleteMigrationProjectRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteMigrationProjectRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteMigrationProjectResult call() throws Exception {
DeleteMigrationProjectResult result = null;
try {
result = executeDeleteMigrationProject(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteReplicationConfigAsync(DeleteReplicationConfigRequest request) {
return deleteReplicationConfigAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteReplicationConfigAsync(final DeleteReplicationConfigRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteReplicationConfigRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteReplicationConfigResult call() throws Exception {
DeleteReplicationConfigResult result = null;
try {
result = executeDeleteReplicationConfig(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteReplicationInstanceAsync(DeleteReplicationInstanceRequest request) {
return deleteReplicationInstanceAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteReplicationInstanceAsync(final DeleteReplicationInstanceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteReplicationInstanceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteReplicationInstanceResult call() throws Exception {
DeleteReplicationInstanceResult result = null;
try {
result = executeDeleteReplicationInstance(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteReplicationSubnetGroupAsync(DeleteReplicationSubnetGroupRequest request) {
return deleteReplicationSubnetGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteReplicationSubnetGroupAsync(final DeleteReplicationSubnetGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteReplicationSubnetGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteReplicationSubnetGroupResult call() throws Exception {
DeleteReplicationSubnetGroupResult result = null;
try {
result = executeDeleteReplicationSubnetGroup(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteReplicationTaskAsync(DeleteReplicationTaskRequest request) {
return deleteReplicationTaskAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteReplicationTaskAsync(final DeleteReplicationTaskRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteReplicationTaskRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteReplicationTaskResult call() throws Exception {
DeleteReplicationTaskResult result = null;
try {
result = executeDeleteReplicationTask(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteReplicationTaskAssessmentRunAsync(
DeleteReplicationTaskAssessmentRunRequest request) {
return deleteReplicationTaskAssessmentRunAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteReplicationTaskAssessmentRunAsync(
final DeleteReplicationTaskAssessmentRunRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteReplicationTaskAssessmentRunRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteReplicationTaskAssessmentRunResult call() throws Exception {
DeleteReplicationTaskAssessmentRunResult result = null;
try {
result = executeDeleteReplicationTaskAssessmentRun(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeAccountAttributesAsync(DescribeAccountAttributesRequest request) {
return describeAccountAttributesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeAccountAttributesAsync(final DescribeAccountAttributesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeAccountAttributesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeAccountAttributesResult call() throws Exception {
DescribeAccountAttributesResult result = null;
try {
result = executeDescribeAccountAttributes(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeApplicableIndividualAssessmentsAsync(
DescribeApplicableIndividualAssessmentsRequest request) {
return describeApplicableIndividualAssessmentsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeApplicableIndividualAssessmentsAsync(
final DescribeApplicableIndividualAssessmentsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeApplicableIndividualAssessmentsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeApplicableIndividualAssessmentsResult call() throws Exception {
DescribeApplicableIndividualAssessmentsResult result = null;
try {
result = executeDescribeApplicableIndividualAssessments(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeCertificatesAsync(DescribeCertificatesRequest request) {
return describeCertificatesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeCertificatesAsync(final DescribeCertificatesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeCertificatesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeCertificatesResult call() throws Exception {
DescribeCertificatesResult result = null;
try {
result = executeDescribeCertificates(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeConnectionsAsync(DescribeConnectionsRequest request) {
return describeConnectionsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeConnectionsAsync(final DescribeConnectionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeConnectionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeConnectionsResult call() throws Exception {
DescribeConnectionsResult result = null;
try {
result = executeDescribeConnections(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeConversionConfigurationAsync(
DescribeConversionConfigurationRequest request) {
return describeConversionConfigurationAsync(request, null);
}
@Override
public java.util.concurrent.Future describeConversionConfigurationAsync(
final DescribeConversionConfigurationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeConversionConfigurationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeConversionConfigurationResult call() throws Exception {
DescribeConversionConfigurationResult result = null;
try {
result = executeDescribeConversionConfiguration(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeDataProvidersAsync(DescribeDataProvidersRequest request) {
return describeDataProvidersAsync(request, null);
}
@Override
public java.util.concurrent.Future describeDataProvidersAsync(final DescribeDataProvidersRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeDataProvidersRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeDataProvidersResult call() throws Exception {
DescribeDataProvidersResult result = null;
try {
result = executeDescribeDataProviders(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeEndpointSettingsAsync(DescribeEndpointSettingsRequest request) {
return describeEndpointSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeEndpointSettingsAsync(final DescribeEndpointSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeEndpointSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeEndpointSettingsResult call() throws Exception {
DescribeEndpointSettingsResult result = null;
try {
result = executeDescribeEndpointSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeEndpointTypesAsync(DescribeEndpointTypesRequest request) {
return describeEndpointTypesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeEndpointTypesAsync(final DescribeEndpointTypesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeEndpointTypesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeEndpointTypesResult call() throws Exception {
DescribeEndpointTypesResult result = null;
try {
result = executeDescribeEndpointTypes(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeEndpointsAsync(DescribeEndpointsRequest request) {
return describeEndpointsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeEndpointsAsync(final DescribeEndpointsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeEndpointsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeEndpointsResult call() throws Exception {
DescribeEndpointsResult result = null;
try {
result = executeDescribeEndpoints(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeEngineVersionsAsync(DescribeEngineVersionsRequest request) {
return describeEngineVersionsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeEngineVersionsAsync(final DescribeEngineVersionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeEngineVersionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeEngineVersionsResult call() throws Exception {
DescribeEngineVersionsResult result = null;
try {
result = executeDescribeEngineVersions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeEventCategoriesAsync(DescribeEventCategoriesRequest request) {
return describeEventCategoriesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeEventCategoriesAsync(final DescribeEventCategoriesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeEventCategoriesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeEventCategoriesResult call() throws Exception {
DescribeEventCategoriesResult result = null;
try {
result = executeDescribeEventCategories(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeEventSubscriptionsAsync(DescribeEventSubscriptionsRequest request) {
return describeEventSubscriptionsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeEventSubscriptionsAsync(final DescribeEventSubscriptionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeEventSubscriptionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeEventSubscriptionsResult call() throws Exception {
DescribeEventSubscriptionsResult result = null;
try {
result = executeDescribeEventSubscriptions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeEventsAsync(DescribeEventsRequest request) {
return describeEventsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeEventsAsync(final DescribeEventsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeEventsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeEventsResult call() throws Exception {
DescribeEventsResult result = null;
try {
result = executeDescribeEvents(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeExtensionPackAssociationsAsync(
DescribeExtensionPackAssociationsRequest request) {
return describeExtensionPackAssociationsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeExtensionPackAssociationsAsync(
final DescribeExtensionPackAssociationsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeExtensionPackAssociationsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeExtensionPackAssociationsResult call() throws Exception {
DescribeExtensionPackAssociationsResult result = null;
try {
result = executeDescribeExtensionPackAssociations(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeFleetAdvisorCollectorsAsync(DescribeFleetAdvisorCollectorsRequest request) {
return describeFleetAdvisorCollectorsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeFleetAdvisorCollectorsAsync(
final DescribeFleetAdvisorCollectorsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeFleetAdvisorCollectorsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeFleetAdvisorCollectorsResult call() throws Exception {
DescribeFleetAdvisorCollectorsResult result = null;
try {
result = executeDescribeFleetAdvisorCollectors(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeFleetAdvisorDatabasesAsync(DescribeFleetAdvisorDatabasesRequest request) {
return describeFleetAdvisorDatabasesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeFleetAdvisorDatabasesAsync(
final DescribeFleetAdvisorDatabasesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeFleetAdvisorDatabasesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeFleetAdvisorDatabasesResult call() throws Exception {
DescribeFleetAdvisorDatabasesResult result = null;
try {
result = executeDescribeFleetAdvisorDatabases(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeFleetAdvisorLsaAnalysisAsync(
DescribeFleetAdvisorLsaAnalysisRequest request) {
return describeFleetAdvisorLsaAnalysisAsync(request, null);
}
@Override
public java.util.concurrent.Future describeFleetAdvisorLsaAnalysisAsync(
final DescribeFleetAdvisorLsaAnalysisRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeFleetAdvisorLsaAnalysisRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeFleetAdvisorLsaAnalysisResult call() throws Exception {
DescribeFleetAdvisorLsaAnalysisResult result = null;
try {
result = executeDescribeFleetAdvisorLsaAnalysis(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeFleetAdvisorSchemaObjectSummaryAsync(
DescribeFleetAdvisorSchemaObjectSummaryRequest request) {
return describeFleetAdvisorSchemaObjectSummaryAsync(request, null);
}
@Override
public java.util.concurrent.Future describeFleetAdvisorSchemaObjectSummaryAsync(
final DescribeFleetAdvisorSchemaObjectSummaryRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeFleetAdvisorSchemaObjectSummaryRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeFleetAdvisorSchemaObjectSummaryResult call() throws Exception {
DescribeFleetAdvisorSchemaObjectSummaryResult result = null;
try {
result = executeDescribeFleetAdvisorSchemaObjectSummary(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeFleetAdvisorSchemasAsync(DescribeFleetAdvisorSchemasRequest request) {
return describeFleetAdvisorSchemasAsync(request, null);
}
@Override
public java.util.concurrent.Future describeFleetAdvisorSchemasAsync(final DescribeFleetAdvisorSchemasRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeFleetAdvisorSchemasRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeFleetAdvisorSchemasResult call() throws Exception {
DescribeFleetAdvisorSchemasResult result = null;
try {
result = executeDescribeFleetAdvisorSchemas(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeInstanceProfilesAsync(DescribeInstanceProfilesRequest request) {
return describeInstanceProfilesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeInstanceProfilesAsync(final DescribeInstanceProfilesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeInstanceProfilesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeInstanceProfilesResult call() throws Exception {
DescribeInstanceProfilesResult result = null;
try {
result = executeDescribeInstanceProfiles(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeMetadataModelAssessmentsAsync(
DescribeMetadataModelAssessmentsRequest request) {
return describeMetadataModelAssessmentsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeMetadataModelAssessmentsAsync(
final DescribeMetadataModelAssessmentsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeMetadataModelAssessmentsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeMetadataModelAssessmentsResult call() throws Exception {
DescribeMetadataModelAssessmentsResult result = null;
try {
result = executeDescribeMetadataModelAssessments(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeMetadataModelConversionsAsync(
DescribeMetadataModelConversionsRequest request) {
return describeMetadataModelConversionsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeMetadataModelConversionsAsync(
final DescribeMetadataModelConversionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeMetadataModelConversionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeMetadataModelConversionsResult call() throws Exception {
DescribeMetadataModelConversionsResult result = null;
try {
result = executeDescribeMetadataModelConversions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeMetadataModelExportsAsScriptAsync(
DescribeMetadataModelExportsAsScriptRequest request) {
return describeMetadataModelExportsAsScriptAsync(request, null);
}
@Override
public java.util.concurrent.Future describeMetadataModelExportsAsScriptAsync(
final DescribeMetadataModelExportsAsScriptRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeMetadataModelExportsAsScriptRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeMetadataModelExportsAsScriptResult call() throws Exception {
DescribeMetadataModelExportsAsScriptResult result = null;
try {
result = executeDescribeMetadataModelExportsAsScript(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeMetadataModelExportsToTargetAsync(
DescribeMetadataModelExportsToTargetRequest request) {
return describeMetadataModelExportsToTargetAsync(request, null);
}
@Override
public java.util.concurrent.Future describeMetadataModelExportsToTargetAsync(
final DescribeMetadataModelExportsToTargetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeMetadataModelExportsToTargetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeMetadataModelExportsToTargetResult call() throws Exception {
DescribeMetadataModelExportsToTargetResult result = null;
try {
result = executeDescribeMetadataModelExportsToTarget(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeMetadataModelImportsAsync(DescribeMetadataModelImportsRequest request) {
return describeMetadataModelImportsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeMetadataModelImportsAsync(final DescribeMetadataModelImportsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeMetadataModelImportsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeMetadataModelImportsResult call() throws Exception {
DescribeMetadataModelImportsResult result = null;
try {
result = executeDescribeMetadataModelImports(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeMigrationProjectsAsync(DescribeMigrationProjectsRequest request) {
return describeMigrationProjectsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeMigrationProjectsAsync(final DescribeMigrationProjectsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeMigrationProjectsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeMigrationProjectsResult call() throws Exception {
DescribeMigrationProjectsResult result = null;
try {
result = executeDescribeMigrationProjects(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeOrderableReplicationInstancesAsync(
DescribeOrderableReplicationInstancesRequest request) {
return describeOrderableReplicationInstancesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeOrderableReplicationInstancesAsync(
final DescribeOrderableReplicationInstancesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeOrderableReplicationInstancesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeOrderableReplicationInstancesResult call() throws Exception {
DescribeOrderableReplicationInstancesResult result = null;
try {
result = executeDescribeOrderableReplicationInstances(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describePendingMaintenanceActionsAsync(
DescribePendingMaintenanceActionsRequest request) {
return describePendingMaintenanceActionsAsync(request, null);
}
@Override
public java.util.concurrent.Future describePendingMaintenanceActionsAsync(
final DescribePendingMaintenanceActionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribePendingMaintenanceActionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribePendingMaintenanceActionsResult call() throws Exception {
DescribePendingMaintenanceActionsResult result = null;
try {
result = executeDescribePendingMaintenanceActions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeRecommendationLimitationsAsync(
DescribeRecommendationLimitationsRequest request) {
return describeRecommendationLimitationsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeRecommendationLimitationsAsync(
final DescribeRecommendationLimitationsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeRecommendationLimitationsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeRecommendationLimitationsResult call() throws Exception {
DescribeRecommendationLimitationsResult result = null;
try {
result = executeDescribeRecommendationLimitations(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeRecommendationsAsync(DescribeRecommendationsRequest request) {
return describeRecommendationsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeRecommendationsAsync(final DescribeRecommendationsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeRecommendationsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeRecommendationsResult call() throws Exception {
DescribeRecommendationsResult result = null;
try {
result = executeDescribeRecommendations(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeRefreshSchemasStatusAsync(DescribeRefreshSchemasStatusRequest request) {
return describeRefreshSchemasStatusAsync(request, null);
}
@Override
public java.util.concurrent.Future describeRefreshSchemasStatusAsync(final DescribeRefreshSchemasStatusRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeRefreshSchemasStatusRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeRefreshSchemasStatusResult call() throws Exception {
DescribeRefreshSchemasStatusResult result = null;
try {
result = executeDescribeRefreshSchemasStatus(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeReplicationConfigsAsync(DescribeReplicationConfigsRequest request) {
return describeReplicationConfigsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeReplicationConfigsAsync(final DescribeReplicationConfigsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeReplicationConfigsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeReplicationConfigsResult call() throws Exception {
DescribeReplicationConfigsResult result = null;
try {
result = executeDescribeReplicationConfigs(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeReplicationInstanceTaskLogsAsync(
DescribeReplicationInstanceTaskLogsRequest request) {
return describeReplicationInstanceTaskLogsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeReplicationInstanceTaskLogsAsync(
final DescribeReplicationInstanceTaskLogsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeReplicationInstanceTaskLogsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeReplicationInstanceTaskLogsResult call() throws Exception {
DescribeReplicationInstanceTaskLogsResult result = null;
try {
result = executeDescribeReplicationInstanceTaskLogs(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeReplicationInstancesAsync(DescribeReplicationInstancesRequest request) {
return describeReplicationInstancesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeReplicationInstancesAsync(final DescribeReplicationInstancesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeReplicationInstancesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeReplicationInstancesResult call() throws Exception {
DescribeReplicationInstancesResult result = null;
try {
result = executeDescribeReplicationInstances(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeReplicationSubnetGroupsAsync(
DescribeReplicationSubnetGroupsRequest request) {
return describeReplicationSubnetGroupsAsync(request, null);
}
@Override
public java.util.concurrent.Future