com.amazonaws.services.guardduty.AmazonGuardDutyAsyncClient Maven / Gradle / Ivy
Show all versions of aws-java-sdk-guardduty Show documentation
/*
* Copyright 2018-2023 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.guardduty;
import javax.annotation.Generated;
import com.amazonaws.services.guardduty.model.*;
import com.amazonaws.client.AwsAsyncClientParams;
import com.amazonaws.annotation.ThreadSafe;
import java.util.concurrent.ExecutorService;
/**
* Client for accessing Amazon GuardDuty 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 GuardDuty is a continuous security monitoring service that analyzes and processes the following data sources:
* VPC flow logs, Amazon Web Services CloudTrail management event logs, CloudTrail S3 data event logs, EKS audit logs,
* DNS logs, and Amazon EBS volume data. It uses threat intelligence feeds, such as lists of malicious IPs and domains,
* and machine learning to identify unexpected, potentially unauthorized, and malicious activity within your Amazon Web
* Services environment. This can include issues like escalations of privileges, uses of exposed credentials, or
* communication with malicious IPs, domains, or presence of malware on your Amazon EC2 instances and container
* workloads. For example, GuardDuty can detect compromised EC2 instances and container workloads serving malware, or
* mining bitcoin.
*
*
* GuardDuty also monitors Amazon Web Services account access behavior for signs of compromise, such as unauthorized
* infrastructure deployments like EC2 instances deployed in a Region that has never been used, or unusual API calls
* like a password policy change to reduce password strength.
*
*
* GuardDuty informs you about the status of your Amazon Web Services environment by producing security findings that
* you can view in the GuardDuty console or through Amazon EventBridge. For more information, see the Amazon GuardDuty User Guide .
*
*/
@ThreadSafe
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AmazonGuardDutyAsyncClient extends AmazonGuardDutyClient implements AmazonGuardDutyAsync {
private static final int DEFAULT_THREAD_POOL_SIZE = 50;
private final java.util.concurrent.ExecutorService executorService;
public static AmazonGuardDutyAsyncClientBuilder asyncBuilder() {
return AmazonGuardDutyAsyncClientBuilder.standard();
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon GuardDuty using the specified
* parameters.
*
* @param asyncClientParams
* Object providing client parameters.
*/
AmazonGuardDutyAsyncClient(AwsAsyncClientParams asyncClientParams) {
this(asyncClientParams, false);
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon GuardDuty using the specified
* parameters.
*
* @param asyncClientParams
* Object providing client parameters.
* @param endpointDiscoveryEnabled
* true will enable endpoint discovery if the service supports it.
*/
AmazonGuardDutyAsyncClient(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 acceptAdministratorInvitationAsync(AcceptAdministratorInvitationRequest request) {
return acceptAdministratorInvitationAsync(request, null);
}
@Override
public java.util.concurrent.Future acceptAdministratorInvitationAsync(
final AcceptAdministratorInvitationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AcceptAdministratorInvitationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AcceptAdministratorInvitationResult call() throws Exception {
AcceptAdministratorInvitationResult result = null;
try {
result = executeAcceptAdministratorInvitation(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
@Deprecated
public java.util.concurrent.Future acceptInvitationAsync(AcceptInvitationRequest request) {
return acceptInvitationAsync(request, null);
}
@Override
@Deprecated
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 archiveFindingsAsync(ArchiveFindingsRequest request) {
return archiveFindingsAsync(request, null);
}
@Override
public java.util.concurrent.Future archiveFindingsAsync(final ArchiveFindingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ArchiveFindingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ArchiveFindingsResult call() throws Exception {
ArchiveFindingsResult result = null;
try {
result = executeArchiveFindings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createDetectorAsync(CreateDetectorRequest request) {
return createDetectorAsync(request, null);
}
@Override
public java.util.concurrent.Future createDetectorAsync(final CreateDetectorRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateDetectorRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateDetectorResult call() throws Exception {
CreateDetectorResult result = null;
try {
result = executeCreateDetector(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createFilterAsync(CreateFilterRequest request) {
return createFilterAsync(request, null);
}
@Override
public java.util.concurrent.Future createFilterAsync(final CreateFilterRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateFilterRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateFilterResult call() throws Exception {
CreateFilterResult result = null;
try {
result = executeCreateFilter(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createIPSetAsync(CreateIPSetRequest request) {
return createIPSetAsync(request, null);
}
@Override
public java.util.concurrent.Future createIPSetAsync(final CreateIPSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateIPSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateIPSetResult call() throws Exception {
CreateIPSetResult result = null;
try {
result = executeCreateIPSet(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createMembersAsync(CreateMembersRequest request) {
return createMembersAsync(request, null);
}
@Override
public java.util.concurrent.Future createMembersAsync(final CreateMembersRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateMembersRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateMembersResult call() throws Exception {
CreateMembersResult result = null;
try {
result = executeCreateMembers(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createPublishingDestinationAsync(CreatePublishingDestinationRequest request) {
return createPublishingDestinationAsync(request, null);
}
@Override
public java.util.concurrent.Future createPublishingDestinationAsync(final CreatePublishingDestinationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreatePublishingDestinationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreatePublishingDestinationResult call() throws Exception {
CreatePublishingDestinationResult result = null;
try {
result = executeCreatePublishingDestination(finalRequest);
} catch (Exception 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 createThreatIntelSetAsync(CreateThreatIntelSetRequest request) {
return createThreatIntelSetAsync(request, null);
}
@Override
public java.util.concurrent.Future createThreatIntelSetAsync(final CreateThreatIntelSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateThreatIntelSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateThreatIntelSetResult call() throws Exception {
CreateThreatIntelSetResult result = null;
try {
result = executeCreateThreatIntelSet(finalRequest);
} catch (Exception 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 deleteDetectorAsync(DeleteDetectorRequest request) {
return deleteDetectorAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteDetectorAsync(final DeleteDetectorRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteDetectorRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteDetectorResult call() throws Exception {
DeleteDetectorResult result = null;
try {
result = executeDeleteDetector(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteFilterAsync(DeleteFilterRequest request) {
return deleteFilterAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteFilterAsync(final DeleteFilterRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteFilterRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteFilterResult call() throws Exception {
DeleteFilterResult result = null;
try {
result = executeDeleteFilter(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteIPSetAsync(DeleteIPSetRequest request) {
return deleteIPSetAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteIPSetAsync(final DeleteIPSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteIPSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteIPSetResult call() throws Exception {
DeleteIPSetResult result = null;
try {
result = executeDeleteIPSet(finalRequest);
} catch (Exception 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 deleteMembersAsync(DeleteMembersRequest request) {
return deleteMembersAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteMembersAsync(final DeleteMembersRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteMembersRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteMembersResult call() throws Exception {
DeleteMembersResult result = null;
try {
result = executeDeleteMembers(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deletePublishingDestinationAsync(DeletePublishingDestinationRequest request) {
return deletePublishingDestinationAsync(request, null);
}
@Override
public java.util.concurrent.Future deletePublishingDestinationAsync(final DeletePublishingDestinationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeletePublishingDestinationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeletePublishingDestinationResult call() throws Exception {
DeletePublishingDestinationResult result = null;
try {
result = executeDeletePublishingDestination(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteThreatIntelSetAsync(DeleteThreatIntelSetRequest request) {
return deleteThreatIntelSetAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteThreatIntelSetAsync(final DeleteThreatIntelSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteThreatIntelSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteThreatIntelSetResult call() throws Exception {
DeleteThreatIntelSetResult result = null;
try {
result = executeDeleteThreatIntelSet(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeMalwareScansAsync(DescribeMalwareScansRequest request) {
return describeMalwareScansAsync(request, null);
}
@Override
public java.util.concurrent.Future describeMalwareScansAsync(final DescribeMalwareScansRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeMalwareScansRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeMalwareScansResult call() throws Exception {
DescribeMalwareScansResult result = null;
try {
result = executeDescribeMalwareScans(finalRequest);
} catch (Exception 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 describePublishingDestinationAsync(DescribePublishingDestinationRequest request) {
return describePublishingDestinationAsync(request, null);
}
@Override
public java.util.concurrent.Future describePublishingDestinationAsync(
final DescribePublishingDestinationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribePublishingDestinationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribePublishingDestinationResult call() throws Exception {
DescribePublishingDestinationResult result = null;
try {
result = executeDescribePublishingDestination(finalRequest);
} catch (Exception 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
@Deprecated
public java.util.concurrent.Future disassociateFromMasterAccountAsync(DisassociateFromMasterAccountRequest request) {
return disassociateFromMasterAccountAsync(request, null);
}
@Override
@Deprecated
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 disassociateMembersAsync(DisassociateMembersRequest request) {
return disassociateMembersAsync(request, null);
}
@Override
public java.util.concurrent.Future disassociateMembersAsync(final DisassociateMembersRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DisassociateMembersRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DisassociateMembersResult call() throws Exception {
DisassociateMembersResult result = null;
try {
result = executeDisassociateMembers(finalRequest);
} catch (Exception 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 getDetectorAsync(GetDetectorRequest request) {
return getDetectorAsync(request, null);
}
@Override
public java.util.concurrent.Future getDetectorAsync(final GetDetectorRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetDetectorRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetDetectorResult call() throws Exception {
GetDetectorResult result = null;
try {
result = executeGetDetector(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getFilterAsync(GetFilterRequest request) {
return getFilterAsync(request, null);
}
@Override
public java.util.concurrent.Future getFilterAsync(final GetFilterRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetFilterRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetFilterResult call() throws Exception {
GetFilterResult result = null;
try {
result = executeGetFilter(finalRequest);
} catch (Exception 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 getFindingsStatisticsAsync(GetFindingsStatisticsRequest request) {
return getFindingsStatisticsAsync(request, null);
}
@Override
public java.util.concurrent.Future getFindingsStatisticsAsync(final GetFindingsStatisticsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetFindingsStatisticsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetFindingsStatisticsResult call() throws Exception {
GetFindingsStatisticsResult result = null;
try {
result = executeGetFindingsStatistics(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getIPSetAsync(GetIPSetRequest request) {
return getIPSetAsync(request, null);
}
@Override
public java.util.concurrent.Future getIPSetAsync(final GetIPSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetIPSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetIPSetResult call() throws Exception {
GetIPSetResult result = null;
try {
result = executeGetIPSet(finalRequest);
} catch (Exception 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 getMalwareScanSettingsAsync(GetMalwareScanSettingsRequest request) {
return getMalwareScanSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future getMalwareScanSettingsAsync(final GetMalwareScanSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetMalwareScanSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetMalwareScanSettingsResult call() throws Exception {
GetMalwareScanSettingsResult result = null;
try {
result = executeGetMalwareScanSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
@Deprecated
public java.util.concurrent.Future getMasterAccountAsync(GetMasterAccountRequest request) {
return getMasterAccountAsync(request, null);
}
@Override
@Deprecated
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 getMemberDetectorsAsync(GetMemberDetectorsRequest request) {
return getMemberDetectorsAsync(request, null);
}
@Override
public java.util.concurrent.Future getMemberDetectorsAsync(final GetMemberDetectorsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetMemberDetectorsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetMemberDetectorsResult call() throws Exception {
GetMemberDetectorsResult result = null;
try {
result = executeGetMemberDetectors(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getMembersAsync(GetMembersRequest request) {
return getMembersAsync(request, null);
}
@Override
public java.util.concurrent.Future getMembersAsync(final GetMembersRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetMembersRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetMembersResult call() throws Exception {
GetMembersResult result = null;
try {
result = executeGetMembers(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getRemainingFreeTrialDaysAsync(GetRemainingFreeTrialDaysRequest request) {
return getRemainingFreeTrialDaysAsync(request, null);
}
@Override
public java.util.concurrent.Future getRemainingFreeTrialDaysAsync(final GetRemainingFreeTrialDaysRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetRemainingFreeTrialDaysRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetRemainingFreeTrialDaysResult call() throws Exception {
GetRemainingFreeTrialDaysResult result = null;
try {
result = executeGetRemainingFreeTrialDays(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getThreatIntelSetAsync(GetThreatIntelSetRequest request) {
return getThreatIntelSetAsync(request, null);
}
@Override
public java.util.concurrent.Future getThreatIntelSetAsync(final GetThreatIntelSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetThreatIntelSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetThreatIntelSetResult call() throws Exception {
GetThreatIntelSetResult result = null;
try {
result = executeGetThreatIntelSet(finalRequest);
} catch (Exception 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 inviteMembersAsync(InviteMembersRequest request) {
return inviteMembersAsync(request, null);
}
@Override
public java.util.concurrent.Future inviteMembersAsync(final InviteMembersRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final InviteMembersRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public InviteMembersResult call() throws Exception {
InviteMembersResult result = null;
try {
result = executeInviteMembers(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listDetectorsAsync(ListDetectorsRequest request) {
return listDetectorsAsync(request, null);
}
@Override
public java.util.concurrent.Future listDetectorsAsync(final ListDetectorsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListDetectorsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListDetectorsResult call() throws Exception {
ListDetectorsResult result = null;
try {
result = executeListDetectors(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listFiltersAsync(ListFiltersRequest request) {
return listFiltersAsync(request, null);
}
@Override
public java.util.concurrent.Future listFiltersAsync(final ListFiltersRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListFiltersRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListFiltersResult call() throws Exception {
ListFiltersResult result = null;
try {
result = executeListFilters(finalRequest);
} catch (Exception 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 listIPSetsAsync(ListIPSetsRequest request) {
return listIPSetsAsync(request, null);
}
@Override
public java.util.concurrent.Future listIPSetsAsync(final ListIPSetsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListIPSetsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListIPSetsResult call() throws Exception {
ListIPSetsResult result = null;
try {
result = executeListIPSets(finalRequest);
} catch (Exception 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 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 listPublishingDestinationsAsync(ListPublishingDestinationsRequest request) {
return listPublishingDestinationsAsync(request, null);
}
@Override
public java.util.concurrent.Future listPublishingDestinationsAsync(final ListPublishingDestinationsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListPublishingDestinationsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListPublishingDestinationsResult call() throws Exception {
ListPublishingDestinationsResult result = null;
try {
result = executeListPublishingDestinations(finalRequest);
} catch (Exception 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 listThreatIntelSetsAsync(ListThreatIntelSetsRequest request) {
return listThreatIntelSetsAsync(request, null);
}
@Override
public java.util.concurrent.Future listThreatIntelSetsAsync(final ListThreatIntelSetsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListThreatIntelSetsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListThreatIntelSetsResult call() throws Exception {
ListThreatIntelSetsResult result = null;
try {
result = executeListThreatIntelSets(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future startMonitoringMembersAsync(StartMonitoringMembersRequest request) {
return startMonitoringMembersAsync(request, null);
}
@Override
public java.util.concurrent.Future startMonitoringMembersAsync(final StartMonitoringMembersRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final StartMonitoringMembersRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public StartMonitoringMembersResult call() throws Exception {
StartMonitoringMembersResult result = null;
try {
result = executeStartMonitoringMembers(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future stopMonitoringMembersAsync(StopMonitoringMembersRequest request) {
return stopMonitoringMembersAsync(request, null);
}
@Override
public java.util.concurrent.Future stopMonitoringMembersAsync(final StopMonitoringMembersRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final StopMonitoringMembersRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public StopMonitoringMembersResult call() throws Exception {
StopMonitoringMembersResult result = null;
try {
result = executeStopMonitoringMembers(finalRequest);
} catch (Exception 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 unarchiveFindingsAsync(UnarchiveFindingsRequest request) {
return unarchiveFindingsAsync(request, null);
}
@Override
public java.util.concurrent.Future unarchiveFindingsAsync(final UnarchiveFindingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UnarchiveFindingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UnarchiveFindingsResult call() throws Exception {
UnarchiveFindingsResult result = null;
try {
result = executeUnarchiveFindings(finalRequest);
} catch (Exception 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 updateDetectorAsync(UpdateDetectorRequest request) {
return updateDetectorAsync(request, null);
}
@Override
public java.util.concurrent.Future updateDetectorAsync(final UpdateDetectorRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateDetectorRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateDetectorResult call() throws Exception {
UpdateDetectorResult result = null;
try {
result = executeUpdateDetector(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateFilterAsync(UpdateFilterRequest request) {
return updateFilterAsync(request, null);
}
@Override
public java.util.concurrent.Future updateFilterAsync(final UpdateFilterRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateFilterRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateFilterResult call() throws Exception {
UpdateFilterResult result = null;
try {
result = executeUpdateFilter(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateFindingsFeedbackAsync(UpdateFindingsFeedbackRequest request) {
return updateFindingsFeedbackAsync(request, null);
}
@Override
public java.util.concurrent.Future updateFindingsFeedbackAsync(final UpdateFindingsFeedbackRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateFindingsFeedbackRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateFindingsFeedbackResult call() throws Exception {
UpdateFindingsFeedbackResult result = null;
try {
result = executeUpdateFindingsFeedback(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateIPSetAsync(UpdateIPSetRequest request) {
return updateIPSetAsync(request, null);
}
@Override
public java.util.concurrent.Future updateIPSetAsync(final UpdateIPSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateIPSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateIPSetResult call() throws Exception {
UpdateIPSetResult result = null;
try {
result = executeUpdateIPSet(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateMalwareScanSettingsAsync(UpdateMalwareScanSettingsRequest request) {
return updateMalwareScanSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future updateMalwareScanSettingsAsync(final UpdateMalwareScanSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateMalwareScanSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateMalwareScanSettingsResult call() throws Exception {
UpdateMalwareScanSettingsResult result = null;
try {
result = executeUpdateMalwareScanSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateMemberDetectorsAsync(UpdateMemberDetectorsRequest request) {
return updateMemberDetectorsAsync(request, null);
}
@Override
public java.util.concurrent.Future updateMemberDetectorsAsync(final UpdateMemberDetectorsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateMemberDetectorsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateMemberDetectorsResult call() throws Exception {
UpdateMemberDetectorsResult result = null;
try {
result = executeUpdateMemberDetectors(finalRequest);
} catch (Exception 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