com.amazonaws.services.s3control.AWSS3ControlAsyncClient 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.s3control;
import javax.annotation.Generated;
import com.amazonaws.services.s3control.model.*;
import com.amazonaws.client.AwsAsyncClientParams;
import com.amazonaws.annotation.ThreadSafe;
import java.util.concurrent.ExecutorService;
/**
* Client for accessing AWS S3 Control asynchronously. Each asynchronous method will return a Java Future object
* representing the asynchronous operation; overloads which accept an {@code AsyncHandler} can be used to receive
* notification when an asynchronous operation completes.
*
*
* Amazon Web Services S3 Control provides access to Amazon S3 control plane actions.
*
*/
@ThreadSafe
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AWSS3ControlAsyncClient extends AWSS3ControlClient implements AWSS3ControlAsync {
private static final int DEFAULT_THREAD_POOL_SIZE = 50;
private final java.util.concurrent.ExecutorService executorService;
public static AWSS3ControlAsyncClientBuilder asyncBuilder() {
return AWSS3ControlAsyncClientBuilder.standard();
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS S3 Control using the specified parameters.
*
* @param asyncClientParams
* Object providing client parameters.
*/
AWSS3ControlAsyncClient(AwsAsyncClientParams asyncClientParams) {
this(asyncClientParams, false);
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS S3 Control using the specified parameters.
*
* @param asyncClientParams
* Object providing client parameters.
* @param endpointDiscoveryEnabled
* true will enable endpoint discovery if the service supports it.
*/
AWSS3ControlAsyncClient(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 associateAccessGrantsIdentityCenterAsync(
AssociateAccessGrantsIdentityCenterRequest request) {
return associateAccessGrantsIdentityCenterAsync(request, null);
}
@Override
public java.util.concurrent.Future associateAccessGrantsIdentityCenterAsync(
final AssociateAccessGrantsIdentityCenterRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AssociateAccessGrantsIdentityCenterRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AssociateAccessGrantsIdentityCenterResult call() throws Exception {
AssociateAccessGrantsIdentityCenterResult result = null;
try {
result = executeAssociateAccessGrantsIdentityCenter(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createAccessGrantAsync(CreateAccessGrantRequest request) {
return createAccessGrantAsync(request, null);
}
@Override
public java.util.concurrent.Future createAccessGrantAsync(final CreateAccessGrantRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateAccessGrantRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateAccessGrantResult call() throws Exception {
CreateAccessGrantResult result = null;
try {
result = executeCreateAccessGrant(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createAccessGrantsInstanceAsync(CreateAccessGrantsInstanceRequest request) {
return createAccessGrantsInstanceAsync(request, null);
}
@Override
public java.util.concurrent.Future createAccessGrantsInstanceAsync(final CreateAccessGrantsInstanceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateAccessGrantsInstanceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateAccessGrantsInstanceResult call() throws Exception {
CreateAccessGrantsInstanceResult result = null;
try {
result = executeCreateAccessGrantsInstance(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createAccessGrantsLocationAsync(CreateAccessGrantsLocationRequest request) {
return createAccessGrantsLocationAsync(request, null);
}
@Override
public java.util.concurrent.Future createAccessGrantsLocationAsync(final CreateAccessGrantsLocationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateAccessGrantsLocationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateAccessGrantsLocationResult call() throws Exception {
CreateAccessGrantsLocationResult result = null;
try {
result = executeCreateAccessGrantsLocation(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createAccessPointAsync(CreateAccessPointRequest request) {
return createAccessPointAsync(request, null);
}
@Override
public java.util.concurrent.Future createAccessPointAsync(final CreateAccessPointRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateAccessPointRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateAccessPointResult call() throws Exception {
CreateAccessPointResult result = null;
try {
result = executeCreateAccessPoint(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createAccessPointForObjectLambdaAsync(
CreateAccessPointForObjectLambdaRequest request) {
return createAccessPointForObjectLambdaAsync(request, null);
}
@Override
public java.util.concurrent.Future createAccessPointForObjectLambdaAsync(
final CreateAccessPointForObjectLambdaRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateAccessPointForObjectLambdaRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateAccessPointForObjectLambdaResult call() throws Exception {
CreateAccessPointForObjectLambdaResult result = null;
try {
result = executeCreateAccessPointForObjectLambda(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createBucketAsync(CreateBucketRequest request) {
return createBucketAsync(request, null);
}
@Override
public java.util.concurrent.Future createBucketAsync(final CreateBucketRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateBucketRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateBucketResult call() throws Exception {
CreateBucketResult result = null;
try {
result = executeCreateBucket(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createJobAsync(CreateJobRequest request) {
return createJobAsync(request, null);
}
@Override
public java.util.concurrent.Future createJobAsync(final CreateJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateJobResult call() throws Exception {
CreateJobResult result = null;
try {
result = executeCreateJob(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createMultiRegionAccessPointAsync(CreateMultiRegionAccessPointRequest request) {
return createMultiRegionAccessPointAsync(request, null);
}
@Override
public java.util.concurrent.Future createMultiRegionAccessPointAsync(final CreateMultiRegionAccessPointRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateMultiRegionAccessPointRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateMultiRegionAccessPointResult call() throws Exception {
CreateMultiRegionAccessPointResult result = null;
try {
result = executeCreateMultiRegionAccessPoint(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createStorageLensGroupAsync(CreateStorageLensGroupRequest request) {
return createStorageLensGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future createStorageLensGroupAsync(final CreateStorageLensGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateStorageLensGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateStorageLensGroupResult call() throws Exception {
CreateStorageLensGroupResult result = null;
try {
result = executeCreateStorageLensGroup(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteAccessGrantAsync(DeleteAccessGrantRequest request) {
return deleteAccessGrantAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteAccessGrantAsync(final DeleteAccessGrantRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteAccessGrantRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteAccessGrantResult call() throws Exception {
DeleteAccessGrantResult result = null;
try {
result = executeDeleteAccessGrant(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteAccessGrantsInstanceAsync(DeleteAccessGrantsInstanceRequest request) {
return deleteAccessGrantsInstanceAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteAccessGrantsInstanceAsync(final DeleteAccessGrantsInstanceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteAccessGrantsInstanceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteAccessGrantsInstanceResult call() throws Exception {
DeleteAccessGrantsInstanceResult result = null;
try {
result = executeDeleteAccessGrantsInstance(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteAccessGrantsInstanceResourcePolicyAsync(
DeleteAccessGrantsInstanceResourcePolicyRequest request) {
return deleteAccessGrantsInstanceResourcePolicyAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteAccessGrantsInstanceResourcePolicyAsync(
final DeleteAccessGrantsInstanceResourcePolicyRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteAccessGrantsInstanceResourcePolicyRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteAccessGrantsInstanceResourcePolicyResult call() throws Exception {
DeleteAccessGrantsInstanceResourcePolicyResult result = null;
try {
result = executeDeleteAccessGrantsInstanceResourcePolicy(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteAccessGrantsLocationAsync(DeleteAccessGrantsLocationRequest request) {
return deleteAccessGrantsLocationAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteAccessGrantsLocationAsync(final DeleteAccessGrantsLocationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteAccessGrantsLocationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteAccessGrantsLocationResult call() throws Exception {
DeleteAccessGrantsLocationResult result = null;
try {
result = executeDeleteAccessGrantsLocation(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteAccessPointAsync(DeleteAccessPointRequest request) {
return deleteAccessPointAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteAccessPointAsync(final DeleteAccessPointRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteAccessPointRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteAccessPointResult call() throws Exception {
DeleteAccessPointResult result = null;
try {
result = executeDeleteAccessPoint(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteAccessPointForObjectLambdaAsync(
DeleteAccessPointForObjectLambdaRequest request) {
return deleteAccessPointForObjectLambdaAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteAccessPointForObjectLambdaAsync(
final DeleteAccessPointForObjectLambdaRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteAccessPointForObjectLambdaRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteAccessPointForObjectLambdaResult call() throws Exception {
DeleteAccessPointForObjectLambdaResult result = null;
try {
result = executeDeleteAccessPointForObjectLambda(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteAccessPointPolicyAsync(DeleteAccessPointPolicyRequest request) {
return deleteAccessPointPolicyAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteAccessPointPolicyAsync(final DeleteAccessPointPolicyRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteAccessPointPolicyRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteAccessPointPolicyResult call() throws Exception {
DeleteAccessPointPolicyResult result = null;
try {
result = executeDeleteAccessPointPolicy(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteAccessPointPolicyForObjectLambdaAsync(
DeleteAccessPointPolicyForObjectLambdaRequest request) {
return deleteAccessPointPolicyForObjectLambdaAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteAccessPointPolicyForObjectLambdaAsync(
final DeleteAccessPointPolicyForObjectLambdaRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteAccessPointPolicyForObjectLambdaRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteAccessPointPolicyForObjectLambdaResult call() throws Exception {
DeleteAccessPointPolicyForObjectLambdaResult result = null;
try {
result = executeDeleteAccessPointPolicyForObjectLambda(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteBucketAsync(DeleteBucketRequest request) {
return deleteBucketAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteBucketAsync(final DeleteBucketRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteBucketRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteBucketResult call() throws Exception {
DeleteBucketResult result = null;
try {
result = executeDeleteBucket(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteBucketLifecycleConfigurationAsync(
DeleteBucketLifecycleConfigurationRequest request) {
return deleteBucketLifecycleConfigurationAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteBucketLifecycleConfigurationAsync(
final DeleteBucketLifecycleConfigurationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteBucketLifecycleConfigurationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteBucketLifecycleConfigurationResult call() throws Exception {
DeleteBucketLifecycleConfigurationResult result = null;
try {
result = executeDeleteBucketLifecycleConfiguration(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteBucketPolicyAsync(DeleteBucketPolicyRequest request) {
return deleteBucketPolicyAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteBucketPolicyAsync(final DeleteBucketPolicyRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteBucketPolicyRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteBucketPolicyResult call() throws Exception {
DeleteBucketPolicyResult result = null;
try {
result = executeDeleteBucketPolicy(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteBucketReplicationAsync(DeleteBucketReplicationRequest request) {
return deleteBucketReplicationAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteBucketReplicationAsync(final DeleteBucketReplicationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteBucketReplicationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteBucketReplicationResult call() throws Exception {
DeleteBucketReplicationResult result = null;
try {
result = executeDeleteBucketReplication(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteBucketTaggingAsync(DeleteBucketTaggingRequest request) {
return deleteBucketTaggingAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteBucketTaggingAsync(final DeleteBucketTaggingRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteBucketTaggingRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteBucketTaggingResult call() throws Exception {
DeleteBucketTaggingResult result = null;
try {
result = executeDeleteBucketTagging(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteJobTaggingAsync(DeleteJobTaggingRequest request) {
return deleteJobTaggingAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteJobTaggingAsync(final DeleteJobTaggingRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteJobTaggingRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteJobTaggingResult call() throws Exception {
DeleteJobTaggingResult result = null;
try {
result = executeDeleteJobTagging(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteMultiRegionAccessPointAsync(DeleteMultiRegionAccessPointRequest request) {
return deleteMultiRegionAccessPointAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteMultiRegionAccessPointAsync(final DeleteMultiRegionAccessPointRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteMultiRegionAccessPointRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteMultiRegionAccessPointResult call() throws Exception {
DeleteMultiRegionAccessPointResult result = null;
try {
result = executeDeleteMultiRegionAccessPoint(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deletePublicAccessBlockAsync(DeletePublicAccessBlockRequest request) {
return deletePublicAccessBlockAsync(request, null);
}
@Override
public java.util.concurrent.Future deletePublicAccessBlockAsync(final DeletePublicAccessBlockRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeletePublicAccessBlockRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeletePublicAccessBlockResult call() throws Exception {
DeletePublicAccessBlockResult result = null;
try {
result = executeDeletePublicAccessBlock(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteStorageLensConfigurationAsync(DeleteStorageLensConfigurationRequest request) {
return deleteStorageLensConfigurationAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteStorageLensConfigurationAsync(
final DeleteStorageLensConfigurationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteStorageLensConfigurationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteStorageLensConfigurationResult call() throws Exception {
DeleteStorageLensConfigurationResult result = null;
try {
result = executeDeleteStorageLensConfiguration(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteStorageLensConfigurationTaggingAsync(
DeleteStorageLensConfigurationTaggingRequest request) {
return deleteStorageLensConfigurationTaggingAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteStorageLensConfigurationTaggingAsync(
final DeleteStorageLensConfigurationTaggingRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteStorageLensConfigurationTaggingRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteStorageLensConfigurationTaggingResult call() throws Exception {
DeleteStorageLensConfigurationTaggingResult result = null;
try {
result = executeDeleteStorageLensConfigurationTagging(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteStorageLensGroupAsync(DeleteStorageLensGroupRequest request) {
return deleteStorageLensGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteStorageLensGroupAsync(final DeleteStorageLensGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteStorageLensGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteStorageLensGroupResult call() throws Exception {
DeleteStorageLensGroupResult result = null;
try {
result = executeDeleteStorageLensGroup(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeJobAsync(DescribeJobRequest request) {
return describeJobAsync(request, null);
}
@Override
public java.util.concurrent.Future describeJobAsync(final DescribeJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeJobResult call() throws Exception {
DescribeJobResult result = null;
try {
result = executeDescribeJob(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeMultiRegionAccessPointOperationAsync(
DescribeMultiRegionAccessPointOperationRequest request) {
return describeMultiRegionAccessPointOperationAsync(request, null);
}
@Override
public java.util.concurrent.Future describeMultiRegionAccessPointOperationAsync(
final DescribeMultiRegionAccessPointOperationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeMultiRegionAccessPointOperationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeMultiRegionAccessPointOperationResult call() throws Exception {
DescribeMultiRegionAccessPointOperationResult result = null;
try {
result = executeDescribeMultiRegionAccessPointOperation(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future dissociateAccessGrantsIdentityCenterAsync(
DissociateAccessGrantsIdentityCenterRequest request) {
return dissociateAccessGrantsIdentityCenterAsync(request, null);
}
@Override
public java.util.concurrent.Future dissociateAccessGrantsIdentityCenterAsync(
final DissociateAccessGrantsIdentityCenterRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DissociateAccessGrantsIdentityCenterRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DissociateAccessGrantsIdentityCenterResult call() throws Exception {
DissociateAccessGrantsIdentityCenterResult result = null;
try {
result = executeDissociateAccessGrantsIdentityCenter(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getAccessGrantAsync(GetAccessGrantRequest request) {
return getAccessGrantAsync(request, null);
}
@Override
public java.util.concurrent.Future getAccessGrantAsync(final GetAccessGrantRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetAccessGrantRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetAccessGrantResult call() throws Exception {
GetAccessGrantResult result = null;
try {
result = executeGetAccessGrant(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getAccessGrantsInstanceAsync(GetAccessGrantsInstanceRequest request) {
return getAccessGrantsInstanceAsync(request, null);
}
@Override
public java.util.concurrent.Future getAccessGrantsInstanceAsync(final GetAccessGrantsInstanceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetAccessGrantsInstanceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetAccessGrantsInstanceResult call() throws Exception {
GetAccessGrantsInstanceResult result = null;
try {
result = executeGetAccessGrantsInstance(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getAccessGrantsInstanceForPrefixAsync(
GetAccessGrantsInstanceForPrefixRequest request) {
return getAccessGrantsInstanceForPrefixAsync(request, null);
}
@Override
public java.util.concurrent.Future getAccessGrantsInstanceForPrefixAsync(
final GetAccessGrantsInstanceForPrefixRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetAccessGrantsInstanceForPrefixRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetAccessGrantsInstanceForPrefixResult call() throws Exception {
GetAccessGrantsInstanceForPrefixResult result = null;
try {
result = executeGetAccessGrantsInstanceForPrefix(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getAccessGrantsInstanceResourcePolicyAsync(
GetAccessGrantsInstanceResourcePolicyRequest request) {
return getAccessGrantsInstanceResourcePolicyAsync(request, null);
}
@Override
public java.util.concurrent.Future getAccessGrantsInstanceResourcePolicyAsync(
final GetAccessGrantsInstanceResourcePolicyRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetAccessGrantsInstanceResourcePolicyRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetAccessGrantsInstanceResourcePolicyResult call() throws Exception {
GetAccessGrantsInstanceResourcePolicyResult result = null;
try {
result = executeGetAccessGrantsInstanceResourcePolicy(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getAccessGrantsLocationAsync(GetAccessGrantsLocationRequest request) {
return getAccessGrantsLocationAsync(request, null);
}
@Override
public java.util.concurrent.Future getAccessGrantsLocationAsync(final GetAccessGrantsLocationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetAccessGrantsLocationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetAccessGrantsLocationResult call() throws Exception {
GetAccessGrantsLocationResult result = null;
try {
result = executeGetAccessGrantsLocation(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getAccessPointAsync(GetAccessPointRequest request) {
return getAccessPointAsync(request, null);
}
@Override
public java.util.concurrent.Future getAccessPointAsync(final GetAccessPointRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetAccessPointRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetAccessPointResult call() throws Exception {
GetAccessPointResult result = null;
try {
result = executeGetAccessPoint(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getAccessPointConfigurationForObjectLambdaAsync(
GetAccessPointConfigurationForObjectLambdaRequest request) {
return getAccessPointConfigurationForObjectLambdaAsync(request, null);
}
@Override
public java.util.concurrent.Future getAccessPointConfigurationForObjectLambdaAsync(
final GetAccessPointConfigurationForObjectLambdaRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetAccessPointConfigurationForObjectLambdaRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetAccessPointConfigurationForObjectLambdaResult call() throws Exception {
GetAccessPointConfigurationForObjectLambdaResult result = null;
try {
result = executeGetAccessPointConfigurationForObjectLambda(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getAccessPointForObjectLambdaAsync(GetAccessPointForObjectLambdaRequest request) {
return getAccessPointForObjectLambdaAsync(request, null);
}
@Override
public java.util.concurrent.Future getAccessPointForObjectLambdaAsync(
final GetAccessPointForObjectLambdaRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetAccessPointForObjectLambdaRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetAccessPointForObjectLambdaResult call() throws Exception {
GetAccessPointForObjectLambdaResult result = null;
try {
result = executeGetAccessPointForObjectLambda(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getAccessPointPolicyAsync(GetAccessPointPolicyRequest request) {
return getAccessPointPolicyAsync(request, null);
}
@Override
public java.util.concurrent.Future getAccessPointPolicyAsync(final GetAccessPointPolicyRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetAccessPointPolicyRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetAccessPointPolicyResult call() throws Exception {
GetAccessPointPolicyResult result = null;
try {
result = executeGetAccessPointPolicy(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getAccessPointPolicyForObjectLambdaAsync(
GetAccessPointPolicyForObjectLambdaRequest request) {
return getAccessPointPolicyForObjectLambdaAsync(request, null);
}
@Override
public java.util.concurrent.Future getAccessPointPolicyForObjectLambdaAsync(
final GetAccessPointPolicyForObjectLambdaRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetAccessPointPolicyForObjectLambdaRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetAccessPointPolicyForObjectLambdaResult call() throws Exception {
GetAccessPointPolicyForObjectLambdaResult result = null;
try {
result = executeGetAccessPointPolicyForObjectLambda(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getAccessPointPolicyStatusAsync(GetAccessPointPolicyStatusRequest request) {
return getAccessPointPolicyStatusAsync(request, null);
}
@Override
public java.util.concurrent.Future getAccessPointPolicyStatusAsync(final GetAccessPointPolicyStatusRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetAccessPointPolicyStatusRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetAccessPointPolicyStatusResult call() throws Exception {
GetAccessPointPolicyStatusResult result = null;
try {
result = executeGetAccessPointPolicyStatus(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getAccessPointPolicyStatusForObjectLambdaAsync(
GetAccessPointPolicyStatusForObjectLambdaRequest request) {
return getAccessPointPolicyStatusForObjectLambdaAsync(request, null);
}
@Override
public java.util.concurrent.Future getAccessPointPolicyStatusForObjectLambdaAsync(
final GetAccessPointPolicyStatusForObjectLambdaRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetAccessPointPolicyStatusForObjectLambdaRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetAccessPointPolicyStatusForObjectLambdaResult call() throws Exception {
GetAccessPointPolicyStatusForObjectLambdaResult result = null;
try {
result = executeGetAccessPointPolicyStatusForObjectLambda(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getBucketAsync(GetBucketRequest request) {
return getBucketAsync(request, null);
}
@Override
public java.util.concurrent.Future getBucketAsync(final GetBucketRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetBucketRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetBucketResult call() throws Exception {
GetBucketResult result = null;
try {
result = executeGetBucket(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getBucketLifecycleConfigurationAsync(
GetBucketLifecycleConfigurationRequest request) {
return getBucketLifecycleConfigurationAsync(request, null);
}
@Override
public java.util.concurrent.Future getBucketLifecycleConfigurationAsync(
final GetBucketLifecycleConfigurationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetBucketLifecycleConfigurationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetBucketLifecycleConfigurationResult call() throws Exception {
GetBucketLifecycleConfigurationResult result = null;
try {
result = executeGetBucketLifecycleConfiguration(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getBucketPolicyAsync(GetBucketPolicyRequest request) {
return getBucketPolicyAsync(request, null);
}
@Override
public java.util.concurrent.Future getBucketPolicyAsync(final GetBucketPolicyRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetBucketPolicyRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetBucketPolicyResult call() throws Exception {
GetBucketPolicyResult result = null;
try {
result = executeGetBucketPolicy(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getBucketReplicationAsync(GetBucketReplicationRequest request) {
return getBucketReplicationAsync(request, null);
}
@Override
public java.util.concurrent.Future getBucketReplicationAsync(final GetBucketReplicationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetBucketReplicationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetBucketReplicationResult call() throws Exception {
GetBucketReplicationResult result = null;
try {
result = executeGetBucketReplication(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getBucketTaggingAsync(GetBucketTaggingRequest request) {
return getBucketTaggingAsync(request, null);
}
@Override
public java.util.concurrent.Future getBucketTaggingAsync(final GetBucketTaggingRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetBucketTaggingRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetBucketTaggingResult call() throws Exception {
GetBucketTaggingResult result = null;
try {
result = executeGetBucketTagging(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getBucketVersioningAsync(GetBucketVersioningRequest request) {
return getBucketVersioningAsync(request, null);
}
@Override
public java.util.concurrent.Future getBucketVersioningAsync(final GetBucketVersioningRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetBucketVersioningRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetBucketVersioningResult call() throws Exception {
GetBucketVersioningResult result = null;
try {
result = executeGetBucketVersioning(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getDataAccessAsync(GetDataAccessRequest request) {
return getDataAccessAsync(request, null);
}
@Override
public java.util.concurrent.Future getDataAccessAsync(final GetDataAccessRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetDataAccessRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetDataAccessResult call() throws Exception {
GetDataAccessResult result = null;
try {
result = executeGetDataAccess(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getJobTaggingAsync(GetJobTaggingRequest request) {
return getJobTaggingAsync(request, null);
}
@Override
public java.util.concurrent.Future getJobTaggingAsync(final GetJobTaggingRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetJobTaggingRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetJobTaggingResult call() throws Exception {
GetJobTaggingResult result = null;
try {
result = executeGetJobTagging(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getMultiRegionAccessPointAsync(GetMultiRegionAccessPointRequest request) {
return getMultiRegionAccessPointAsync(request, null);
}
@Override
public java.util.concurrent.Future getMultiRegionAccessPointAsync(final GetMultiRegionAccessPointRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetMultiRegionAccessPointRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetMultiRegionAccessPointResult call() throws Exception {
GetMultiRegionAccessPointResult result = null;
try {
result = executeGetMultiRegionAccessPoint(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getMultiRegionAccessPointPolicyAsync(
GetMultiRegionAccessPointPolicyRequest request) {
return getMultiRegionAccessPointPolicyAsync(request, null);
}
@Override
public java.util.concurrent.Future getMultiRegionAccessPointPolicyAsync(
final GetMultiRegionAccessPointPolicyRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetMultiRegionAccessPointPolicyRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetMultiRegionAccessPointPolicyResult call() throws Exception {
GetMultiRegionAccessPointPolicyResult result = null;
try {
result = executeGetMultiRegionAccessPointPolicy(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getMultiRegionAccessPointPolicyStatusAsync(
GetMultiRegionAccessPointPolicyStatusRequest request) {
return getMultiRegionAccessPointPolicyStatusAsync(request, null);
}
@Override
public java.util.concurrent.Future getMultiRegionAccessPointPolicyStatusAsync(
final GetMultiRegionAccessPointPolicyStatusRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetMultiRegionAccessPointPolicyStatusRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetMultiRegionAccessPointPolicyStatusResult call() throws Exception {
GetMultiRegionAccessPointPolicyStatusResult result = null;
try {
result = executeGetMultiRegionAccessPointPolicyStatus(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getMultiRegionAccessPointRoutesAsync(
GetMultiRegionAccessPointRoutesRequest request) {
return getMultiRegionAccessPointRoutesAsync(request, null);
}
@Override
public java.util.concurrent.Future getMultiRegionAccessPointRoutesAsync(
final GetMultiRegionAccessPointRoutesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetMultiRegionAccessPointRoutesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetMultiRegionAccessPointRoutesResult call() throws Exception {
GetMultiRegionAccessPointRoutesResult result = null;
try {
result = executeGetMultiRegionAccessPointRoutes(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getPublicAccessBlockAsync(GetPublicAccessBlockRequest request) {
return getPublicAccessBlockAsync(request, null);
}
@Override
public java.util.concurrent.Future getPublicAccessBlockAsync(final GetPublicAccessBlockRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetPublicAccessBlockRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetPublicAccessBlockResult call() throws Exception {
GetPublicAccessBlockResult result = null;
try {
result = executeGetPublicAccessBlock(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getStorageLensConfigurationAsync(GetStorageLensConfigurationRequest request) {
return getStorageLensConfigurationAsync(request, null);
}
@Override
public java.util.concurrent.Future getStorageLensConfigurationAsync(final GetStorageLensConfigurationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetStorageLensConfigurationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetStorageLensConfigurationResult call() throws Exception {
GetStorageLensConfigurationResult result = null;
try {
result = executeGetStorageLensConfiguration(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getStorageLensConfigurationTaggingAsync(
GetStorageLensConfigurationTaggingRequest request) {
return getStorageLensConfigurationTaggingAsync(request, null);
}
@Override
public java.util.concurrent.Future getStorageLensConfigurationTaggingAsync(
final GetStorageLensConfigurationTaggingRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetStorageLensConfigurationTaggingRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetStorageLensConfigurationTaggingResult call() throws Exception {
GetStorageLensConfigurationTaggingResult result = null;
try {
result = executeGetStorageLensConfigurationTagging(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getStorageLensGroupAsync(GetStorageLensGroupRequest request) {
return getStorageLensGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future getStorageLensGroupAsync(final GetStorageLensGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetStorageLensGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetStorageLensGroupResult call() throws Exception {
GetStorageLensGroupResult result = null;
try {
result = executeGetStorageLensGroup(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listAccessGrantsAsync(ListAccessGrantsRequest request) {
return listAccessGrantsAsync(request, null);
}
@Override
public java.util.concurrent.Future listAccessGrantsAsync(final ListAccessGrantsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListAccessGrantsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListAccessGrantsResult call() throws Exception {
ListAccessGrantsResult result = null;
try {
result = executeListAccessGrants(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listAccessGrantsInstancesAsync(ListAccessGrantsInstancesRequest request) {
return listAccessGrantsInstancesAsync(request, null);
}
@Override
public java.util.concurrent.Future listAccessGrantsInstancesAsync(final ListAccessGrantsInstancesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListAccessGrantsInstancesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListAccessGrantsInstancesResult call() throws Exception {
ListAccessGrantsInstancesResult result = null;
try {
result = executeListAccessGrantsInstances(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listAccessGrantsLocationsAsync(ListAccessGrantsLocationsRequest request) {
return listAccessGrantsLocationsAsync(request, null);
}
@Override
public java.util.concurrent.Future listAccessGrantsLocationsAsync(final ListAccessGrantsLocationsRequest request,
final com.amazonaws.handlers.AsyncHandler