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

com.amazonaws.services.macie2.AmazonMacie2AsyncClient Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Macie 2 module holds the client classes that are used for communicating with Amazon Macie 2 Service

The newest version!
/*
 * 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.macie2;

import javax.annotation.Generated;

import com.amazonaws.services.macie2.model.*;
import com.amazonaws.client.AwsAsyncClientParams;
import com.amazonaws.annotation.ThreadSafe;

import java.util.concurrent.ExecutorService;

/**
 * Client for accessing Amazon Macie 2 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 Macie *

*/ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AmazonMacie2AsyncClient extends AmazonMacie2Client implements AmazonMacie2Async { private static final int DEFAULT_THREAD_POOL_SIZE = 50; private final java.util.concurrent.ExecutorService executorService; public static AmazonMacie2AsyncClientBuilder asyncBuilder() { return AmazonMacie2AsyncClientBuilder.standard(); } /** * Constructs a new asynchronous client to invoke service methods on Amazon Macie 2 using the specified parameters. * * @param asyncClientParams * Object providing client parameters. */ AmazonMacie2AsyncClient(AwsAsyncClientParams asyncClientParams) { this(asyncClientParams, false); } /** * Constructs a new asynchronous client to invoke service methods on Amazon Macie 2 using the specified parameters. * * @param asyncClientParams * Object providing client parameters. * @param endpointDiscoveryEnabled * true will enable endpoint discovery if the service supports it. */ AmazonMacie2AsyncClient(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 acceptInvitationAsync(AcceptInvitationRequest request) { return acceptInvitationAsync(request, null); } @Override public java.util.concurrent.Future acceptInvitationAsync(final AcceptInvitationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final AcceptInvitationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public AcceptInvitationResult call() throws Exception { AcceptInvitationResult result = null; try { result = executeAcceptInvitation(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future batchGetCustomDataIdentifiersAsync(BatchGetCustomDataIdentifiersRequest request) { return batchGetCustomDataIdentifiersAsync(request, null); } @Override public java.util.concurrent.Future batchGetCustomDataIdentifiersAsync( final BatchGetCustomDataIdentifiersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchGetCustomDataIdentifiersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchGetCustomDataIdentifiersResult call() throws Exception { BatchGetCustomDataIdentifiersResult result = null; try { result = executeBatchGetCustomDataIdentifiers(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future batchUpdateAutomatedDiscoveryAccountsAsync( BatchUpdateAutomatedDiscoveryAccountsRequest request) { return batchUpdateAutomatedDiscoveryAccountsAsync(request, null); } @Override public java.util.concurrent.Future batchUpdateAutomatedDiscoveryAccountsAsync( final BatchUpdateAutomatedDiscoveryAccountsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchUpdateAutomatedDiscoveryAccountsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchUpdateAutomatedDiscoveryAccountsResult call() throws Exception { BatchUpdateAutomatedDiscoveryAccountsResult result = null; try { result = executeBatchUpdateAutomatedDiscoveryAccounts(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createAllowListAsync(CreateAllowListRequest request) { return createAllowListAsync(request, null); } @Override public java.util.concurrent.Future createAllowListAsync(final CreateAllowListRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateAllowListRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateAllowListResult call() throws Exception { CreateAllowListResult result = null; try { result = executeCreateAllowList(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createClassificationJobAsync(CreateClassificationJobRequest request) { return createClassificationJobAsync(request, null); } @Override public java.util.concurrent.Future createClassificationJobAsync(final CreateClassificationJobRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateClassificationJobRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateClassificationJobResult call() throws Exception { CreateClassificationJobResult result = null; try { result = executeCreateClassificationJob(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createCustomDataIdentifierAsync(CreateCustomDataIdentifierRequest request) { return createCustomDataIdentifierAsync(request, null); } @Override public java.util.concurrent.Future createCustomDataIdentifierAsync(final CreateCustomDataIdentifierRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateCustomDataIdentifierRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateCustomDataIdentifierResult call() throws Exception { CreateCustomDataIdentifierResult result = null; try { result = executeCreateCustomDataIdentifier(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createFindingsFilterAsync(CreateFindingsFilterRequest request) { return createFindingsFilterAsync(request, null); } @Override public java.util.concurrent.Future createFindingsFilterAsync(final CreateFindingsFilterRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateFindingsFilterRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateFindingsFilterResult call() throws Exception { CreateFindingsFilterResult result = null; try { result = executeCreateFindingsFilter(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createInvitationsAsync(CreateInvitationsRequest request) { return createInvitationsAsync(request, null); } @Override public java.util.concurrent.Future createInvitationsAsync(final CreateInvitationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateInvitationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateInvitationsResult call() throws Exception { CreateInvitationsResult result = null; try { result = executeCreateInvitations(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createMemberAsync(CreateMemberRequest request) { return createMemberAsync(request, null); } @Override public java.util.concurrent.Future createMemberAsync(final CreateMemberRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateMemberRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateMemberResult call() throws Exception { CreateMemberResult result = null; try { result = executeCreateMember(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createSampleFindingsAsync(CreateSampleFindingsRequest request) { return createSampleFindingsAsync(request, null); } @Override public java.util.concurrent.Future createSampleFindingsAsync(final CreateSampleFindingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateSampleFindingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateSampleFindingsResult call() throws Exception { CreateSampleFindingsResult result = null; try { result = executeCreateSampleFindings(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future declineInvitationsAsync(DeclineInvitationsRequest request) { return declineInvitationsAsync(request, null); } @Override public java.util.concurrent.Future declineInvitationsAsync(final DeclineInvitationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeclineInvitationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeclineInvitationsResult call() throws Exception { DeclineInvitationsResult result = null; try { result = executeDeclineInvitations(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteAllowListAsync(DeleteAllowListRequest request) { return deleteAllowListAsync(request, null); } @Override public java.util.concurrent.Future deleteAllowListAsync(final DeleteAllowListRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteAllowListRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteAllowListResult call() throws Exception { DeleteAllowListResult result = null; try { result = executeDeleteAllowList(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteCustomDataIdentifierAsync(DeleteCustomDataIdentifierRequest request) { return deleteCustomDataIdentifierAsync(request, null); } @Override public java.util.concurrent.Future deleteCustomDataIdentifierAsync(final DeleteCustomDataIdentifierRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteCustomDataIdentifierRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteCustomDataIdentifierResult call() throws Exception { DeleteCustomDataIdentifierResult result = null; try { result = executeDeleteCustomDataIdentifier(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteFindingsFilterAsync(DeleteFindingsFilterRequest request) { return deleteFindingsFilterAsync(request, null); } @Override public java.util.concurrent.Future deleteFindingsFilterAsync(final DeleteFindingsFilterRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteFindingsFilterRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteFindingsFilterResult call() throws Exception { DeleteFindingsFilterResult result = null; try { result = executeDeleteFindingsFilter(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteInvitationsAsync(DeleteInvitationsRequest request) { return deleteInvitationsAsync(request, null); } @Override public java.util.concurrent.Future deleteInvitationsAsync(final DeleteInvitationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteInvitationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteInvitationsResult call() throws Exception { DeleteInvitationsResult result = null; try { result = executeDeleteInvitations(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteMemberAsync(DeleteMemberRequest request) { return deleteMemberAsync(request, null); } @Override public java.util.concurrent.Future deleteMemberAsync(final DeleteMemberRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteMemberRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteMemberResult call() throws Exception { DeleteMemberResult result = null; try { result = executeDeleteMember(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeBucketsAsync(DescribeBucketsRequest request) { return describeBucketsAsync(request, null); } @Override public java.util.concurrent.Future describeBucketsAsync(final DescribeBucketsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeBucketsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeBucketsResult call() throws Exception { DescribeBucketsResult result = null; try { result = executeDescribeBuckets(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeClassificationJobAsync(DescribeClassificationJobRequest request) { return describeClassificationJobAsync(request, null); } @Override public java.util.concurrent.Future describeClassificationJobAsync(final DescribeClassificationJobRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeClassificationJobRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeClassificationJobResult call() throws Exception { DescribeClassificationJobResult result = null; try { result = executeDescribeClassificationJob(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeOrganizationConfigurationAsync( DescribeOrganizationConfigurationRequest request) { return describeOrganizationConfigurationAsync(request, null); } @Override public java.util.concurrent.Future describeOrganizationConfigurationAsync( final DescribeOrganizationConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeOrganizationConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeOrganizationConfigurationResult call() throws Exception { DescribeOrganizationConfigurationResult result = null; try { result = executeDescribeOrganizationConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future disableMacieAsync(DisableMacieRequest request) { return disableMacieAsync(request, null); } @Override public java.util.concurrent.Future disableMacieAsync(final DisableMacieRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DisableMacieRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DisableMacieResult call() throws Exception { DisableMacieResult result = null; try { result = executeDisableMacie(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future disableOrganizationAdminAccountAsync( DisableOrganizationAdminAccountRequest request) { return disableOrganizationAdminAccountAsync(request, null); } @Override public java.util.concurrent.Future disableOrganizationAdminAccountAsync( final DisableOrganizationAdminAccountRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DisableOrganizationAdminAccountRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DisableOrganizationAdminAccountResult call() throws Exception { DisableOrganizationAdminAccountResult result = null; try { result = executeDisableOrganizationAdminAccount(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future disassociateFromAdministratorAccountAsync( DisassociateFromAdministratorAccountRequest request) { return disassociateFromAdministratorAccountAsync(request, null); } @Override public java.util.concurrent.Future disassociateFromAdministratorAccountAsync( final DisassociateFromAdministratorAccountRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DisassociateFromAdministratorAccountRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DisassociateFromAdministratorAccountResult call() throws Exception { DisassociateFromAdministratorAccountResult result = null; try { result = executeDisassociateFromAdministratorAccount(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future disassociateFromMasterAccountAsync(DisassociateFromMasterAccountRequest request) { return disassociateFromMasterAccountAsync(request, null); } @Override public java.util.concurrent.Future disassociateFromMasterAccountAsync( final DisassociateFromMasterAccountRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DisassociateFromMasterAccountRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DisassociateFromMasterAccountResult call() throws Exception { DisassociateFromMasterAccountResult result = null; try { result = executeDisassociateFromMasterAccount(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future disassociateMemberAsync(DisassociateMemberRequest request) { return disassociateMemberAsync(request, null); } @Override public java.util.concurrent.Future disassociateMemberAsync(final DisassociateMemberRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DisassociateMemberRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DisassociateMemberResult call() throws Exception { DisassociateMemberResult result = null; try { result = executeDisassociateMember(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future enableMacieAsync(EnableMacieRequest request) { return enableMacieAsync(request, null); } @Override public java.util.concurrent.Future enableMacieAsync(final EnableMacieRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final EnableMacieRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public EnableMacieResult call() throws Exception { EnableMacieResult result = null; try { result = executeEnableMacie(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future enableOrganizationAdminAccountAsync(EnableOrganizationAdminAccountRequest request) { return enableOrganizationAdminAccountAsync(request, null); } @Override public java.util.concurrent.Future enableOrganizationAdminAccountAsync( final EnableOrganizationAdminAccountRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final EnableOrganizationAdminAccountRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public EnableOrganizationAdminAccountResult call() throws Exception { EnableOrganizationAdminAccountResult result = null; try { result = executeEnableOrganizationAdminAccount(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getAdministratorAccountAsync(GetAdministratorAccountRequest request) { return getAdministratorAccountAsync(request, null); } @Override public java.util.concurrent.Future getAdministratorAccountAsync(final GetAdministratorAccountRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetAdministratorAccountRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetAdministratorAccountResult call() throws Exception { GetAdministratorAccountResult result = null; try { result = executeGetAdministratorAccount(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getAllowListAsync(GetAllowListRequest request) { return getAllowListAsync(request, null); } @Override public java.util.concurrent.Future getAllowListAsync(final GetAllowListRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetAllowListRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetAllowListResult call() throws Exception { GetAllowListResult result = null; try { result = executeGetAllowList(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getAutomatedDiscoveryConfigurationAsync( GetAutomatedDiscoveryConfigurationRequest request) { return getAutomatedDiscoveryConfigurationAsync(request, null); } @Override public java.util.concurrent.Future getAutomatedDiscoveryConfigurationAsync( final GetAutomatedDiscoveryConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetAutomatedDiscoveryConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetAutomatedDiscoveryConfigurationResult call() throws Exception { GetAutomatedDiscoveryConfigurationResult result = null; try { result = executeGetAutomatedDiscoveryConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getBucketStatisticsAsync(GetBucketStatisticsRequest request) { return getBucketStatisticsAsync(request, null); } @Override public java.util.concurrent.Future getBucketStatisticsAsync(final GetBucketStatisticsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetBucketStatisticsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetBucketStatisticsResult call() throws Exception { GetBucketStatisticsResult result = null; try { result = executeGetBucketStatistics(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getClassificationExportConfigurationAsync( GetClassificationExportConfigurationRequest request) { return getClassificationExportConfigurationAsync(request, null); } @Override public java.util.concurrent.Future getClassificationExportConfigurationAsync( final GetClassificationExportConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetClassificationExportConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetClassificationExportConfigurationResult call() throws Exception { GetClassificationExportConfigurationResult result = null; try { result = executeGetClassificationExportConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getClassificationScopeAsync(GetClassificationScopeRequest request) { return getClassificationScopeAsync(request, null); } @Override public java.util.concurrent.Future getClassificationScopeAsync(final GetClassificationScopeRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetClassificationScopeRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetClassificationScopeResult call() throws Exception { GetClassificationScopeResult result = null; try { result = executeGetClassificationScope(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getCustomDataIdentifierAsync(GetCustomDataIdentifierRequest request) { return getCustomDataIdentifierAsync(request, null); } @Override public java.util.concurrent.Future getCustomDataIdentifierAsync(final GetCustomDataIdentifierRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetCustomDataIdentifierRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetCustomDataIdentifierResult call() throws Exception { GetCustomDataIdentifierResult result = null; try { result = executeGetCustomDataIdentifier(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getFindingStatisticsAsync(GetFindingStatisticsRequest request) { return getFindingStatisticsAsync(request, null); } @Override public java.util.concurrent.Future getFindingStatisticsAsync(final GetFindingStatisticsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetFindingStatisticsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetFindingStatisticsResult call() throws Exception { GetFindingStatisticsResult result = null; try { result = executeGetFindingStatistics(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getFindingsAsync(GetFindingsRequest request) { return getFindingsAsync(request, null); } @Override public java.util.concurrent.Future getFindingsAsync(final GetFindingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetFindingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetFindingsResult call() throws Exception { GetFindingsResult result = null; try { result = executeGetFindings(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getFindingsFilterAsync(GetFindingsFilterRequest request) { return getFindingsFilterAsync(request, null); } @Override public java.util.concurrent.Future getFindingsFilterAsync(final GetFindingsFilterRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetFindingsFilterRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetFindingsFilterResult call() throws Exception { GetFindingsFilterResult result = null; try { result = executeGetFindingsFilter(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getFindingsPublicationConfigurationAsync( GetFindingsPublicationConfigurationRequest request) { return getFindingsPublicationConfigurationAsync(request, null); } @Override public java.util.concurrent.Future getFindingsPublicationConfigurationAsync( final GetFindingsPublicationConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetFindingsPublicationConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetFindingsPublicationConfigurationResult call() throws Exception { GetFindingsPublicationConfigurationResult result = null; try { result = executeGetFindingsPublicationConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getInvitationsCountAsync(GetInvitationsCountRequest request) { return getInvitationsCountAsync(request, null); } @Override public java.util.concurrent.Future getInvitationsCountAsync(final GetInvitationsCountRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetInvitationsCountRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetInvitationsCountResult call() throws Exception { GetInvitationsCountResult result = null; try { result = executeGetInvitationsCount(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getMacieSessionAsync(GetMacieSessionRequest request) { return getMacieSessionAsync(request, null); } @Override public java.util.concurrent.Future getMacieSessionAsync(final GetMacieSessionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetMacieSessionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetMacieSessionResult call() throws Exception { GetMacieSessionResult result = null; try { result = executeGetMacieSession(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getMasterAccountAsync(GetMasterAccountRequest request) { return getMasterAccountAsync(request, null); } @Override public java.util.concurrent.Future getMasterAccountAsync(final GetMasterAccountRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetMasterAccountRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetMasterAccountResult call() throws Exception { GetMasterAccountResult result = null; try { result = executeGetMasterAccount(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getMemberAsync(GetMemberRequest request) { return getMemberAsync(request, null); } @Override public java.util.concurrent.Future getMemberAsync(final GetMemberRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetMemberRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetMemberResult call() throws Exception { GetMemberResult result = null; try { result = executeGetMember(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getResourceProfileAsync(GetResourceProfileRequest request) { return getResourceProfileAsync(request, null); } @Override public java.util.concurrent.Future getResourceProfileAsync(final GetResourceProfileRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetResourceProfileRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetResourceProfileResult call() throws Exception { GetResourceProfileResult result = null; try { result = executeGetResourceProfile(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getRevealConfigurationAsync(GetRevealConfigurationRequest request) { return getRevealConfigurationAsync(request, null); } @Override public java.util.concurrent.Future getRevealConfigurationAsync(final GetRevealConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetRevealConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetRevealConfigurationResult call() throws Exception { GetRevealConfigurationResult result = null; try { result = executeGetRevealConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getSensitiveDataOccurrencesAsync(GetSensitiveDataOccurrencesRequest request) { return getSensitiveDataOccurrencesAsync(request, null); } @Override public java.util.concurrent.Future getSensitiveDataOccurrencesAsync(final GetSensitiveDataOccurrencesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetSensitiveDataOccurrencesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetSensitiveDataOccurrencesResult call() throws Exception { GetSensitiveDataOccurrencesResult result = null; try { result = executeGetSensitiveDataOccurrences(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getSensitiveDataOccurrencesAvailabilityAsync( GetSensitiveDataOccurrencesAvailabilityRequest request) { return getSensitiveDataOccurrencesAvailabilityAsync(request, null); } @Override public java.util.concurrent.Future getSensitiveDataOccurrencesAvailabilityAsync( final GetSensitiveDataOccurrencesAvailabilityRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetSensitiveDataOccurrencesAvailabilityRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetSensitiveDataOccurrencesAvailabilityResult call() throws Exception { GetSensitiveDataOccurrencesAvailabilityResult result = null; try { result = executeGetSensitiveDataOccurrencesAvailability(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getSensitivityInspectionTemplateAsync( GetSensitivityInspectionTemplateRequest request) { return getSensitivityInspectionTemplateAsync(request, null); } @Override public java.util.concurrent.Future getSensitivityInspectionTemplateAsync( final GetSensitivityInspectionTemplateRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetSensitivityInspectionTemplateRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetSensitivityInspectionTemplateResult call() throws Exception { GetSensitivityInspectionTemplateResult result = null; try { result = executeGetSensitivityInspectionTemplate(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getUsageStatisticsAsync(GetUsageStatisticsRequest request) { return getUsageStatisticsAsync(request, null); } @Override public java.util.concurrent.Future getUsageStatisticsAsync(final GetUsageStatisticsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetUsageStatisticsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetUsageStatisticsResult call() throws Exception { GetUsageStatisticsResult result = null; try { result = executeGetUsageStatistics(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getUsageTotalsAsync(GetUsageTotalsRequest request) { return getUsageTotalsAsync(request, null); } @Override public java.util.concurrent.Future getUsageTotalsAsync(final GetUsageTotalsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetUsageTotalsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetUsageTotalsResult call() throws Exception { GetUsageTotalsResult result = null; try { result = executeGetUsageTotals(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listAllowListsAsync(ListAllowListsRequest request) { return listAllowListsAsync(request, null); } @Override public java.util.concurrent.Future listAllowListsAsync(final ListAllowListsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAllowListsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAllowListsResult call() throws Exception { ListAllowListsResult result = null; try { result = executeListAllowLists(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listAutomatedDiscoveryAccountsAsync(ListAutomatedDiscoveryAccountsRequest request) { return listAutomatedDiscoveryAccountsAsync(request, null); } @Override public java.util.concurrent.Future listAutomatedDiscoveryAccountsAsync( final ListAutomatedDiscoveryAccountsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAutomatedDiscoveryAccountsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAutomatedDiscoveryAccountsResult call() throws Exception { ListAutomatedDiscoveryAccountsResult result = null; try { result = executeListAutomatedDiscoveryAccounts(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listClassificationJobsAsync(ListClassificationJobsRequest request) { return listClassificationJobsAsync(request, null); } @Override public java.util.concurrent.Future listClassificationJobsAsync(final ListClassificationJobsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListClassificationJobsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListClassificationJobsResult call() throws Exception { ListClassificationJobsResult result = null; try { result = executeListClassificationJobs(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listClassificationScopesAsync(ListClassificationScopesRequest request) { return listClassificationScopesAsync(request, null); } @Override public java.util.concurrent.Future listClassificationScopesAsync(final ListClassificationScopesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListClassificationScopesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListClassificationScopesResult call() throws Exception { ListClassificationScopesResult result = null; try { result = executeListClassificationScopes(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listCustomDataIdentifiersAsync(ListCustomDataIdentifiersRequest request) { return listCustomDataIdentifiersAsync(request, null); } @Override public java.util.concurrent.Future listCustomDataIdentifiersAsync(final ListCustomDataIdentifiersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListCustomDataIdentifiersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListCustomDataIdentifiersResult call() throws Exception { ListCustomDataIdentifiersResult result = null; try { result = executeListCustomDataIdentifiers(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listFindingsAsync(ListFindingsRequest request) { return listFindingsAsync(request, null); } @Override public java.util.concurrent.Future listFindingsAsync(final ListFindingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListFindingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListFindingsResult call() throws Exception { ListFindingsResult result = null; try { result = executeListFindings(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listFindingsFiltersAsync(ListFindingsFiltersRequest request) { return listFindingsFiltersAsync(request, null); } @Override public java.util.concurrent.Future listFindingsFiltersAsync(final ListFindingsFiltersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListFindingsFiltersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListFindingsFiltersResult call() throws Exception { ListFindingsFiltersResult result = null; try { result = executeListFindingsFilters(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listInvitationsAsync(ListInvitationsRequest request) { return listInvitationsAsync(request, null); } @Override public java.util.concurrent.Future listInvitationsAsync(final ListInvitationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListInvitationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListInvitationsResult call() throws Exception { ListInvitationsResult result = null; try { result = executeListInvitations(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listManagedDataIdentifiersAsync(ListManagedDataIdentifiersRequest request) { return listManagedDataIdentifiersAsync(request, null); } @Override public java.util.concurrent.Future listManagedDataIdentifiersAsync(final ListManagedDataIdentifiersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListManagedDataIdentifiersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListManagedDataIdentifiersResult call() throws Exception { ListManagedDataIdentifiersResult result = null; try { result = executeListManagedDataIdentifiers(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listMembersAsync(ListMembersRequest request) { return listMembersAsync(request, null); } @Override public java.util.concurrent.Future listMembersAsync(final ListMembersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListMembersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListMembersResult call() throws Exception { ListMembersResult result = null; try { result = executeListMembers(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listOrganizationAdminAccountsAsync(ListOrganizationAdminAccountsRequest request) { return listOrganizationAdminAccountsAsync(request, null); } @Override public java.util.concurrent.Future listOrganizationAdminAccountsAsync( final ListOrganizationAdminAccountsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListOrganizationAdminAccountsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListOrganizationAdminAccountsResult call() throws Exception { ListOrganizationAdminAccountsResult result = null; try { result = executeListOrganizationAdminAccounts(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listResourceProfileArtifactsAsync(ListResourceProfileArtifactsRequest request) { return listResourceProfileArtifactsAsync(request, null); } @Override public java.util.concurrent.Future listResourceProfileArtifactsAsync(final ListResourceProfileArtifactsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListResourceProfileArtifactsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListResourceProfileArtifactsResult call() throws Exception { ListResourceProfileArtifactsResult result = null; try { result = executeListResourceProfileArtifacts(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listResourceProfileDetectionsAsync(ListResourceProfileDetectionsRequest request) { return listResourceProfileDetectionsAsync(request, null); } @Override public java.util.concurrent.Future listResourceProfileDetectionsAsync( final ListResourceProfileDetectionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListResourceProfileDetectionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListResourceProfileDetectionsResult call() throws Exception { ListResourceProfileDetectionsResult result = null; try { result = executeListResourceProfileDetections(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listSensitivityInspectionTemplatesAsync( ListSensitivityInspectionTemplatesRequest request) { return listSensitivityInspectionTemplatesAsync(request, null); } @Override public java.util.concurrent.Future listSensitivityInspectionTemplatesAsync( final ListSensitivityInspectionTemplatesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListSensitivityInspectionTemplatesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListSensitivityInspectionTemplatesResult call() throws Exception { ListSensitivityInspectionTemplatesResult result = null; try { result = executeListSensitivityInspectionTemplates(finalRequest); } catch (Exception 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 putClassificationExportConfigurationAsync( PutClassificationExportConfigurationRequest request) { return putClassificationExportConfigurationAsync(request, null); } @Override public java.util.concurrent.Future putClassificationExportConfigurationAsync( final PutClassificationExportConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutClassificationExportConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutClassificationExportConfigurationResult call() throws Exception { PutClassificationExportConfigurationResult result = null; try { result = executePutClassificationExportConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future putFindingsPublicationConfigurationAsync( PutFindingsPublicationConfigurationRequest request) { return putFindingsPublicationConfigurationAsync(request, null); } @Override public java.util.concurrent.Future putFindingsPublicationConfigurationAsync( final PutFindingsPublicationConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutFindingsPublicationConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutFindingsPublicationConfigurationResult call() throws Exception { PutFindingsPublicationConfigurationResult result = null; try { result = executePutFindingsPublicationConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future searchResourcesAsync(SearchResourcesRequest request) { return searchResourcesAsync(request, null); } @Override public java.util.concurrent.Future searchResourcesAsync(final SearchResourcesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final SearchResourcesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public SearchResourcesResult call() throws Exception { SearchResourcesResult result = null; try { result = executeSearchResources(finalRequest); } catch (Exception 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 testCustomDataIdentifierAsync(TestCustomDataIdentifierRequest request) { return testCustomDataIdentifierAsync(request, null); } @Override public java.util.concurrent.Future testCustomDataIdentifierAsync(final TestCustomDataIdentifierRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final TestCustomDataIdentifierRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public TestCustomDataIdentifierResult call() throws Exception { TestCustomDataIdentifierResult result = null; try { result = executeTestCustomDataIdentifier(finalRequest); } catch (Exception 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 updateAllowListAsync(UpdateAllowListRequest request) { return updateAllowListAsync(request, null); } @Override public java.util.concurrent.Future updateAllowListAsync(final UpdateAllowListRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAllowListRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAllowListResult call() throws Exception { UpdateAllowListResult result = null; try { result = executeUpdateAllowList(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateAutomatedDiscoveryConfigurationAsync( UpdateAutomatedDiscoveryConfigurationRequest request) { return updateAutomatedDiscoveryConfigurationAsync(request, null); } @Override public java.util.concurrent.Future updateAutomatedDiscoveryConfigurationAsync( final UpdateAutomatedDiscoveryConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAutomatedDiscoveryConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAutomatedDiscoveryConfigurationResult call() throws Exception { UpdateAutomatedDiscoveryConfigurationResult result = null; try { result = executeUpdateAutomatedDiscoveryConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateClassificationJobAsync(UpdateClassificationJobRequest request) { return updateClassificationJobAsync(request, null); } @Override public java.util.concurrent.Future updateClassificationJobAsync(final UpdateClassificationJobRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateClassificationJobRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateClassificationJobResult call() throws Exception { UpdateClassificationJobResult result = null; try { result = executeUpdateClassificationJob(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateClassificationScopeAsync(UpdateClassificationScopeRequest request) { return updateClassificationScopeAsync(request, null); } @Override public java.util.concurrent.Future updateClassificationScopeAsync(final UpdateClassificationScopeRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateClassificationScopeRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateClassificationScopeResult call() throws Exception { UpdateClassificationScopeResult result = null; try { result = executeUpdateClassificationScope(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateFindingsFilterAsync(UpdateFindingsFilterRequest request) { return updateFindingsFilterAsync(request, null); } @Override public java.util.concurrent.Future updateFindingsFilterAsync(final UpdateFindingsFilterRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateFindingsFilterRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateFindingsFilterResult call() throws Exception { UpdateFindingsFilterResult result = null; try { result = executeUpdateFindingsFilter(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateMacieSessionAsync(UpdateMacieSessionRequest request) { return updateMacieSessionAsync(request, null); } @Override public java.util.concurrent.Future updateMacieSessionAsync(final UpdateMacieSessionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateMacieSessionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateMacieSessionResult call() throws Exception { UpdateMacieSessionResult result = null; try { result = executeUpdateMacieSession(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateMemberSessionAsync(UpdateMemberSessionRequest request) { return updateMemberSessionAsync(request, null); } @Override public java.util.concurrent.Future updateMemberSessionAsync(final UpdateMemberSessionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateMemberSessionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateMemberSessionResult call() throws Exception { UpdateMemberSessionResult result = null; try { result = executeUpdateMemberSession(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateOrganizationConfigurationAsync( UpdateOrganizationConfigurationRequest request) { return updateOrganizationConfigurationAsync(request, null); } @Override public java.util.concurrent.Future updateOrganizationConfigurationAsync( final UpdateOrganizationConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateOrganizationConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateOrganizationConfigurationResult call() throws Exception { UpdateOrganizationConfigurationResult result = null; try { result = executeUpdateOrganizationConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateResourceProfileAsync(UpdateResourceProfileRequest request) { return updateResourceProfileAsync(request, null); } @Override public java.util.concurrent.Future updateResourceProfileAsync(final UpdateResourceProfileRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateResourceProfileRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateResourceProfileResult call() throws Exception { UpdateResourceProfileResult result = null; try { result = executeUpdateResourceProfile(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateResourceProfileDetectionsAsync( UpdateResourceProfileDetectionsRequest request) { return updateResourceProfileDetectionsAsync(request, null); } @Override public java.util.concurrent.Future updateResourceProfileDetectionsAsync( final UpdateResourceProfileDetectionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateResourceProfileDetectionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateResourceProfileDetectionsResult call() throws Exception { UpdateResourceProfileDetectionsResult result = null; try { result = executeUpdateResourceProfileDetections(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateRevealConfigurationAsync(UpdateRevealConfigurationRequest request) { return updateRevealConfigurationAsync(request, null); } @Override public java.util.concurrent.Future updateRevealConfigurationAsync(final UpdateRevealConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateRevealConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateRevealConfigurationResult call() throws Exception { UpdateRevealConfigurationResult result = null; try { result = executeUpdateRevealConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateSensitivityInspectionTemplateAsync( UpdateSensitivityInspectionTemplateRequest request) { return updateSensitivityInspectionTemplateAsync(request, null); } @Override public java.util.concurrent.Future updateSensitivityInspectionTemplateAsync( final UpdateSensitivityInspectionTemplateRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateSensitivityInspectionTemplateRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateSensitivityInspectionTemplateResult call() throws Exception { UpdateSensitivityInspectionTemplateResult result = null; try { result = executeUpdateSensitivityInspectionTemplate(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