All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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 asyncHandler) { final ListAccessGrantsLocationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAccessGrantsLocationsResult call() throws Exception { ListAccessGrantsLocationsResult result = null; try { result = executeListAccessGrantsLocations(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listAccessPointsAsync(ListAccessPointsRequest request) { return listAccessPointsAsync(request, null); } @Override public java.util.concurrent.Future listAccessPointsAsync(final ListAccessPointsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAccessPointsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAccessPointsResult call() throws Exception { ListAccessPointsResult result = null; try { result = executeListAccessPoints(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listAccessPointsForObjectLambdaAsync( ListAccessPointsForObjectLambdaRequest request) { return listAccessPointsForObjectLambdaAsync(request, null); } @Override public java.util.concurrent.Future listAccessPointsForObjectLambdaAsync( final ListAccessPointsForObjectLambdaRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAccessPointsForObjectLambdaRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAccessPointsForObjectLambdaResult call() throws Exception { ListAccessPointsForObjectLambdaResult result = null; try { result = executeListAccessPointsForObjectLambda(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listJobsAsync(ListJobsRequest request) { return listJobsAsync(request, null); } @Override public java.util.concurrent.Future listJobsAsync(final ListJobsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListJobsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListJobsResult call() throws Exception { ListJobsResult result = null; try { result = executeListJobs(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listMultiRegionAccessPointsAsync(ListMultiRegionAccessPointsRequest request) { return listMultiRegionAccessPointsAsync(request, null); } @Override public java.util.concurrent.Future listMultiRegionAccessPointsAsync(final ListMultiRegionAccessPointsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListMultiRegionAccessPointsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListMultiRegionAccessPointsResult call() throws Exception { ListMultiRegionAccessPointsResult result = null; try { result = executeListMultiRegionAccessPoints(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listRegionalBucketsAsync(ListRegionalBucketsRequest request) { return listRegionalBucketsAsync(request, null); } @Override public java.util.concurrent.Future listRegionalBucketsAsync(final ListRegionalBucketsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListRegionalBucketsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListRegionalBucketsResult call() throws Exception { ListRegionalBucketsResult result = null; try { result = executeListRegionalBuckets(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listStorageLensConfigurationsAsync(ListStorageLensConfigurationsRequest request) { return listStorageLensConfigurationsAsync(request, null); } @Override public java.util.concurrent.Future listStorageLensConfigurationsAsync( final ListStorageLensConfigurationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListStorageLensConfigurationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListStorageLensConfigurationsResult call() throws Exception { ListStorageLensConfigurationsResult result = null; try { result = executeListStorageLensConfigurations(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listStorageLensGroupsAsync(ListStorageLensGroupsRequest request) { return listStorageLensGroupsAsync(request, null); } @Override public java.util.concurrent.Future listStorageLensGroupsAsync(final ListStorageLensGroupsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListStorageLensGroupsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListStorageLensGroupsResult call() throws Exception { ListStorageLensGroupsResult result = null; try { result = executeListStorageLensGroups(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest request) { return listTagsForResourceAsync(request, null); } @Override public java.util.concurrent.Future listTagsForResourceAsync(final ListTagsForResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListTagsForResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListTagsForResourceResult call() throws Exception { ListTagsForResourceResult result = null; try { result = executeListTagsForResource(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future putAccessGrantsInstanceResourcePolicyAsync( PutAccessGrantsInstanceResourcePolicyRequest request) { return putAccessGrantsInstanceResourcePolicyAsync(request, null); } @Override public java.util.concurrent.Future putAccessGrantsInstanceResourcePolicyAsync( final PutAccessGrantsInstanceResourcePolicyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutAccessGrantsInstanceResourcePolicyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutAccessGrantsInstanceResourcePolicyResult call() throws Exception { PutAccessGrantsInstanceResourcePolicyResult result = null; try { result = executePutAccessGrantsInstanceResourcePolicy(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future putAccessPointConfigurationForObjectLambdaAsync( PutAccessPointConfigurationForObjectLambdaRequest request) { return putAccessPointConfigurationForObjectLambdaAsync(request, null); } @Override public java.util.concurrent.Future putAccessPointConfigurationForObjectLambdaAsync( final PutAccessPointConfigurationForObjectLambdaRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutAccessPointConfigurationForObjectLambdaRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutAccessPointConfigurationForObjectLambdaResult call() throws Exception { PutAccessPointConfigurationForObjectLambdaResult result = null; try { result = executePutAccessPointConfigurationForObjectLambda(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future putAccessPointPolicyAsync(PutAccessPointPolicyRequest request) { return putAccessPointPolicyAsync(request, null); } @Override public java.util.concurrent.Future putAccessPointPolicyAsync(final PutAccessPointPolicyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutAccessPointPolicyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutAccessPointPolicyResult call() throws Exception { PutAccessPointPolicyResult result = null; try { result = executePutAccessPointPolicy(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future putAccessPointPolicyForObjectLambdaAsync( PutAccessPointPolicyForObjectLambdaRequest request) { return putAccessPointPolicyForObjectLambdaAsync(request, null); } @Override public java.util.concurrent.Future putAccessPointPolicyForObjectLambdaAsync( final PutAccessPointPolicyForObjectLambdaRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutAccessPointPolicyForObjectLambdaRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutAccessPointPolicyForObjectLambdaResult call() throws Exception { PutAccessPointPolicyForObjectLambdaResult result = null; try { result = executePutAccessPointPolicyForObjectLambda(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future putBucketLifecycleConfigurationAsync( PutBucketLifecycleConfigurationRequest request) { return putBucketLifecycleConfigurationAsync(request, null); } @Override public java.util.concurrent.Future putBucketLifecycleConfigurationAsync( final PutBucketLifecycleConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutBucketLifecycleConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutBucketLifecycleConfigurationResult call() throws Exception { PutBucketLifecycleConfigurationResult result = null; try { result = executePutBucketLifecycleConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future putBucketPolicyAsync(PutBucketPolicyRequest request) { return putBucketPolicyAsync(request, null); } @Override public java.util.concurrent.Future putBucketPolicyAsync(final PutBucketPolicyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutBucketPolicyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutBucketPolicyResult call() throws Exception { PutBucketPolicyResult result = null; try { result = executePutBucketPolicy(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future putBucketReplicationAsync(PutBucketReplicationRequest request) { return putBucketReplicationAsync(request, null); } @Override public java.util.concurrent.Future putBucketReplicationAsync(final PutBucketReplicationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutBucketReplicationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutBucketReplicationResult call() throws Exception { PutBucketReplicationResult result = null; try { result = executePutBucketReplication(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future putBucketTaggingAsync(PutBucketTaggingRequest request) { return putBucketTaggingAsync(request, null); } @Override public java.util.concurrent.Future putBucketTaggingAsync(final PutBucketTaggingRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutBucketTaggingRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutBucketTaggingResult call() throws Exception { PutBucketTaggingResult result = null; try { result = executePutBucketTagging(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future putBucketVersioningAsync(PutBucketVersioningRequest request) { return putBucketVersioningAsync(request, null); } @Override public java.util.concurrent.Future putBucketVersioningAsync(final PutBucketVersioningRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutBucketVersioningRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutBucketVersioningResult call() throws Exception { PutBucketVersioningResult result = null; try { result = executePutBucketVersioning(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future putJobTaggingAsync(PutJobTaggingRequest request) { return putJobTaggingAsync(request, null); } @Override public java.util.concurrent.Future putJobTaggingAsync(final PutJobTaggingRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutJobTaggingRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutJobTaggingResult call() throws Exception { PutJobTaggingResult result = null; try { result = executePutJobTagging(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future putMultiRegionAccessPointPolicyAsync( PutMultiRegionAccessPointPolicyRequest request) { return putMultiRegionAccessPointPolicyAsync(request, null); } @Override public java.util.concurrent.Future putMultiRegionAccessPointPolicyAsync( final PutMultiRegionAccessPointPolicyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutMultiRegionAccessPointPolicyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutMultiRegionAccessPointPolicyResult call() throws Exception { PutMultiRegionAccessPointPolicyResult result = null; try { result = executePutMultiRegionAccessPointPolicy(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future putPublicAccessBlockAsync(PutPublicAccessBlockRequest request) { return putPublicAccessBlockAsync(request, null); } @Override public java.util.concurrent.Future putPublicAccessBlockAsync(final PutPublicAccessBlockRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutPublicAccessBlockRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutPublicAccessBlockResult call() throws Exception { PutPublicAccessBlockResult result = null; try { result = executePutPublicAccessBlock(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future putStorageLensConfigurationAsync(PutStorageLensConfigurationRequest request) { return putStorageLensConfigurationAsync(request, null); } @Override public java.util.concurrent.Future putStorageLensConfigurationAsync(final PutStorageLensConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutStorageLensConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutStorageLensConfigurationResult call() throws Exception { PutStorageLensConfigurationResult result = null; try { result = executePutStorageLensConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future putStorageLensConfigurationTaggingAsync( PutStorageLensConfigurationTaggingRequest request) { return putStorageLensConfigurationTaggingAsync(request, null); } @Override public java.util.concurrent.Future putStorageLensConfigurationTaggingAsync( final PutStorageLensConfigurationTaggingRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutStorageLensConfigurationTaggingRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutStorageLensConfigurationTaggingResult call() throws Exception { PutStorageLensConfigurationTaggingResult result = null; try { result = executePutStorageLensConfigurationTagging(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future submitMultiRegionAccessPointRoutesAsync( SubmitMultiRegionAccessPointRoutesRequest request) { return submitMultiRegionAccessPointRoutesAsync(request, null); } @Override public java.util.concurrent.Future submitMultiRegionAccessPointRoutesAsync( final SubmitMultiRegionAccessPointRoutesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final SubmitMultiRegionAccessPointRoutesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public SubmitMultiRegionAccessPointRoutesResult call() throws Exception { SubmitMultiRegionAccessPointRoutesResult result = null; try { result = executeSubmitMultiRegionAccessPointRoutes(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future tagResourceAsync(TagResourceRequest request) { return tagResourceAsync(request, null); } @Override public java.util.concurrent.Future tagResourceAsync(final TagResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final TagResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public TagResourceResult call() throws Exception { TagResourceResult result = null; try { result = executeTagResource(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future untagResourceAsync(UntagResourceRequest request) { return untagResourceAsync(request, null); } @Override public java.util.concurrent.Future untagResourceAsync(final UntagResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UntagResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UntagResourceResult call() throws Exception { UntagResourceResult result = null; try { result = executeUntagResource(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateAccessGrantsLocationAsync(UpdateAccessGrantsLocationRequest request) { return updateAccessGrantsLocationAsync(request, null); } @Override public java.util.concurrent.Future updateAccessGrantsLocationAsync(final UpdateAccessGrantsLocationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAccessGrantsLocationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAccessGrantsLocationResult call() throws Exception { UpdateAccessGrantsLocationResult result = null; try { result = executeUpdateAccessGrantsLocation(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateJobPriorityAsync(UpdateJobPriorityRequest request) { return updateJobPriorityAsync(request, null); } @Override public java.util.concurrent.Future updateJobPriorityAsync(final UpdateJobPriorityRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateJobPriorityRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateJobPriorityResult call() throws Exception { UpdateJobPriorityResult result = null; try { result = executeUpdateJobPriority(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateJobStatusAsync(UpdateJobStatusRequest request) { return updateJobStatusAsync(request, null); } @Override public java.util.concurrent.Future updateJobStatusAsync(final UpdateJobStatusRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateJobStatusRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateJobStatusResult call() throws Exception { UpdateJobStatusResult result = null; try { result = executeUpdateJobStatus(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateStorageLensGroupAsync(UpdateStorageLensGroupRequest request) { return updateStorageLensGroupAsync(request, null); } @Override public java.util.concurrent.Future updateStorageLensGroupAsync(final UpdateStorageLensGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateStorageLensGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateStorageLensGroupResult call() throws Exception { UpdateStorageLensGroupResult result = null; try { result = executeUpdateStorageLensGroup(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } /** * Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending * asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should * call {@code getExecutorService().shutdown()} followed by {@code getExecutorService().awaitTermination()} prior to * calling this method. */ @Override public void shutdown() { super.shutdown(); executorService.shutdownNow(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy