com.amazonaws.services.workspacesweb.AmazonWorkSpacesWebAsyncClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-workspacesweb Show documentation
Show all versions of aws-java-sdk-workspacesweb Show documentation
The AWS Java SDK for Amazon WorkSpaces Web module holds the client classes that are used for communicating with Amazon WorkSpaces Web Service
/*
* 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.workspacesweb;
import javax.annotation.Generated;
import com.amazonaws.services.workspacesweb.model.*;
import com.amazonaws.client.AwsAsyncClientParams;
import com.amazonaws.annotation.ThreadSafe;
import java.util.concurrent.ExecutorService;
/**
* Client for accessing Amazon WorkSpaces Web 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.
*
*
* WorkSpaces Web is a low cost, fully managed WorkSpace built specifically to facilitate secure, web-based workloads.
* WorkSpaces Web makes it easy for customers to safely provide their employees with access to internal websites and
* SaaS web applications without the administrative burden of appliances or specialized client software. WorkSpaces Web
* provides simple policy tools tailored for user interactions, while offloading common tasks like capacity management,
* scaling, and maintaining browser images.
*
*/
@ThreadSafe
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AmazonWorkSpacesWebAsyncClient extends AmazonWorkSpacesWebClient implements AmazonWorkSpacesWebAsync {
private static final int DEFAULT_THREAD_POOL_SIZE = 50;
private final java.util.concurrent.ExecutorService executorService;
public static AmazonWorkSpacesWebAsyncClientBuilder asyncBuilder() {
return AmazonWorkSpacesWebAsyncClientBuilder.standard();
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon WorkSpaces Web using the specified
* parameters.
*
* @param asyncClientParams
* Object providing client parameters.
*/
AmazonWorkSpacesWebAsyncClient(AwsAsyncClientParams asyncClientParams) {
this(asyncClientParams, false);
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon WorkSpaces Web using the specified
* parameters.
*
* @param asyncClientParams
* Object providing client parameters.
* @param endpointDiscoveryEnabled
* true will enable endpoint discovery if the service supports it.
*/
AmazonWorkSpacesWebAsyncClient(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 associateBrowserSettingsAsync(AssociateBrowserSettingsRequest request) {
return associateBrowserSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future associateBrowserSettingsAsync(final AssociateBrowserSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AssociateBrowserSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AssociateBrowserSettingsResult call() throws Exception {
AssociateBrowserSettingsResult result = null;
try {
result = executeAssociateBrowserSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future associateIpAccessSettingsAsync(AssociateIpAccessSettingsRequest request) {
return associateIpAccessSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future associateIpAccessSettingsAsync(final AssociateIpAccessSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AssociateIpAccessSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AssociateIpAccessSettingsResult call() throws Exception {
AssociateIpAccessSettingsResult result = null;
try {
result = executeAssociateIpAccessSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future associateNetworkSettingsAsync(AssociateNetworkSettingsRequest request) {
return associateNetworkSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future associateNetworkSettingsAsync(final AssociateNetworkSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AssociateNetworkSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AssociateNetworkSettingsResult call() throws Exception {
AssociateNetworkSettingsResult result = null;
try {
result = executeAssociateNetworkSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future associateTrustStoreAsync(AssociateTrustStoreRequest request) {
return associateTrustStoreAsync(request, null);
}
@Override
public java.util.concurrent.Future associateTrustStoreAsync(final AssociateTrustStoreRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AssociateTrustStoreRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AssociateTrustStoreResult call() throws Exception {
AssociateTrustStoreResult result = null;
try {
result = executeAssociateTrustStore(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future associateUserAccessLoggingSettingsAsync(
AssociateUserAccessLoggingSettingsRequest request) {
return associateUserAccessLoggingSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future associateUserAccessLoggingSettingsAsync(
final AssociateUserAccessLoggingSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AssociateUserAccessLoggingSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AssociateUserAccessLoggingSettingsResult call() throws Exception {
AssociateUserAccessLoggingSettingsResult result = null;
try {
result = executeAssociateUserAccessLoggingSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future associateUserSettingsAsync(AssociateUserSettingsRequest request) {
return associateUserSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future associateUserSettingsAsync(final AssociateUserSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AssociateUserSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AssociateUserSettingsResult call() throws Exception {
AssociateUserSettingsResult result = null;
try {
result = executeAssociateUserSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createBrowserSettingsAsync(CreateBrowserSettingsRequest request) {
return createBrowserSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future createBrowserSettingsAsync(final CreateBrowserSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateBrowserSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateBrowserSettingsResult call() throws Exception {
CreateBrowserSettingsResult result = null;
try {
result = executeCreateBrowserSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createIdentityProviderAsync(CreateIdentityProviderRequest request) {
return createIdentityProviderAsync(request, null);
}
@Override
public java.util.concurrent.Future createIdentityProviderAsync(final CreateIdentityProviderRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateIdentityProviderRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateIdentityProviderResult call() throws Exception {
CreateIdentityProviderResult result = null;
try {
result = executeCreateIdentityProvider(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createIpAccessSettingsAsync(CreateIpAccessSettingsRequest request) {
return createIpAccessSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future createIpAccessSettingsAsync(final CreateIpAccessSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateIpAccessSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateIpAccessSettingsResult call() throws Exception {
CreateIpAccessSettingsResult result = null;
try {
result = executeCreateIpAccessSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createNetworkSettingsAsync(CreateNetworkSettingsRequest request) {
return createNetworkSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future createNetworkSettingsAsync(final CreateNetworkSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateNetworkSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateNetworkSettingsResult call() throws Exception {
CreateNetworkSettingsResult result = null;
try {
result = executeCreateNetworkSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createPortalAsync(CreatePortalRequest request) {
return createPortalAsync(request, null);
}
@Override
public java.util.concurrent.Future createPortalAsync(final CreatePortalRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreatePortalRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreatePortalResult call() throws Exception {
CreatePortalResult result = null;
try {
result = executeCreatePortal(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createTrustStoreAsync(CreateTrustStoreRequest request) {
return createTrustStoreAsync(request, null);
}
@Override
public java.util.concurrent.Future createTrustStoreAsync(final CreateTrustStoreRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateTrustStoreRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateTrustStoreResult call() throws Exception {
CreateTrustStoreResult result = null;
try {
result = executeCreateTrustStore(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createUserAccessLoggingSettingsAsync(
CreateUserAccessLoggingSettingsRequest request) {
return createUserAccessLoggingSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future createUserAccessLoggingSettingsAsync(
final CreateUserAccessLoggingSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateUserAccessLoggingSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateUserAccessLoggingSettingsResult call() throws Exception {
CreateUserAccessLoggingSettingsResult result = null;
try {
result = executeCreateUserAccessLoggingSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createUserSettingsAsync(CreateUserSettingsRequest request) {
return createUserSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future createUserSettingsAsync(final CreateUserSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateUserSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateUserSettingsResult call() throws Exception {
CreateUserSettingsResult result = null;
try {
result = executeCreateUserSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteBrowserSettingsAsync(DeleteBrowserSettingsRequest request) {
return deleteBrowserSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteBrowserSettingsAsync(final DeleteBrowserSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteBrowserSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteBrowserSettingsResult call() throws Exception {
DeleteBrowserSettingsResult result = null;
try {
result = executeDeleteBrowserSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteIdentityProviderAsync(DeleteIdentityProviderRequest request) {
return deleteIdentityProviderAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteIdentityProviderAsync(final DeleteIdentityProviderRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteIdentityProviderRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteIdentityProviderResult call() throws Exception {
DeleteIdentityProviderResult result = null;
try {
result = executeDeleteIdentityProvider(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteIpAccessSettingsAsync(DeleteIpAccessSettingsRequest request) {
return deleteIpAccessSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteIpAccessSettingsAsync(final DeleteIpAccessSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteIpAccessSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteIpAccessSettingsResult call() throws Exception {
DeleteIpAccessSettingsResult result = null;
try {
result = executeDeleteIpAccessSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteNetworkSettingsAsync(DeleteNetworkSettingsRequest request) {
return deleteNetworkSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteNetworkSettingsAsync(final DeleteNetworkSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteNetworkSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteNetworkSettingsResult call() throws Exception {
DeleteNetworkSettingsResult result = null;
try {
result = executeDeleteNetworkSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deletePortalAsync(DeletePortalRequest request) {
return deletePortalAsync(request, null);
}
@Override
public java.util.concurrent.Future deletePortalAsync(final DeletePortalRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeletePortalRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeletePortalResult call() throws Exception {
DeletePortalResult result = null;
try {
result = executeDeletePortal(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteTrustStoreAsync(DeleteTrustStoreRequest request) {
return deleteTrustStoreAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteTrustStoreAsync(final DeleteTrustStoreRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteTrustStoreRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteTrustStoreResult call() throws Exception {
DeleteTrustStoreResult result = null;
try {
result = executeDeleteTrustStore(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteUserAccessLoggingSettingsAsync(
DeleteUserAccessLoggingSettingsRequest request) {
return deleteUserAccessLoggingSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteUserAccessLoggingSettingsAsync(
final DeleteUserAccessLoggingSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteUserAccessLoggingSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteUserAccessLoggingSettingsResult call() throws Exception {
DeleteUserAccessLoggingSettingsResult result = null;
try {
result = executeDeleteUserAccessLoggingSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteUserSettingsAsync(DeleteUserSettingsRequest request) {
return deleteUserSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteUserSettingsAsync(final DeleteUserSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteUserSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteUserSettingsResult call() throws Exception {
DeleteUserSettingsResult result = null;
try {
result = executeDeleteUserSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future disassociateBrowserSettingsAsync(DisassociateBrowserSettingsRequest request) {
return disassociateBrowserSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future disassociateBrowserSettingsAsync(final DisassociateBrowserSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DisassociateBrowserSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DisassociateBrowserSettingsResult call() throws Exception {
DisassociateBrowserSettingsResult result = null;
try {
result = executeDisassociateBrowserSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future disassociateIpAccessSettingsAsync(DisassociateIpAccessSettingsRequest request) {
return disassociateIpAccessSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future disassociateIpAccessSettingsAsync(final DisassociateIpAccessSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DisassociateIpAccessSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DisassociateIpAccessSettingsResult call() throws Exception {
DisassociateIpAccessSettingsResult result = null;
try {
result = executeDisassociateIpAccessSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future disassociateNetworkSettingsAsync(DisassociateNetworkSettingsRequest request) {
return disassociateNetworkSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future disassociateNetworkSettingsAsync(final DisassociateNetworkSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DisassociateNetworkSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DisassociateNetworkSettingsResult call() throws Exception {
DisassociateNetworkSettingsResult result = null;
try {
result = executeDisassociateNetworkSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future disassociateTrustStoreAsync(DisassociateTrustStoreRequest request) {
return disassociateTrustStoreAsync(request, null);
}
@Override
public java.util.concurrent.Future disassociateTrustStoreAsync(final DisassociateTrustStoreRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DisassociateTrustStoreRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DisassociateTrustStoreResult call() throws Exception {
DisassociateTrustStoreResult result = null;
try {
result = executeDisassociateTrustStore(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future disassociateUserAccessLoggingSettingsAsync(
DisassociateUserAccessLoggingSettingsRequest request) {
return disassociateUserAccessLoggingSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future disassociateUserAccessLoggingSettingsAsync(
final DisassociateUserAccessLoggingSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DisassociateUserAccessLoggingSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DisassociateUserAccessLoggingSettingsResult call() throws Exception {
DisassociateUserAccessLoggingSettingsResult result = null;
try {
result = executeDisassociateUserAccessLoggingSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future disassociateUserSettingsAsync(DisassociateUserSettingsRequest request) {
return disassociateUserSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future disassociateUserSettingsAsync(final DisassociateUserSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DisassociateUserSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DisassociateUserSettingsResult call() throws Exception {
DisassociateUserSettingsResult result = null;
try {
result = executeDisassociateUserSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getBrowserSettingsAsync(GetBrowserSettingsRequest request) {
return getBrowserSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future getBrowserSettingsAsync(final GetBrowserSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetBrowserSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetBrowserSettingsResult call() throws Exception {
GetBrowserSettingsResult result = null;
try {
result = executeGetBrowserSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getIdentityProviderAsync(GetIdentityProviderRequest request) {
return getIdentityProviderAsync(request, null);
}
@Override
public java.util.concurrent.Future getIdentityProviderAsync(final GetIdentityProviderRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetIdentityProviderRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetIdentityProviderResult call() throws Exception {
GetIdentityProviderResult result = null;
try {
result = executeGetIdentityProvider(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getIpAccessSettingsAsync(GetIpAccessSettingsRequest request) {
return getIpAccessSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future getIpAccessSettingsAsync(final GetIpAccessSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetIpAccessSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetIpAccessSettingsResult call() throws Exception {
GetIpAccessSettingsResult result = null;
try {
result = executeGetIpAccessSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getNetworkSettingsAsync(GetNetworkSettingsRequest request) {
return getNetworkSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future getNetworkSettingsAsync(final GetNetworkSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetNetworkSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetNetworkSettingsResult call() throws Exception {
GetNetworkSettingsResult result = null;
try {
result = executeGetNetworkSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getPortalAsync(GetPortalRequest request) {
return getPortalAsync(request, null);
}
@Override
public java.util.concurrent.Future getPortalAsync(final GetPortalRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetPortalRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetPortalResult call() throws Exception {
GetPortalResult result = null;
try {
result = executeGetPortal(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getPortalServiceProviderMetadataAsync(
GetPortalServiceProviderMetadataRequest request) {
return getPortalServiceProviderMetadataAsync(request, null);
}
@Override
public java.util.concurrent.Future getPortalServiceProviderMetadataAsync(
final GetPortalServiceProviderMetadataRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetPortalServiceProviderMetadataRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetPortalServiceProviderMetadataResult call() throws Exception {
GetPortalServiceProviderMetadataResult result = null;
try {
result = executeGetPortalServiceProviderMetadata(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getTrustStoreAsync(GetTrustStoreRequest request) {
return getTrustStoreAsync(request, null);
}
@Override
public java.util.concurrent.Future getTrustStoreAsync(final GetTrustStoreRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetTrustStoreRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetTrustStoreResult call() throws Exception {
GetTrustStoreResult result = null;
try {
result = executeGetTrustStore(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getTrustStoreCertificateAsync(GetTrustStoreCertificateRequest request) {
return getTrustStoreCertificateAsync(request, null);
}
@Override
public java.util.concurrent.Future getTrustStoreCertificateAsync(final GetTrustStoreCertificateRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetTrustStoreCertificateRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetTrustStoreCertificateResult call() throws Exception {
GetTrustStoreCertificateResult result = null;
try {
result = executeGetTrustStoreCertificate(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getUserAccessLoggingSettingsAsync(GetUserAccessLoggingSettingsRequest request) {
return getUserAccessLoggingSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future getUserAccessLoggingSettingsAsync(final GetUserAccessLoggingSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetUserAccessLoggingSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetUserAccessLoggingSettingsResult call() throws Exception {
GetUserAccessLoggingSettingsResult result = null;
try {
result = executeGetUserAccessLoggingSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getUserSettingsAsync(GetUserSettingsRequest request) {
return getUserSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future getUserSettingsAsync(final GetUserSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetUserSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetUserSettingsResult call() throws Exception {
GetUserSettingsResult result = null;
try {
result = executeGetUserSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listBrowserSettingsAsync(ListBrowserSettingsRequest request) {
return listBrowserSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future listBrowserSettingsAsync(final ListBrowserSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListBrowserSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListBrowserSettingsResult call() throws Exception {
ListBrowserSettingsResult result = null;
try {
result = executeListBrowserSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listIdentityProvidersAsync(ListIdentityProvidersRequest request) {
return listIdentityProvidersAsync(request, null);
}
@Override
public java.util.concurrent.Future listIdentityProvidersAsync(final ListIdentityProvidersRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListIdentityProvidersRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListIdentityProvidersResult call() throws Exception {
ListIdentityProvidersResult result = null;
try {
result = executeListIdentityProviders(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listIpAccessSettingsAsync(ListIpAccessSettingsRequest request) {
return listIpAccessSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future listIpAccessSettingsAsync(final ListIpAccessSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListIpAccessSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListIpAccessSettingsResult call() throws Exception {
ListIpAccessSettingsResult result = null;
try {
result = executeListIpAccessSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listNetworkSettingsAsync(ListNetworkSettingsRequest request) {
return listNetworkSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future listNetworkSettingsAsync(final ListNetworkSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListNetworkSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListNetworkSettingsResult call() throws Exception {
ListNetworkSettingsResult result = null;
try {
result = executeListNetworkSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listPortalsAsync(ListPortalsRequest request) {
return listPortalsAsync(request, null);
}
@Override
public java.util.concurrent.Future listPortalsAsync(final ListPortalsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListPortalsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListPortalsResult call() throws Exception {
ListPortalsResult result = null;
try {
result = executeListPortals(finalRequest);
} catch (Exception 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 listTrustStoreCertificatesAsync(ListTrustStoreCertificatesRequest request) {
return listTrustStoreCertificatesAsync(request, null);
}
@Override
public java.util.concurrent.Future listTrustStoreCertificatesAsync(final ListTrustStoreCertificatesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListTrustStoreCertificatesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListTrustStoreCertificatesResult call() throws Exception {
ListTrustStoreCertificatesResult result = null;
try {
result = executeListTrustStoreCertificates(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listTrustStoresAsync(ListTrustStoresRequest request) {
return listTrustStoresAsync(request, null);
}
@Override
public java.util.concurrent.Future listTrustStoresAsync(final ListTrustStoresRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListTrustStoresRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListTrustStoresResult call() throws Exception {
ListTrustStoresResult result = null;
try {
result = executeListTrustStores(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listUserAccessLoggingSettingsAsync(ListUserAccessLoggingSettingsRequest request) {
return listUserAccessLoggingSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future listUserAccessLoggingSettingsAsync(
final ListUserAccessLoggingSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListUserAccessLoggingSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListUserAccessLoggingSettingsResult call() throws Exception {
ListUserAccessLoggingSettingsResult result = null;
try {
result = executeListUserAccessLoggingSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listUserSettingsAsync(ListUserSettingsRequest request) {
return listUserSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future listUserSettingsAsync(final ListUserSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListUserSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListUserSettingsResult call() throws Exception {
ListUserSettingsResult result = null;
try {
result = executeListUserSettings(finalRequest);
} catch (Exception 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 updateBrowserSettingsAsync(UpdateBrowserSettingsRequest request) {
return updateBrowserSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future updateBrowserSettingsAsync(final UpdateBrowserSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateBrowserSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateBrowserSettingsResult call() throws Exception {
UpdateBrowserSettingsResult result = null;
try {
result = executeUpdateBrowserSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateIdentityProviderAsync(UpdateIdentityProviderRequest request) {
return updateIdentityProviderAsync(request, null);
}
@Override
public java.util.concurrent.Future updateIdentityProviderAsync(final UpdateIdentityProviderRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateIdentityProviderRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateIdentityProviderResult call() throws Exception {
UpdateIdentityProviderResult result = null;
try {
result = executeUpdateIdentityProvider(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateIpAccessSettingsAsync(UpdateIpAccessSettingsRequest request) {
return updateIpAccessSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future updateIpAccessSettingsAsync(final UpdateIpAccessSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateIpAccessSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateIpAccessSettingsResult call() throws Exception {
UpdateIpAccessSettingsResult result = null;
try {
result = executeUpdateIpAccessSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateNetworkSettingsAsync(UpdateNetworkSettingsRequest request) {
return updateNetworkSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future updateNetworkSettingsAsync(final UpdateNetworkSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateNetworkSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateNetworkSettingsResult call() throws Exception {
UpdateNetworkSettingsResult result = null;
try {
result = executeUpdateNetworkSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updatePortalAsync(UpdatePortalRequest request) {
return updatePortalAsync(request, null);
}
@Override
public java.util.concurrent.Future updatePortalAsync(final UpdatePortalRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdatePortalRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdatePortalResult call() throws Exception {
UpdatePortalResult result = null;
try {
result = executeUpdatePortal(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateTrustStoreAsync(UpdateTrustStoreRequest request) {
return updateTrustStoreAsync(request, null);
}
@Override
public java.util.concurrent.Future updateTrustStoreAsync(final UpdateTrustStoreRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateTrustStoreRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateTrustStoreResult call() throws Exception {
UpdateTrustStoreResult result = null;
try {
result = executeUpdateTrustStore(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateUserAccessLoggingSettingsAsync(
UpdateUserAccessLoggingSettingsRequest request) {
return updateUserAccessLoggingSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future updateUserAccessLoggingSettingsAsync(
final UpdateUserAccessLoggingSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateUserAccessLoggingSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateUserAccessLoggingSettingsResult call() throws Exception {
UpdateUserAccessLoggingSettingsResult result = null;
try {
result = executeUpdateUserAccessLoggingSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateUserSettingsAsync(UpdateUserSettingsRequest request) {
return updateUserSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future updateUserSettingsAsync(final UpdateUserSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateUserSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateUserSettingsResult call() throws Exception {
UpdateUserSettingsResult result = null;
try {
result = executeUpdateUserSettings(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