com.amazonaws.services.backup.AWSBackupAsyncClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-backup Show documentation
Show all versions of aws-java-sdk-backup Show documentation
The AWS Java SDK for AWS Backup module holds the client classes that are used for communicating with AWS Backup Service
/*
* 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.backup;
import javax.annotation.Generated;
import com.amazonaws.services.backup.model.*;
import com.amazonaws.client.AwsAsyncClientParams;
import com.amazonaws.annotation.ThreadSafe;
import java.util.concurrent.ExecutorService;
/**
* Client for accessing AWS Backup 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.
*
* Backup
*
* Backup is a unified backup service designed to protect Amazon Web Services services and their associated data. Backup
* simplifies the creation, migration, restoration, and deletion of backups, while also providing reporting and
* auditing.
*
*/
@ThreadSafe
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AWSBackupAsyncClient extends AWSBackupClient implements AWSBackupAsync {
private static final int DEFAULT_THREAD_POOL_SIZE = 50;
private final java.util.concurrent.ExecutorService executorService;
public static AWSBackupAsyncClientBuilder asyncBuilder() {
return AWSBackupAsyncClientBuilder.standard();
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Backup using the specified parameters.
*
* @param asyncClientParams
* Object providing client parameters.
*/
AWSBackupAsyncClient(AwsAsyncClientParams asyncClientParams) {
this(asyncClientParams, false);
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Backup using the specified parameters.
*
* @param asyncClientParams
* Object providing client parameters.
* @param endpointDiscoveryEnabled
* true will enable endpoint discovery if the service supports it.
*/
AWSBackupAsyncClient(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 cancelLegalHoldAsync(CancelLegalHoldRequest request) {
return cancelLegalHoldAsync(request, null);
}
@Override
public java.util.concurrent.Future cancelLegalHoldAsync(final CancelLegalHoldRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CancelLegalHoldRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CancelLegalHoldResult call() throws Exception {
CancelLegalHoldResult result = null;
try {
result = executeCancelLegalHold(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createBackupPlanAsync(CreateBackupPlanRequest request) {
return createBackupPlanAsync(request, null);
}
@Override
public java.util.concurrent.Future createBackupPlanAsync(final CreateBackupPlanRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateBackupPlanRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateBackupPlanResult call() throws Exception {
CreateBackupPlanResult result = null;
try {
result = executeCreateBackupPlan(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createBackupSelectionAsync(CreateBackupSelectionRequest request) {
return createBackupSelectionAsync(request, null);
}
@Override
public java.util.concurrent.Future createBackupSelectionAsync(final CreateBackupSelectionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateBackupSelectionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateBackupSelectionResult call() throws Exception {
CreateBackupSelectionResult result = null;
try {
result = executeCreateBackupSelection(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createBackupVaultAsync(CreateBackupVaultRequest request) {
return createBackupVaultAsync(request, null);
}
@Override
public java.util.concurrent.Future createBackupVaultAsync(final CreateBackupVaultRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateBackupVaultRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateBackupVaultResult call() throws Exception {
CreateBackupVaultResult result = null;
try {
result = executeCreateBackupVault(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createFrameworkAsync(CreateFrameworkRequest request) {
return createFrameworkAsync(request, null);
}
@Override
public java.util.concurrent.Future createFrameworkAsync(final CreateFrameworkRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateFrameworkRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateFrameworkResult call() throws Exception {
CreateFrameworkResult result = null;
try {
result = executeCreateFramework(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createLegalHoldAsync(CreateLegalHoldRequest request) {
return createLegalHoldAsync(request, null);
}
@Override
public java.util.concurrent.Future createLegalHoldAsync(final CreateLegalHoldRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateLegalHoldRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateLegalHoldResult call() throws Exception {
CreateLegalHoldResult result = null;
try {
result = executeCreateLegalHold(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createLogicallyAirGappedBackupVaultAsync(
CreateLogicallyAirGappedBackupVaultRequest request) {
return createLogicallyAirGappedBackupVaultAsync(request, null);
}
@Override
public java.util.concurrent.Future createLogicallyAirGappedBackupVaultAsync(
final CreateLogicallyAirGappedBackupVaultRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateLogicallyAirGappedBackupVaultRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateLogicallyAirGappedBackupVaultResult call() throws Exception {
CreateLogicallyAirGappedBackupVaultResult result = null;
try {
result = executeCreateLogicallyAirGappedBackupVault(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createReportPlanAsync(CreateReportPlanRequest request) {
return createReportPlanAsync(request, null);
}
@Override
public java.util.concurrent.Future createReportPlanAsync(final CreateReportPlanRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateReportPlanRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateReportPlanResult call() throws Exception {
CreateReportPlanResult result = null;
try {
result = executeCreateReportPlan(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createRestoreTestingPlanAsync(CreateRestoreTestingPlanRequest request) {
return createRestoreTestingPlanAsync(request, null);
}
@Override
public java.util.concurrent.Future createRestoreTestingPlanAsync(final CreateRestoreTestingPlanRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateRestoreTestingPlanRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateRestoreTestingPlanResult call() throws Exception {
CreateRestoreTestingPlanResult result = null;
try {
result = executeCreateRestoreTestingPlan(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createRestoreTestingSelectionAsync(CreateRestoreTestingSelectionRequest request) {
return createRestoreTestingSelectionAsync(request, null);
}
@Override
public java.util.concurrent.Future createRestoreTestingSelectionAsync(
final CreateRestoreTestingSelectionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateRestoreTestingSelectionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateRestoreTestingSelectionResult call() throws Exception {
CreateRestoreTestingSelectionResult result = null;
try {
result = executeCreateRestoreTestingSelection(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteBackupPlanAsync(DeleteBackupPlanRequest request) {
return deleteBackupPlanAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteBackupPlanAsync(final DeleteBackupPlanRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteBackupPlanRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteBackupPlanResult call() throws Exception {
DeleteBackupPlanResult result = null;
try {
result = executeDeleteBackupPlan(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteBackupSelectionAsync(DeleteBackupSelectionRequest request) {
return deleteBackupSelectionAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteBackupSelectionAsync(final DeleteBackupSelectionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteBackupSelectionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteBackupSelectionResult call() throws Exception {
DeleteBackupSelectionResult result = null;
try {
result = executeDeleteBackupSelection(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteBackupVaultAsync(DeleteBackupVaultRequest request) {
return deleteBackupVaultAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteBackupVaultAsync(final DeleteBackupVaultRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteBackupVaultRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteBackupVaultResult call() throws Exception {
DeleteBackupVaultResult result = null;
try {
result = executeDeleteBackupVault(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteBackupVaultAccessPolicyAsync(DeleteBackupVaultAccessPolicyRequest request) {
return deleteBackupVaultAccessPolicyAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteBackupVaultAccessPolicyAsync(
final DeleteBackupVaultAccessPolicyRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteBackupVaultAccessPolicyRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteBackupVaultAccessPolicyResult call() throws Exception {
DeleteBackupVaultAccessPolicyResult result = null;
try {
result = executeDeleteBackupVaultAccessPolicy(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteBackupVaultLockConfigurationAsync(
DeleteBackupVaultLockConfigurationRequest request) {
return deleteBackupVaultLockConfigurationAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteBackupVaultLockConfigurationAsync(
final DeleteBackupVaultLockConfigurationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteBackupVaultLockConfigurationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteBackupVaultLockConfigurationResult call() throws Exception {
DeleteBackupVaultLockConfigurationResult result = null;
try {
result = executeDeleteBackupVaultLockConfiguration(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteBackupVaultNotificationsAsync(DeleteBackupVaultNotificationsRequest request) {
return deleteBackupVaultNotificationsAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteBackupVaultNotificationsAsync(
final DeleteBackupVaultNotificationsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteBackupVaultNotificationsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteBackupVaultNotificationsResult call() throws Exception {
DeleteBackupVaultNotificationsResult result = null;
try {
result = executeDeleteBackupVaultNotifications(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteFrameworkAsync(DeleteFrameworkRequest request) {
return deleteFrameworkAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteFrameworkAsync(final DeleteFrameworkRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteFrameworkRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteFrameworkResult call() throws Exception {
DeleteFrameworkResult result = null;
try {
result = executeDeleteFramework(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteRecoveryPointAsync(DeleteRecoveryPointRequest request) {
return deleteRecoveryPointAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteRecoveryPointAsync(final DeleteRecoveryPointRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteRecoveryPointRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteRecoveryPointResult call() throws Exception {
DeleteRecoveryPointResult result = null;
try {
result = executeDeleteRecoveryPoint(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteReportPlanAsync(DeleteReportPlanRequest request) {
return deleteReportPlanAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteReportPlanAsync(final DeleteReportPlanRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteReportPlanRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteReportPlanResult call() throws Exception {
DeleteReportPlanResult result = null;
try {
result = executeDeleteReportPlan(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteRestoreTestingPlanAsync(DeleteRestoreTestingPlanRequest request) {
return deleteRestoreTestingPlanAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteRestoreTestingPlanAsync(final DeleteRestoreTestingPlanRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteRestoreTestingPlanRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteRestoreTestingPlanResult call() throws Exception {
DeleteRestoreTestingPlanResult result = null;
try {
result = executeDeleteRestoreTestingPlan(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteRestoreTestingSelectionAsync(DeleteRestoreTestingSelectionRequest request) {
return deleteRestoreTestingSelectionAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteRestoreTestingSelectionAsync(
final DeleteRestoreTestingSelectionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteRestoreTestingSelectionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteRestoreTestingSelectionResult call() throws Exception {
DeleteRestoreTestingSelectionResult result = null;
try {
result = executeDeleteRestoreTestingSelection(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeBackupJobAsync(DescribeBackupJobRequest request) {
return describeBackupJobAsync(request, null);
}
@Override
public java.util.concurrent.Future describeBackupJobAsync(final DescribeBackupJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeBackupJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeBackupJobResult call() throws Exception {
DescribeBackupJobResult result = null;
try {
result = executeDescribeBackupJob(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeBackupVaultAsync(DescribeBackupVaultRequest request) {
return describeBackupVaultAsync(request, null);
}
@Override
public java.util.concurrent.Future describeBackupVaultAsync(final DescribeBackupVaultRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeBackupVaultRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeBackupVaultResult call() throws Exception {
DescribeBackupVaultResult result = null;
try {
result = executeDescribeBackupVault(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeCopyJobAsync(DescribeCopyJobRequest request) {
return describeCopyJobAsync(request, null);
}
@Override
public java.util.concurrent.Future describeCopyJobAsync(final DescribeCopyJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeCopyJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeCopyJobResult call() throws Exception {
DescribeCopyJobResult result = null;
try {
result = executeDescribeCopyJob(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeFrameworkAsync(DescribeFrameworkRequest request) {
return describeFrameworkAsync(request, null);
}
@Override
public java.util.concurrent.Future describeFrameworkAsync(final DescribeFrameworkRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeFrameworkRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeFrameworkResult call() throws Exception {
DescribeFrameworkResult result = null;
try {
result = executeDescribeFramework(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeGlobalSettingsAsync(DescribeGlobalSettingsRequest request) {
return describeGlobalSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeGlobalSettingsAsync(final DescribeGlobalSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeGlobalSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeGlobalSettingsResult call() throws Exception {
DescribeGlobalSettingsResult result = null;
try {
result = executeDescribeGlobalSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeProtectedResourceAsync(DescribeProtectedResourceRequest request) {
return describeProtectedResourceAsync(request, null);
}
@Override
public java.util.concurrent.Future describeProtectedResourceAsync(final DescribeProtectedResourceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeProtectedResourceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeProtectedResourceResult call() throws Exception {
DescribeProtectedResourceResult result = null;
try {
result = executeDescribeProtectedResource(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeRecoveryPointAsync(DescribeRecoveryPointRequest request) {
return describeRecoveryPointAsync(request, null);
}
@Override
public java.util.concurrent.Future describeRecoveryPointAsync(final DescribeRecoveryPointRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeRecoveryPointRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeRecoveryPointResult call() throws Exception {
DescribeRecoveryPointResult result = null;
try {
result = executeDescribeRecoveryPoint(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeRegionSettingsAsync(DescribeRegionSettingsRequest request) {
return describeRegionSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeRegionSettingsAsync(final DescribeRegionSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeRegionSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeRegionSettingsResult call() throws Exception {
DescribeRegionSettingsResult result = null;
try {
result = executeDescribeRegionSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeReportJobAsync(DescribeReportJobRequest request) {
return describeReportJobAsync(request, null);
}
@Override
public java.util.concurrent.Future describeReportJobAsync(final DescribeReportJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeReportJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeReportJobResult call() throws Exception {
DescribeReportJobResult result = null;
try {
result = executeDescribeReportJob(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeReportPlanAsync(DescribeReportPlanRequest request) {
return describeReportPlanAsync(request, null);
}
@Override
public java.util.concurrent.Future describeReportPlanAsync(final DescribeReportPlanRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeReportPlanRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeReportPlanResult call() throws Exception {
DescribeReportPlanResult result = null;
try {
result = executeDescribeReportPlan(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeRestoreJobAsync(DescribeRestoreJobRequest request) {
return describeRestoreJobAsync(request, null);
}
@Override
public java.util.concurrent.Future describeRestoreJobAsync(final DescribeRestoreJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeRestoreJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeRestoreJobResult call() throws Exception {
DescribeRestoreJobResult result = null;
try {
result = executeDescribeRestoreJob(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future disassociateRecoveryPointAsync(DisassociateRecoveryPointRequest request) {
return disassociateRecoveryPointAsync(request, null);
}
@Override
public java.util.concurrent.Future disassociateRecoveryPointAsync(final DisassociateRecoveryPointRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DisassociateRecoveryPointRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DisassociateRecoveryPointResult call() throws Exception {
DisassociateRecoveryPointResult result = null;
try {
result = executeDisassociateRecoveryPoint(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future disassociateRecoveryPointFromParentAsync(
DisassociateRecoveryPointFromParentRequest request) {
return disassociateRecoveryPointFromParentAsync(request, null);
}
@Override
public java.util.concurrent.Future disassociateRecoveryPointFromParentAsync(
final DisassociateRecoveryPointFromParentRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DisassociateRecoveryPointFromParentRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DisassociateRecoveryPointFromParentResult call() throws Exception {
DisassociateRecoveryPointFromParentResult result = null;
try {
result = executeDisassociateRecoveryPointFromParent(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future exportBackupPlanTemplateAsync(ExportBackupPlanTemplateRequest request) {
return exportBackupPlanTemplateAsync(request, null);
}
@Override
public java.util.concurrent.Future exportBackupPlanTemplateAsync(final ExportBackupPlanTemplateRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ExportBackupPlanTemplateRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ExportBackupPlanTemplateResult call() throws Exception {
ExportBackupPlanTemplateResult result = null;
try {
result = executeExportBackupPlanTemplate(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getBackupPlanAsync(GetBackupPlanRequest request) {
return getBackupPlanAsync(request, null);
}
@Override
public java.util.concurrent.Future getBackupPlanAsync(final GetBackupPlanRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetBackupPlanRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetBackupPlanResult call() throws Exception {
GetBackupPlanResult result = null;
try {
result = executeGetBackupPlan(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getBackupPlanFromJSONAsync(GetBackupPlanFromJSONRequest request) {
return getBackupPlanFromJSONAsync(request, null);
}
@Override
public java.util.concurrent.Future getBackupPlanFromJSONAsync(final GetBackupPlanFromJSONRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetBackupPlanFromJSONRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetBackupPlanFromJSONResult call() throws Exception {
GetBackupPlanFromJSONResult result = null;
try {
result = executeGetBackupPlanFromJSON(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getBackupPlanFromTemplateAsync(GetBackupPlanFromTemplateRequest request) {
return getBackupPlanFromTemplateAsync(request, null);
}
@Override
public java.util.concurrent.Future getBackupPlanFromTemplateAsync(final GetBackupPlanFromTemplateRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetBackupPlanFromTemplateRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetBackupPlanFromTemplateResult call() throws Exception {
GetBackupPlanFromTemplateResult result = null;
try {
result = executeGetBackupPlanFromTemplate(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getBackupSelectionAsync(GetBackupSelectionRequest request) {
return getBackupSelectionAsync(request, null);
}
@Override
public java.util.concurrent.Future getBackupSelectionAsync(final GetBackupSelectionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetBackupSelectionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetBackupSelectionResult call() throws Exception {
GetBackupSelectionResult result = null;
try {
result = executeGetBackupSelection(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getBackupVaultAccessPolicyAsync(GetBackupVaultAccessPolicyRequest request) {
return getBackupVaultAccessPolicyAsync(request, null);
}
@Override
public java.util.concurrent.Future getBackupVaultAccessPolicyAsync(final GetBackupVaultAccessPolicyRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetBackupVaultAccessPolicyRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetBackupVaultAccessPolicyResult call() throws Exception {
GetBackupVaultAccessPolicyResult result = null;
try {
result = executeGetBackupVaultAccessPolicy(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getBackupVaultNotificationsAsync(GetBackupVaultNotificationsRequest request) {
return getBackupVaultNotificationsAsync(request, null);
}
@Override
public java.util.concurrent.Future getBackupVaultNotificationsAsync(final GetBackupVaultNotificationsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetBackupVaultNotificationsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetBackupVaultNotificationsResult call() throws Exception {
GetBackupVaultNotificationsResult result = null;
try {
result = executeGetBackupVaultNotifications(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getLegalHoldAsync(GetLegalHoldRequest request) {
return getLegalHoldAsync(request, null);
}
@Override
public java.util.concurrent.Future getLegalHoldAsync(final GetLegalHoldRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetLegalHoldRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetLegalHoldResult call() throws Exception {
GetLegalHoldResult result = null;
try {
result = executeGetLegalHold(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getRecoveryPointRestoreMetadataAsync(
GetRecoveryPointRestoreMetadataRequest request) {
return getRecoveryPointRestoreMetadataAsync(request, null);
}
@Override
public java.util.concurrent.Future getRecoveryPointRestoreMetadataAsync(
final GetRecoveryPointRestoreMetadataRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetRecoveryPointRestoreMetadataRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetRecoveryPointRestoreMetadataResult call() throws Exception {
GetRecoveryPointRestoreMetadataResult result = null;
try {
result = executeGetRecoveryPointRestoreMetadata(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getRestoreJobMetadataAsync(GetRestoreJobMetadataRequest request) {
return getRestoreJobMetadataAsync(request, null);
}
@Override
public java.util.concurrent.Future getRestoreJobMetadataAsync(final GetRestoreJobMetadataRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetRestoreJobMetadataRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetRestoreJobMetadataResult call() throws Exception {
GetRestoreJobMetadataResult result = null;
try {
result = executeGetRestoreJobMetadata(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getRestoreTestingInferredMetadataAsync(
GetRestoreTestingInferredMetadataRequest request) {
return getRestoreTestingInferredMetadataAsync(request, null);
}
@Override
public java.util.concurrent.Future getRestoreTestingInferredMetadataAsync(
final GetRestoreTestingInferredMetadataRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetRestoreTestingInferredMetadataRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetRestoreTestingInferredMetadataResult call() throws Exception {
GetRestoreTestingInferredMetadataResult result = null;
try {
result = executeGetRestoreTestingInferredMetadata(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getRestoreTestingPlanAsync(GetRestoreTestingPlanRequest request) {
return getRestoreTestingPlanAsync(request, null);
}
@Override
public java.util.concurrent.Future getRestoreTestingPlanAsync(final GetRestoreTestingPlanRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetRestoreTestingPlanRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetRestoreTestingPlanResult call() throws Exception {
GetRestoreTestingPlanResult result = null;
try {
result = executeGetRestoreTestingPlan(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getRestoreTestingSelectionAsync(GetRestoreTestingSelectionRequest request) {
return getRestoreTestingSelectionAsync(request, null);
}
@Override
public java.util.concurrent.Future getRestoreTestingSelectionAsync(final GetRestoreTestingSelectionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetRestoreTestingSelectionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetRestoreTestingSelectionResult call() throws Exception {
GetRestoreTestingSelectionResult result = null;
try {
result = executeGetRestoreTestingSelection(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getSupportedResourceTypesAsync(GetSupportedResourceTypesRequest request) {
return getSupportedResourceTypesAsync(request, null);
}
@Override
public java.util.concurrent.Future getSupportedResourceTypesAsync(final GetSupportedResourceTypesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetSupportedResourceTypesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetSupportedResourceTypesResult call() throws Exception {
GetSupportedResourceTypesResult result = null;
try {
result = executeGetSupportedResourceTypes(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listBackupJobSummariesAsync(ListBackupJobSummariesRequest request) {
return listBackupJobSummariesAsync(request, null);
}
@Override
public java.util.concurrent.Future listBackupJobSummariesAsync(final ListBackupJobSummariesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListBackupJobSummariesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListBackupJobSummariesResult call() throws Exception {
ListBackupJobSummariesResult result = null;
try {
result = executeListBackupJobSummaries(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listBackupJobsAsync(ListBackupJobsRequest request) {
return listBackupJobsAsync(request, null);
}
@Override
public java.util.concurrent.Future listBackupJobsAsync(final ListBackupJobsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListBackupJobsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListBackupJobsResult call() throws Exception {
ListBackupJobsResult result = null;
try {
result = executeListBackupJobs(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listBackupPlanTemplatesAsync(ListBackupPlanTemplatesRequest request) {
return listBackupPlanTemplatesAsync(request, null);
}
@Override
public java.util.concurrent.Future listBackupPlanTemplatesAsync(final ListBackupPlanTemplatesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListBackupPlanTemplatesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListBackupPlanTemplatesResult call() throws Exception {
ListBackupPlanTemplatesResult result = null;
try {
result = executeListBackupPlanTemplates(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listBackupPlanVersionsAsync(ListBackupPlanVersionsRequest request) {
return listBackupPlanVersionsAsync(request, null);
}
@Override
public java.util.concurrent.Future listBackupPlanVersionsAsync(final ListBackupPlanVersionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListBackupPlanVersionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListBackupPlanVersionsResult call() throws Exception {
ListBackupPlanVersionsResult result = null;
try {
result = executeListBackupPlanVersions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listBackupPlansAsync(ListBackupPlansRequest request) {
return listBackupPlansAsync(request, null);
}
@Override
public java.util.concurrent.Future listBackupPlansAsync(final ListBackupPlansRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListBackupPlansRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListBackupPlansResult call() throws Exception {
ListBackupPlansResult result = null;
try {
result = executeListBackupPlans(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listBackupSelectionsAsync(ListBackupSelectionsRequest request) {
return listBackupSelectionsAsync(request, null);
}
@Override
public java.util.concurrent.Future listBackupSelectionsAsync(final ListBackupSelectionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListBackupSelectionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListBackupSelectionsResult call() throws Exception {
ListBackupSelectionsResult result = null;
try {
result = executeListBackupSelections(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listBackupVaultsAsync(ListBackupVaultsRequest request) {
return listBackupVaultsAsync(request, null);
}
@Override
public java.util.concurrent.Future listBackupVaultsAsync(final ListBackupVaultsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListBackupVaultsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListBackupVaultsResult call() throws Exception {
ListBackupVaultsResult result = null;
try {
result = executeListBackupVaults(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listCopyJobSummariesAsync(ListCopyJobSummariesRequest request) {
return listCopyJobSummariesAsync(request, null);
}
@Override
public java.util.concurrent.Future listCopyJobSummariesAsync(final ListCopyJobSummariesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListCopyJobSummariesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListCopyJobSummariesResult call() throws Exception {
ListCopyJobSummariesResult result = null;
try {
result = executeListCopyJobSummaries(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listCopyJobsAsync(ListCopyJobsRequest request) {
return listCopyJobsAsync(request, null);
}
@Override
public java.util.concurrent.Future listCopyJobsAsync(final ListCopyJobsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListCopyJobsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListCopyJobsResult call() throws Exception {
ListCopyJobsResult result = null;
try {
result = executeListCopyJobs(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listFrameworksAsync(ListFrameworksRequest request) {
return listFrameworksAsync(request, null);
}
@Override
public java.util.concurrent.Future listFrameworksAsync(final ListFrameworksRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListFrameworksRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListFrameworksResult call() throws Exception {
ListFrameworksResult result = null;
try {
result = executeListFrameworks(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listLegalHoldsAsync(ListLegalHoldsRequest request) {
return listLegalHoldsAsync(request, null);
}
@Override
public java.util.concurrent.Future listLegalHoldsAsync(final ListLegalHoldsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListLegalHoldsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListLegalHoldsResult call() throws Exception {
ListLegalHoldsResult result = null;
try {
result = executeListLegalHolds(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listProtectedResourcesAsync(ListProtectedResourcesRequest request) {
return listProtectedResourcesAsync(request, null);
}
@Override
public java.util.concurrent.Future listProtectedResourcesAsync(final ListProtectedResourcesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListProtectedResourcesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListProtectedResourcesResult call() throws Exception {
ListProtectedResourcesResult result = null;
try {
result = executeListProtectedResources(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listProtectedResourcesByBackupVaultAsync(
ListProtectedResourcesByBackupVaultRequest request) {
return listProtectedResourcesByBackupVaultAsync(request, null);
}
@Override
public java.util.concurrent.Future listProtectedResourcesByBackupVaultAsync(
final ListProtectedResourcesByBackupVaultRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListProtectedResourcesByBackupVaultRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListProtectedResourcesByBackupVaultResult call() throws Exception {
ListProtectedResourcesByBackupVaultResult result = null;
try {
result = executeListProtectedResourcesByBackupVault(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listRecoveryPointsByBackupVaultAsync(
ListRecoveryPointsByBackupVaultRequest request) {
return listRecoveryPointsByBackupVaultAsync(request, null);
}
@Override
public java.util.concurrent.Future listRecoveryPointsByBackupVaultAsync(
final ListRecoveryPointsByBackupVaultRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListRecoveryPointsByBackupVaultRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListRecoveryPointsByBackupVaultResult call() throws Exception {
ListRecoveryPointsByBackupVaultResult result = null;
try {
result = executeListRecoveryPointsByBackupVault(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listRecoveryPointsByLegalHoldAsync(ListRecoveryPointsByLegalHoldRequest request) {
return listRecoveryPointsByLegalHoldAsync(request, null);
}
@Override
public java.util.concurrent.Future listRecoveryPointsByLegalHoldAsync(
final ListRecoveryPointsByLegalHoldRequest request,
final com.amazonaws.handlers.AsyncHandler