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

com.amazonaws.services.auditmanager.AWSAuditManagerAsyncClient Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Audit Manager module holds the client classes that are used for communicating with AWS Audit Manager Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2016-2021 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.auditmanager;

import javax.annotation.Generated;

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

import java.util.concurrent.ExecutorService;

/**
 * Client for accessing AWS Audit Manager 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.
 * 

*

* Welcome to the AWS Audit Manager API reference. This guide is for developers who need detailed information about the * AWS Audit Manager API operations, data types, and errors. *

*

* AWS Audit Manager is a service that provides automated evidence collection so that you can continuously audit your * AWS usage, and assess the effectiveness of your controls to better manage risk and simplify compliance. *

*

* AWS Audit Manager provides pre-built frameworks that structure and automate assessments for a given compliance * standard. Frameworks include a pre-built collection of controls with descriptions and testing procedures, which are * grouped according to the requirements of the specified compliance standard or regulation. You can also customize * frameworks and controls to support internal audits with unique requirements. *

*

* Use the following links to get started with the AWS Audit Manager API: *

*
    *
  • *

    * Actions: An * alphabetical list of all AWS Audit Manager API operations. *

    *
  • *
  • *

    * Data types: An * alphabetical list of all AWS Audit Manager data types. *

    *
  • *
  • *

    * Common parameters: * Parameters that all Query operations can use. *

    *
  • *
  • *

    * Common errors: Client * and server errors that all operations can return. *

    *
  • *
*

* If you're new to AWS Audit Manager, we recommend that you review the AWS Audit Manager User Guide. *

*/ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AWSAuditManagerAsyncClient extends AWSAuditManagerClient implements AWSAuditManagerAsync { private static final int DEFAULT_THREAD_POOL_SIZE = 50; private final java.util.concurrent.ExecutorService executorService; public static AWSAuditManagerAsyncClientBuilder asyncBuilder() { return AWSAuditManagerAsyncClientBuilder.standard(); } /** * Constructs a new asynchronous client to invoke service methods on AWS Audit Manager using the specified * parameters. * * @param asyncClientParams * Object providing client parameters. */ AWSAuditManagerAsyncClient(AwsAsyncClientParams asyncClientParams) { this(asyncClientParams, false); } /** * Constructs a new asynchronous client to invoke service methods on AWS Audit Manager using the specified * parameters. * * @param asyncClientParams * Object providing client parameters. * @param endpointDiscoveryEnabled * true will enable endpoint discovery if the service supports it. */ AWSAuditManagerAsyncClient(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 associateAssessmentReportEvidenceFolderAsync( AssociateAssessmentReportEvidenceFolderRequest request) { return associateAssessmentReportEvidenceFolderAsync(request, null); } @Override public java.util.concurrent.Future associateAssessmentReportEvidenceFolderAsync( final AssociateAssessmentReportEvidenceFolderRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final AssociateAssessmentReportEvidenceFolderRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public AssociateAssessmentReportEvidenceFolderResult call() throws Exception { AssociateAssessmentReportEvidenceFolderResult result = null; try { result = executeAssociateAssessmentReportEvidenceFolder(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future batchAssociateAssessmentReportEvidenceAsync( BatchAssociateAssessmentReportEvidenceRequest request) { return batchAssociateAssessmentReportEvidenceAsync(request, null); } @Override public java.util.concurrent.Future batchAssociateAssessmentReportEvidenceAsync( final BatchAssociateAssessmentReportEvidenceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchAssociateAssessmentReportEvidenceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchAssociateAssessmentReportEvidenceResult call() throws Exception { BatchAssociateAssessmentReportEvidenceResult result = null; try { result = executeBatchAssociateAssessmentReportEvidence(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future batchCreateDelegationByAssessmentAsync( BatchCreateDelegationByAssessmentRequest request) { return batchCreateDelegationByAssessmentAsync(request, null); } @Override public java.util.concurrent.Future batchCreateDelegationByAssessmentAsync( final BatchCreateDelegationByAssessmentRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchCreateDelegationByAssessmentRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchCreateDelegationByAssessmentResult call() throws Exception { BatchCreateDelegationByAssessmentResult result = null; try { result = executeBatchCreateDelegationByAssessment(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future batchDeleteDelegationByAssessmentAsync( BatchDeleteDelegationByAssessmentRequest request) { return batchDeleteDelegationByAssessmentAsync(request, null); } @Override public java.util.concurrent.Future batchDeleteDelegationByAssessmentAsync( final BatchDeleteDelegationByAssessmentRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchDeleteDelegationByAssessmentRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchDeleteDelegationByAssessmentResult call() throws Exception { BatchDeleteDelegationByAssessmentResult result = null; try { result = executeBatchDeleteDelegationByAssessment(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future batchDisassociateAssessmentReportEvidenceAsync( BatchDisassociateAssessmentReportEvidenceRequest request) { return batchDisassociateAssessmentReportEvidenceAsync(request, null); } @Override public java.util.concurrent.Future batchDisassociateAssessmentReportEvidenceAsync( final BatchDisassociateAssessmentReportEvidenceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchDisassociateAssessmentReportEvidenceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchDisassociateAssessmentReportEvidenceResult call() throws Exception { BatchDisassociateAssessmentReportEvidenceResult result = null; try { result = executeBatchDisassociateAssessmentReportEvidence(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future batchImportEvidenceToAssessmentControlAsync( BatchImportEvidenceToAssessmentControlRequest request) { return batchImportEvidenceToAssessmentControlAsync(request, null); } @Override public java.util.concurrent.Future batchImportEvidenceToAssessmentControlAsync( final BatchImportEvidenceToAssessmentControlRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchImportEvidenceToAssessmentControlRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchImportEvidenceToAssessmentControlResult call() throws Exception { BatchImportEvidenceToAssessmentControlResult result = null; try { result = executeBatchImportEvidenceToAssessmentControl(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createAssessmentAsync(CreateAssessmentRequest request) { return createAssessmentAsync(request, null); } @Override public java.util.concurrent.Future createAssessmentAsync(final CreateAssessmentRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateAssessmentRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateAssessmentResult call() throws Exception { CreateAssessmentResult result = null; try { result = executeCreateAssessment(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createAssessmentFrameworkAsync(CreateAssessmentFrameworkRequest request) { return createAssessmentFrameworkAsync(request, null); } @Override public java.util.concurrent.Future createAssessmentFrameworkAsync(final CreateAssessmentFrameworkRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateAssessmentFrameworkRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateAssessmentFrameworkResult call() throws Exception { CreateAssessmentFrameworkResult result = null; try { result = executeCreateAssessmentFramework(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createAssessmentReportAsync(CreateAssessmentReportRequest request) { return createAssessmentReportAsync(request, null); } @Override public java.util.concurrent.Future createAssessmentReportAsync(final CreateAssessmentReportRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateAssessmentReportRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateAssessmentReportResult call() throws Exception { CreateAssessmentReportResult result = null; try { result = executeCreateAssessmentReport(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createControlAsync(CreateControlRequest request) { return createControlAsync(request, null); } @Override public java.util.concurrent.Future createControlAsync(final CreateControlRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateControlRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateControlResult call() throws Exception { CreateControlResult result = null; try { result = executeCreateControl(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteAssessmentAsync(DeleteAssessmentRequest request) { return deleteAssessmentAsync(request, null); } @Override public java.util.concurrent.Future deleteAssessmentAsync(final DeleteAssessmentRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteAssessmentRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteAssessmentResult call() throws Exception { DeleteAssessmentResult result = null; try { result = executeDeleteAssessment(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteAssessmentFrameworkAsync(DeleteAssessmentFrameworkRequest request) { return deleteAssessmentFrameworkAsync(request, null); } @Override public java.util.concurrent.Future deleteAssessmentFrameworkAsync(final DeleteAssessmentFrameworkRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteAssessmentFrameworkRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteAssessmentFrameworkResult call() throws Exception { DeleteAssessmentFrameworkResult result = null; try { result = executeDeleteAssessmentFramework(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteAssessmentReportAsync(DeleteAssessmentReportRequest request) { return deleteAssessmentReportAsync(request, null); } @Override public java.util.concurrent.Future deleteAssessmentReportAsync(final DeleteAssessmentReportRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteAssessmentReportRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteAssessmentReportResult call() throws Exception { DeleteAssessmentReportResult result = null; try { result = executeDeleteAssessmentReport(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteControlAsync(DeleteControlRequest request) { return deleteControlAsync(request, null); } @Override public java.util.concurrent.Future deleteControlAsync(final DeleteControlRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteControlRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteControlResult call() throws Exception { DeleteControlResult result = null; try { result = executeDeleteControl(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deregisterAccountAsync(DeregisterAccountRequest request) { return deregisterAccountAsync(request, null); } @Override public java.util.concurrent.Future deregisterAccountAsync(final DeregisterAccountRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeregisterAccountRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeregisterAccountResult call() throws Exception { DeregisterAccountResult result = null; try { result = executeDeregisterAccount(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deregisterOrganizationAdminAccountAsync( DeregisterOrganizationAdminAccountRequest request) { return deregisterOrganizationAdminAccountAsync(request, null); } @Override public java.util.concurrent.Future deregisterOrganizationAdminAccountAsync( final DeregisterOrganizationAdminAccountRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeregisterOrganizationAdminAccountRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeregisterOrganizationAdminAccountResult call() throws Exception { DeregisterOrganizationAdminAccountResult result = null; try { result = executeDeregisterOrganizationAdminAccount(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future disassociateAssessmentReportEvidenceFolderAsync( DisassociateAssessmentReportEvidenceFolderRequest request) { return disassociateAssessmentReportEvidenceFolderAsync(request, null); } @Override public java.util.concurrent.Future disassociateAssessmentReportEvidenceFolderAsync( final DisassociateAssessmentReportEvidenceFolderRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DisassociateAssessmentReportEvidenceFolderRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DisassociateAssessmentReportEvidenceFolderResult call() throws Exception { DisassociateAssessmentReportEvidenceFolderResult result = null; try { result = executeDisassociateAssessmentReportEvidenceFolder(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getAccountStatusAsync(GetAccountStatusRequest request) { return getAccountStatusAsync(request, null); } @Override public java.util.concurrent.Future getAccountStatusAsync(final GetAccountStatusRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetAccountStatusRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetAccountStatusResult call() throws Exception { GetAccountStatusResult result = null; try { result = executeGetAccountStatus(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getAssessmentAsync(GetAssessmentRequest request) { return getAssessmentAsync(request, null); } @Override public java.util.concurrent.Future getAssessmentAsync(final GetAssessmentRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetAssessmentRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetAssessmentResult call() throws Exception { GetAssessmentResult result = null; try { result = executeGetAssessment(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getAssessmentFrameworkAsync(GetAssessmentFrameworkRequest request) { return getAssessmentFrameworkAsync(request, null); } @Override public java.util.concurrent.Future getAssessmentFrameworkAsync(final GetAssessmentFrameworkRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetAssessmentFrameworkRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetAssessmentFrameworkResult call() throws Exception { GetAssessmentFrameworkResult result = null; try { result = executeGetAssessmentFramework(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getAssessmentReportUrlAsync(GetAssessmentReportUrlRequest request) { return getAssessmentReportUrlAsync(request, null); } @Override public java.util.concurrent.Future getAssessmentReportUrlAsync(final GetAssessmentReportUrlRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetAssessmentReportUrlRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetAssessmentReportUrlResult call() throws Exception { GetAssessmentReportUrlResult result = null; try { result = executeGetAssessmentReportUrl(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getChangeLogsAsync(GetChangeLogsRequest request) { return getChangeLogsAsync(request, null); } @Override public java.util.concurrent.Future getChangeLogsAsync(final GetChangeLogsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetChangeLogsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetChangeLogsResult call() throws Exception { GetChangeLogsResult result = null; try { result = executeGetChangeLogs(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getControlAsync(GetControlRequest request) { return getControlAsync(request, null); } @Override public java.util.concurrent.Future getControlAsync(final GetControlRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetControlRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetControlResult call() throws Exception { GetControlResult result = null; try { result = executeGetControl(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getDelegationsAsync(GetDelegationsRequest request) { return getDelegationsAsync(request, null); } @Override public java.util.concurrent.Future getDelegationsAsync(final GetDelegationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetDelegationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetDelegationsResult call() throws Exception { GetDelegationsResult result = null; try { result = executeGetDelegations(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getEvidenceAsync(GetEvidenceRequest request) { return getEvidenceAsync(request, null); } @Override public java.util.concurrent.Future getEvidenceAsync(final GetEvidenceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetEvidenceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetEvidenceResult call() throws Exception { GetEvidenceResult result = null; try { result = executeGetEvidence(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getEvidenceByEvidenceFolderAsync(GetEvidenceByEvidenceFolderRequest request) { return getEvidenceByEvidenceFolderAsync(request, null); } @Override public java.util.concurrent.Future getEvidenceByEvidenceFolderAsync(final GetEvidenceByEvidenceFolderRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetEvidenceByEvidenceFolderRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetEvidenceByEvidenceFolderResult call() throws Exception { GetEvidenceByEvidenceFolderResult result = null; try { result = executeGetEvidenceByEvidenceFolder(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getEvidenceFolderAsync(GetEvidenceFolderRequest request) { return getEvidenceFolderAsync(request, null); } @Override public java.util.concurrent.Future getEvidenceFolderAsync(final GetEvidenceFolderRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetEvidenceFolderRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetEvidenceFolderResult call() throws Exception { GetEvidenceFolderResult result = null; try { result = executeGetEvidenceFolder(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getEvidenceFoldersByAssessmentAsync(GetEvidenceFoldersByAssessmentRequest request) { return getEvidenceFoldersByAssessmentAsync(request, null); } @Override public java.util.concurrent.Future getEvidenceFoldersByAssessmentAsync( final GetEvidenceFoldersByAssessmentRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetEvidenceFoldersByAssessmentRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetEvidenceFoldersByAssessmentResult call() throws Exception { GetEvidenceFoldersByAssessmentResult result = null; try { result = executeGetEvidenceFoldersByAssessment(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getEvidenceFoldersByAssessmentControlAsync( GetEvidenceFoldersByAssessmentControlRequest request) { return getEvidenceFoldersByAssessmentControlAsync(request, null); } @Override public java.util.concurrent.Future getEvidenceFoldersByAssessmentControlAsync( final GetEvidenceFoldersByAssessmentControlRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetEvidenceFoldersByAssessmentControlRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetEvidenceFoldersByAssessmentControlResult call() throws Exception { GetEvidenceFoldersByAssessmentControlResult result = null; try { result = executeGetEvidenceFoldersByAssessmentControl(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getOrganizationAdminAccountAsync(GetOrganizationAdminAccountRequest request) { return getOrganizationAdminAccountAsync(request, null); } @Override public java.util.concurrent.Future getOrganizationAdminAccountAsync(final GetOrganizationAdminAccountRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetOrganizationAdminAccountRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetOrganizationAdminAccountResult call() throws Exception { GetOrganizationAdminAccountResult result = null; try { result = executeGetOrganizationAdminAccount(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getServicesInScopeAsync(GetServicesInScopeRequest request) { return getServicesInScopeAsync(request, null); } @Override public java.util.concurrent.Future getServicesInScopeAsync(final GetServicesInScopeRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetServicesInScopeRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetServicesInScopeResult call() throws Exception { GetServicesInScopeResult result = null; try { result = executeGetServicesInScope(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getSettingsAsync(GetSettingsRequest request) { return getSettingsAsync(request, null); } @Override public java.util.concurrent.Future getSettingsAsync(final GetSettingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetSettingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetSettingsResult call() throws Exception { GetSettingsResult result = null; try { result = executeGetSettings(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listAssessmentFrameworksAsync(ListAssessmentFrameworksRequest request) { return listAssessmentFrameworksAsync(request, null); } @Override public java.util.concurrent.Future listAssessmentFrameworksAsync(final ListAssessmentFrameworksRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAssessmentFrameworksRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAssessmentFrameworksResult call() throws Exception { ListAssessmentFrameworksResult result = null; try { result = executeListAssessmentFrameworks(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listAssessmentReportsAsync(ListAssessmentReportsRequest request) { return listAssessmentReportsAsync(request, null); } @Override public java.util.concurrent.Future listAssessmentReportsAsync(final ListAssessmentReportsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAssessmentReportsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAssessmentReportsResult call() throws Exception { ListAssessmentReportsResult result = null; try { result = executeListAssessmentReports(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listAssessmentsAsync(ListAssessmentsRequest request) { return listAssessmentsAsync(request, null); } @Override public java.util.concurrent.Future listAssessmentsAsync(final ListAssessmentsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAssessmentsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAssessmentsResult call() throws Exception { ListAssessmentsResult result = null; try { result = executeListAssessments(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listControlsAsync(ListControlsRequest request) { return listControlsAsync(request, null); } @Override public java.util.concurrent.Future listControlsAsync(final ListControlsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListControlsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListControlsResult call() throws Exception { ListControlsResult result = null; try { result = executeListControls(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listKeywordsForDataSourceAsync(ListKeywordsForDataSourceRequest request) { return listKeywordsForDataSourceAsync(request, null); } @Override public java.util.concurrent.Future listKeywordsForDataSourceAsync(final ListKeywordsForDataSourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListKeywordsForDataSourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListKeywordsForDataSourceResult call() throws Exception { ListKeywordsForDataSourceResult result = null; try { result = executeListKeywordsForDataSource(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listNotificationsAsync(ListNotificationsRequest request) { return listNotificationsAsync(request, null); } @Override public java.util.concurrent.Future listNotificationsAsync(final ListNotificationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListNotificationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListNotificationsResult call() throws Exception { ListNotificationsResult result = null; try { result = executeListNotifications(finalRequest); } catch (Exception 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 registerAccountAsync(RegisterAccountRequest request) { return registerAccountAsync(request, null); } @Override public java.util.concurrent.Future registerAccountAsync(final RegisterAccountRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RegisterAccountRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RegisterAccountResult call() throws Exception { RegisterAccountResult result = null; try { result = executeRegisterAccount(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future registerOrganizationAdminAccountAsync( RegisterOrganizationAdminAccountRequest request) { return registerOrganizationAdminAccountAsync(request, null); } @Override public java.util.concurrent.Future registerOrganizationAdminAccountAsync( final RegisterOrganizationAdminAccountRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RegisterOrganizationAdminAccountRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RegisterOrganizationAdminAccountResult call() throws Exception { RegisterOrganizationAdminAccountResult result = null; try { result = executeRegisterOrganizationAdminAccount(finalRequest); } catch (Exception 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 updateAssessmentAsync(UpdateAssessmentRequest request) { return updateAssessmentAsync(request, null); } @Override public java.util.concurrent.Future updateAssessmentAsync(final UpdateAssessmentRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAssessmentRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAssessmentResult call() throws Exception { UpdateAssessmentResult result = null; try { result = executeUpdateAssessment(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateAssessmentControlAsync(UpdateAssessmentControlRequest request) { return updateAssessmentControlAsync(request, null); } @Override public java.util.concurrent.Future updateAssessmentControlAsync(final UpdateAssessmentControlRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAssessmentControlRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAssessmentControlResult call() throws Exception { UpdateAssessmentControlResult result = null; try { result = executeUpdateAssessmentControl(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateAssessmentControlSetStatusAsync( UpdateAssessmentControlSetStatusRequest request) { return updateAssessmentControlSetStatusAsync(request, null); } @Override public java.util.concurrent.Future updateAssessmentControlSetStatusAsync( final UpdateAssessmentControlSetStatusRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAssessmentControlSetStatusRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAssessmentControlSetStatusResult call() throws Exception { UpdateAssessmentControlSetStatusResult result = null; try { result = executeUpdateAssessmentControlSetStatus(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateAssessmentFrameworkAsync(UpdateAssessmentFrameworkRequest request) { return updateAssessmentFrameworkAsync(request, null); } @Override public java.util.concurrent.Future updateAssessmentFrameworkAsync(final UpdateAssessmentFrameworkRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAssessmentFrameworkRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAssessmentFrameworkResult call() throws Exception { UpdateAssessmentFrameworkResult result = null; try { result = executeUpdateAssessmentFramework(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateAssessmentStatusAsync(UpdateAssessmentStatusRequest request) { return updateAssessmentStatusAsync(request, null); } @Override public java.util.concurrent.Future updateAssessmentStatusAsync(final UpdateAssessmentStatusRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAssessmentStatusRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAssessmentStatusResult call() throws Exception { UpdateAssessmentStatusResult result = null; try { result = executeUpdateAssessmentStatus(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateControlAsync(UpdateControlRequest request) { return updateControlAsync(request, null); } @Override public java.util.concurrent.Future updateControlAsync(final UpdateControlRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateControlRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateControlResult call() throws Exception { UpdateControlResult result = null; try { result = executeUpdateControl(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateSettingsAsync(UpdateSettingsRequest request) { return updateSettingsAsync(request, null); } @Override public java.util.concurrent.Future updateSettingsAsync(final UpdateSettingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateSettingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateSettingsResult call() throws Exception { UpdateSettingsResult result = null; try { result = executeUpdateSettings(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future validateAssessmentReportIntegrityAsync( ValidateAssessmentReportIntegrityRequest request) { return validateAssessmentReportIntegrityAsync(request, null); } @Override public java.util.concurrent.Future validateAssessmentReportIntegrityAsync( final ValidateAssessmentReportIntegrityRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ValidateAssessmentReportIntegrityRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ValidateAssessmentReportIntegrityResult call() throws Exception { ValidateAssessmentReportIntegrityResult result = null; try { result = executeValidateAssessmentReportIntegrity(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