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

com.amazonaws.services.servicecatalog.AWSServiceCatalogAsyncClient Maven / Gradle / Ivy

Go to download

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

The newest version!
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.servicecatalog;

import static java.util.concurrent.Executors.newFixedThreadPool;

import javax.annotation.Generated;

import com.amazonaws.services.servicecatalog.model.*;
import com.amazonaws.client.AwsAsyncClientParams;
import com.amazonaws.annotation.ThreadSafe;
import com.amazonaws.ClientConfiguration;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.AWSCredentialsProvider;
import java.util.concurrent.ExecutorService;
import com.amazonaws.auth.DefaultAWSCredentialsProviderChain;

/**
 * Client for accessing AWS Service Catalog 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.
 * 

* Service Catalog *

* Service Catalog enables organizations to create and manage * catalogs of IT services that are approved for Amazon Web Services. To get the most out of this documentation, you * should be familiar with the terminology discussed in Service Catalog * Concepts. *

*/ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AWSServiceCatalogAsyncClient extends AWSServiceCatalogClient implements AWSServiceCatalogAsync { private static final int DEFAULT_THREAD_POOL_SIZE = 50; private final java.util.concurrent.ExecutorService executorService; /** * Constructs a new asynchronous client to invoke service methods on AWS Service Catalog. A credentials provider * chain will be used that searches for credentials in this order: *
    *
  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • *
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • *
  • Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
  • *
  • Instance profile credentials delivered through the Amazon EC2 metadata service
  • *
*

* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default * maximum number of concurrent connections to the service). * * @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain * @see java.util.concurrent.Executors#newFixedThreadPool(int) * @deprecated use {@link AWSServiceCatalogAsyncClientBuilder#defaultClient()} */ @Deprecated public AWSServiceCatalogAsyncClient() { this(DefaultAWSCredentialsProviderChain.getInstance()); } /** * Constructs a new asynchronous client to invoke service methods on AWS Service Catalog. A credentials provider * chain will be used that searches for credentials in this order: *

    *
  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • *
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • *
  • Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
  • *
  • Instance profile credentials delivered through the Amazon EC2 metadata service
  • *
*

* Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the * maximum number of concurrent connections configured via {@code ClientConfiguration.getMaxConnections()}. * * @param clientConfiguration * The client configuration options controlling how this client connects to AWS Service Catalog (ex: proxy * settings, retry counts, etc). * * @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain * @see java.util.concurrent.Executors#newFixedThreadPool(int) * @deprecated use {@link AWSServiceCatalogAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} */ @Deprecated public AWSServiceCatalogAsyncClient(ClientConfiguration clientConfiguration) { this(DefaultAWSCredentialsProviderChain.getInstance(), clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections())); } /** * Constructs a new asynchronous client to invoke service methods on AWS Service Catalog using the specified AWS * account credentials. *

* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default * maximum number of concurrent connections to the service). * * @param awsCredentials * The AWS credentials (access key ID and secret key) to use when authenticating with AWS services. * @see java.util.concurrent.Executors#newFixedThreadPool(int) * @deprecated use {@link AWSServiceCatalogAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} */ @Deprecated public AWSServiceCatalogAsyncClient(AWSCredentials awsCredentials) { this(awsCredentials, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE)); } /** * Constructs a new asynchronous client to invoke service methods on AWS Service Catalog using the specified AWS * account credentials and executor service. Default client settings will be used. * * @param awsCredentials * The AWS credentials (access key ID and secret key) to use when authenticating with AWS services. * @param executorService * The executor service by which all asynchronous requests will be executed. * @deprecated use {@link AWSServiceCatalogAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and * {@link AWSServiceCatalogAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)} */ @Deprecated public AWSServiceCatalogAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService) { this(awsCredentials, configFactory.getConfig(), executorService); } /** * Constructs a new asynchronous client to invoke service methods on AWS Service Catalog using the specified AWS * account credentials, executor service, and client configuration options. * * @param awsCredentials * The AWS credentials (access key ID and secret key) to use when authenticating with AWS services. * @param clientConfiguration * Client configuration options (ex: max retry limit, proxy settings, etc). * @param executorService * The executor service by which all asynchronous requests will be executed. * @deprecated use {@link AWSServiceCatalogAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and * {@link AWSServiceCatalogAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and * {@link AWSServiceCatalogAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)} */ @Deprecated public AWSServiceCatalogAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) { super(awsCredentials, clientConfiguration); this.executorService = executorService; } /** * Constructs a new asynchronous client to invoke service methods on AWS Service Catalog using the specified AWS * account credentials provider. Default client settings will be used. *

* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default * maximum number of concurrent connections to the service). * * @param awsCredentialsProvider * The AWS credentials provider which will provide credentials to authenticate requests with AWS services. * @see java.util.concurrent.Executors#newFixedThreadPool(int) * @deprecated use {@link AWSServiceCatalogAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} */ @Deprecated public AWSServiceCatalogAsyncClient(AWSCredentialsProvider awsCredentialsProvider) { this(awsCredentialsProvider, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE)); } /** * Constructs a new asynchronous client to invoke service methods on AWS Service Catalog using the provided AWS * account credentials provider and client configuration options. *

* Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the * maximum number of concurrent connections configured via {@code ClientConfiguration.getMaxConnections()}. * * @param awsCredentialsProvider * The AWS credentials provider which will provide credentials to authenticate requests with AWS services. * @param clientConfiguration * Client configuration options (ex: max retry limit, proxy settings, etc). * * @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain * @see java.util.concurrent.Executors#newFixedThreadPool(int) * @deprecated use {@link AWSServiceCatalogAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and * {@link AWSServiceCatalogAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} */ @Deprecated public AWSServiceCatalogAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) { this(awsCredentialsProvider, clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections())); } /** * Constructs a new asynchronous client to invoke service methods on AWS Service Catalog using the specified AWS * account credentials provider and executor service. Default client settings will be used. * * @param awsCredentialsProvider * The AWS credentials provider which will provide credentials to authenticate requests with AWS services. * @param executorService * The executor service by which all asynchronous requests will be executed. * @deprecated use {@link AWSServiceCatalogAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and * {@link AWSServiceCatalogAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)} */ @Deprecated public AWSServiceCatalogAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) { this(awsCredentialsProvider, configFactory.getConfig(), executorService); } /** * Constructs a new asynchronous client to invoke service methods on AWS Service Catalog using the specified AWS * account credentials provider, executor service, and client configuration options. * * @param awsCredentialsProvider * The AWS credentials provider which will provide credentials to authenticate requests with AWS services. * @param clientConfiguration * Client configuration options (ex: max retry limit, proxy settings, etc). * @param executorService * The executor service by which all asynchronous requests will be executed. * @deprecated use {@link AWSServiceCatalogAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and * {@link AWSServiceCatalogAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and * {@link AWSServiceCatalogAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)} */ @Deprecated public AWSServiceCatalogAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService) { super(awsCredentialsProvider, clientConfiguration); this.executorService = executorService; } public static AWSServiceCatalogAsyncClientBuilder asyncBuilder() { return AWSServiceCatalogAsyncClientBuilder.standard(); } /** * Constructs a new asynchronous client to invoke service methods on AWS Service Catalog using the specified * parameters. * * @param asyncClientParams * Object providing client parameters. */ AWSServiceCatalogAsyncClient(AwsAsyncClientParams asyncClientParams) { this(asyncClientParams, false); } /** * Constructs a new asynchronous client to invoke service methods on AWS Service Catalog using the specified * parameters. * * @param asyncClientParams * Object providing client parameters. * @param endpointDiscoveryEnabled * true will enable endpoint discovery if the service supports it. */ AWSServiceCatalogAsyncClient(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 acceptPortfolioShareAsync(AcceptPortfolioShareRequest request) { return acceptPortfolioShareAsync(request, null); } @Override public java.util.concurrent.Future acceptPortfolioShareAsync(final AcceptPortfolioShareRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final AcceptPortfolioShareRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public AcceptPortfolioShareResult call() throws Exception { AcceptPortfolioShareResult result = null; try { result = executeAcceptPortfolioShare(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future associateBudgetWithResourceAsync(AssociateBudgetWithResourceRequest request) { return associateBudgetWithResourceAsync(request, null); } @Override public java.util.concurrent.Future associateBudgetWithResourceAsync(final AssociateBudgetWithResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final AssociateBudgetWithResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public AssociateBudgetWithResourceResult call() throws Exception { AssociateBudgetWithResourceResult result = null; try { result = executeAssociateBudgetWithResource(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future associatePrincipalWithPortfolioAsync( AssociatePrincipalWithPortfolioRequest request) { return associatePrincipalWithPortfolioAsync(request, null); } @Override public java.util.concurrent.Future associatePrincipalWithPortfolioAsync( final AssociatePrincipalWithPortfolioRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final AssociatePrincipalWithPortfolioRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public AssociatePrincipalWithPortfolioResult call() throws Exception { AssociatePrincipalWithPortfolioResult result = null; try { result = executeAssociatePrincipalWithPortfolio(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future associateProductWithPortfolioAsync(AssociateProductWithPortfolioRequest request) { return associateProductWithPortfolioAsync(request, null); } @Override public java.util.concurrent.Future associateProductWithPortfolioAsync( final AssociateProductWithPortfolioRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final AssociateProductWithPortfolioRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public AssociateProductWithPortfolioResult call() throws Exception { AssociateProductWithPortfolioResult result = null; try { result = executeAssociateProductWithPortfolio(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future associateServiceActionWithProvisioningArtifactAsync( AssociateServiceActionWithProvisioningArtifactRequest request) { return associateServiceActionWithProvisioningArtifactAsync(request, null); } @Override public java.util.concurrent.Future associateServiceActionWithProvisioningArtifactAsync( final AssociateServiceActionWithProvisioningArtifactRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final AssociateServiceActionWithProvisioningArtifactRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public AssociateServiceActionWithProvisioningArtifactResult call() throws Exception { AssociateServiceActionWithProvisioningArtifactResult result = null; try { result = executeAssociateServiceActionWithProvisioningArtifact(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future associateTagOptionWithResourceAsync(AssociateTagOptionWithResourceRequest request) { return associateTagOptionWithResourceAsync(request, null); } @Override public java.util.concurrent.Future associateTagOptionWithResourceAsync( final AssociateTagOptionWithResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final AssociateTagOptionWithResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public AssociateTagOptionWithResourceResult call() throws Exception { AssociateTagOptionWithResourceResult result = null; try { result = executeAssociateTagOptionWithResource(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future batchAssociateServiceActionWithProvisioningArtifactAsync( BatchAssociateServiceActionWithProvisioningArtifactRequest request) { return batchAssociateServiceActionWithProvisioningArtifactAsync(request, null); } @Override public java.util.concurrent.Future batchAssociateServiceActionWithProvisioningArtifactAsync( final BatchAssociateServiceActionWithProvisioningArtifactRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchAssociateServiceActionWithProvisioningArtifactRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchAssociateServiceActionWithProvisioningArtifactResult call() throws Exception { BatchAssociateServiceActionWithProvisioningArtifactResult result = null; try { result = executeBatchAssociateServiceActionWithProvisioningArtifact(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future batchDisassociateServiceActionFromProvisioningArtifactAsync( BatchDisassociateServiceActionFromProvisioningArtifactRequest request) { return batchDisassociateServiceActionFromProvisioningArtifactAsync(request, null); } @Override public java.util.concurrent.Future batchDisassociateServiceActionFromProvisioningArtifactAsync( final BatchDisassociateServiceActionFromProvisioningArtifactRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchDisassociateServiceActionFromProvisioningArtifactRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchDisassociateServiceActionFromProvisioningArtifactResult call() throws Exception { BatchDisassociateServiceActionFromProvisioningArtifactResult result = null; try { result = executeBatchDisassociateServiceActionFromProvisioningArtifact(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future copyProductAsync(CopyProductRequest request) { return copyProductAsync(request, null); } @Override public java.util.concurrent.Future copyProductAsync(final CopyProductRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CopyProductRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CopyProductResult call() throws Exception { CopyProductResult result = null; try { result = executeCopyProduct(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createConstraintAsync(CreateConstraintRequest request) { return createConstraintAsync(request, null); } @Override public java.util.concurrent.Future createConstraintAsync(final CreateConstraintRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateConstraintRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateConstraintResult call() throws Exception { CreateConstraintResult result = null; try { result = executeCreateConstraint(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createPortfolioAsync(CreatePortfolioRequest request) { return createPortfolioAsync(request, null); } @Override public java.util.concurrent.Future createPortfolioAsync(final CreatePortfolioRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreatePortfolioRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreatePortfolioResult call() throws Exception { CreatePortfolioResult result = null; try { result = executeCreatePortfolio(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createPortfolioShareAsync(CreatePortfolioShareRequest request) { return createPortfolioShareAsync(request, null); } @Override public java.util.concurrent.Future createPortfolioShareAsync(final CreatePortfolioShareRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreatePortfolioShareRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreatePortfolioShareResult call() throws Exception { CreatePortfolioShareResult result = null; try { result = executeCreatePortfolioShare(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createProductAsync(CreateProductRequest request) { return createProductAsync(request, null); } @Override public java.util.concurrent.Future createProductAsync(final CreateProductRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateProductRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateProductResult call() throws Exception { CreateProductResult result = null; try { result = executeCreateProduct(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createProvisionedProductPlanAsync(CreateProvisionedProductPlanRequest request) { return createProvisionedProductPlanAsync(request, null); } @Override public java.util.concurrent.Future createProvisionedProductPlanAsync(final CreateProvisionedProductPlanRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateProvisionedProductPlanRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateProvisionedProductPlanResult call() throws Exception { CreateProvisionedProductPlanResult result = null; try { result = executeCreateProvisionedProductPlan(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createProvisioningArtifactAsync(CreateProvisioningArtifactRequest request) { return createProvisioningArtifactAsync(request, null); } @Override public java.util.concurrent.Future createProvisioningArtifactAsync(final CreateProvisioningArtifactRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateProvisioningArtifactRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateProvisioningArtifactResult call() throws Exception { CreateProvisioningArtifactResult result = null; try { result = executeCreateProvisioningArtifact(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createServiceActionAsync(CreateServiceActionRequest request) { return createServiceActionAsync(request, null); } @Override public java.util.concurrent.Future createServiceActionAsync(final CreateServiceActionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateServiceActionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateServiceActionResult call() throws Exception { CreateServiceActionResult result = null; try { result = executeCreateServiceAction(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createTagOptionAsync(CreateTagOptionRequest request) { return createTagOptionAsync(request, null); } @Override public java.util.concurrent.Future createTagOptionAsync(final CreateTagOptionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateTagOptionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateTagOptionResult call() throws Exception { CreateTagOptionResult result = null; try { result = executeCreateTagOption(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteConstraintAsync(DeleteConstraintRequest request) { return deleteConstraintAsync(request, null); } @Override public java.util.concurrent.Future deleteConstraintAsync(final DeleteConstraintRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteConstraintRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteConstraintResult call() throws Exception { DeleteConstraintResult result = null; try { result = executeDeleteConstraint(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deletePortfolioAsync(DeletePortfolioRequest request) { return deletePortfolioAsync(request, null); } @Override public java.util.concurrent.Future deletePortfolioAsync(final DeletePortfolioRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeletePortfolioRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeletePortfolioResult call() throws Exception { DeletePortfolioResult result = null; try { result = executeDeletePortfolio(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deletePortfolioShareAsync(DeletePortfolioShareRequest request) { return deletePortfolioShareAsync(request, null); } @Override public java.util.concurrent.Future deletePortfolioShareAsync(final DeletePortfolioShareRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeletePortfolioShareRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeletePortfolioShareResult call() throws Exception { DeletePortfolioShareResult result = null; try { result = executeDeletePortfolioShare(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteProductAsync(DeleteProductRequest request) { return deleteProductAsync(request, null); } @Override public java.util.concurrent.Future deleteProductAsync(final DeleteProductRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteProductRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteProductResult call() throws Exception { DeleteProductResult result = null; try { result = executeDeleteProduct(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteProvisionedProductPlanAsync(DeleteProvisionedProductPlanRequest request) { return deleteProvisionedProductPlanAsync(request, null); } @Override public java.util.concurrent.Future deleteProvisionedProductPlanAsync(final DeleteProvisionedProductPlanRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteProvisionedProductPlanRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteProvisionedProductPlanResult call() throws Exception { DeleteProvisionedProductPlanResult result = null; try { result = executeDeleteProvisionedProductPlan(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteProvisioningArtifactAsync(DeleteProvisioningArtifactRequest request) { return deleteProvisioningArtifactAsync(request, null); } @Override public java.util.concurrent.Future deleteProvisioningArtifactAsync(final DeleteProvisioningArtifactRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteProvisioningArtifactRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteProvisioningArtifactResult call() throws Exception { DeleteProvisioningArtifactResult result = null; try { result = executeDeleteProvisioningArtifact(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteServiceActionAsync(DeleteServiceActionRequest request) { return deleteServiceActionAsync(request, null); } @Override public java.util.concurrent.Future deleteServiceActionAsync(final DeleteServiceActionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteServiceActionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteServiceActionResult call() throws Exception { DeleteServiceActionResult result = null; try { result = executeDeleteServiceAction(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteTagOptionAsync(DeleteTagOptionRequest request) { return deleteTagOptionAsync(request, null); } @Override public java.util.concurrent.Future deleteTagOptionAsync(final DeleteTagOptionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteTagOptionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteTagOptionResult call() throws Exception { DeleteTagOptionResult result = null; try { result = executeDeleteTagOption(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeConstraintAsync(DescribeConstraintRequest request) { return describeConstraintAsync(request, null); } @Override public java.util.concurrent.Future describeConstraintAsync(final DescribeConstraintRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeConstraintRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeConstraintResult call() throws Exception { DescribeConstraintResult result = null; try { result = executeDescribeConstraint(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeCopyProductStatusAsync(DescribeCopyProductStatusRequest request) { return describeCopyProductStatusAsync(request, null); } @Override public java.util.concurrent.Future describeCopyProductStatusAsync(final DescribeCopyProductStatusRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeCopyProductStatusRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeCopyProductStatusResult call() throws Exception { DescribeCopyProductStatusResult result = null; try { result = executeDescribeCopyProductStatus(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describePortfolioAsync(DescribePortfolioRequest request) { return describePortfolioAsync(request, null); } @Override public java.util.concurrent.Future describePortfolioAsync(final DescribePortfolioRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribePortfolioRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribePortfolioResult call() throws Exception { DescribePortfolioResult result = null; try { result = executeDescribePortfolio(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describePortfolioShareStatusAsync(DescribePortfolioShareStatusRequest request) { return describePortfolioShareStatusAsync(request, null); } @Override public java.util.concurrent.Future describePortfolioShareStatusAsync(final DescribePortfolioShareStatusRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribePortfolioShareStatusRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribePortfolioShareStatusResult call() throws Exception { DescribePortfolioShareStatusResult result = null; try { result = executeDescribePortfolioShareStatus(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describePortfolioSharesAsync(DescribePortfolioSharesRequest request) { return describePortfolioSharesAsync(request, null); } @Override public java.util.concurrent.Future describePortfolioSharesAsync(final DescribePortfolioSharesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribePortfolioSharesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribePortfolioSharesResult call() throws Exception { DescribePortfolioSharesResult result = null; try { result = executeDescribePortfolioShares(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeProductAsync(DescribeProductRequest request) { return describeProductAsync(request, null); } @Override public java.util.concurrent.Future describeProductAsync(final DescribeProductRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeProductRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeProductResult call() throws Exception { DescribeProductResult result = null; try { result = executeDescribeProduct(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeProductAsAdminAsync(DescribeProductAsAdminRequest request) { return describeProductAsAdminAsync(request, null); } @Override public java.util.concurrent.Future describeProductAsAdminAsync(final DescribeProductAsAdminRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeProductAsAdminRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeProductAsAdminResult call() throws Exception { DescribeProductAsAdminResult result = null; try { result = executeDescribeProductAsAdmin(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeProductViewAsync(DescribeProductViewRequest request) { return describeProductViewAsync(request, null); } @Override public java.util.concurrent.Future describeProductViewAsync(final DescribeProductViewRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeProductViewRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeProductViewResult call() throws Exception { DescribeProductViewResult result = null; try { result = executeDescribeProductView(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeProvisionedProductAsync(DescribeProvisionedProductRequest request) { return describeProvisionedProductAsync(request, null); } @Override public java.util.concurrent.Future describeProvisionedProductAsync(final DescribeProvisionedProductRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeProvisionedProductRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeProvisionedProductResult call() throws Exception { DescribeProvisionedProductResult result = null; try { result = executeDescribeProvisionedProduct(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeProvisionedProductPlanAsync(DescribeProvisionedProductPlanRequest request) { return describeProvisionedProductPlanAsync(request, null); } @Override public java.util.concurrent.Future describeProvisionedProductPlanAsync( final DescribeProvisionedProductPlanRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeProvisionedProductPlanRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeProvisionedProductPlanResult call() throws Exception { DescribeProvisionedProductPlanResult result = null; try { result = executeDescribeProvisionedProductPlan(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeProvisioningArtifactAsync(DescribeProvisioningArtifactRequest request) { return describeProvisioningArtifactAsync(request, null); } @Override public java.util.concurrent.Future describeProvisioningArtifactAsync(final DescribeProvisioningArtifactRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeProvisioningArtifactRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeProvisioningArtifactResult call() throws Exception { DescribeProvisioningArtifactResult result = null; try { result = executeDescribeProvisioningArtifact(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeProvisioningParametersAsync(DescribeProvisioningParametersRequest request) { return describeProvisioningParametersAsync(request, null); } @Override public java.util.concurrent.Future describeProvisioningParametersAsync( final DescribeProvisioningParametersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeProvisioningParametersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeProvisioningParametersResult call() throws Exception { DescribeProvisioningParametersResult result = null; try { result = executeDescribeProvisioningParameters(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeRecordAsync(DescribeRecordRequest request) { return describeRecordAsync(request, null); } @Override public java.util.concurrent.Future describeRecordAsync(final DescribeRecordRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeRecordRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeRecordResult call() throws Exception { DescribeRecordResult result = null; try { result = executeDescribeRecord(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeServiceActionAsync(DescribeServiceActionRequest request) { return describeServiceActionAsync(request, null); } @Override public java.util.concurrent.Future describeServiceActionAsync(final DescribeServiceActionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeServiceActionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeServiceActionResult call() throws Exception { DescribeServiceActionResult result = null; try { result = executeDescribeServiceAction(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeServiceActionExecutionParametersAsync( DescribeServiceActionExecutionParametersRequest request) { return describeServiceActionExecutionParametersAsync(request, null); } @Override public java.util.concurrent.Future describeServiceActionExecutionParametersAsync( final DescribeServiceActionExecutionParametersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeServiceActionExecutionParametersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeServiceActionExecutionParametersResult call() throws Exception { DescribeServiceActionExecutionParametersResult result = null; try { result = executeDescribeServiceActionExecutionParameters(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeTagOptionAsync(DescribeTagOptionRequest request) { return describeTagOptionAsync(request, null); } @Override public java.util.concurrent.Future describeTagOptionAsync(final DescribeTagOptionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeTagOptionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeTagOptionResult call() throws Exception { DescribeTagOptionResult result = null; try { result = executeDescribeTagOption(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future disableAWSOrganizationsAccessAsync(DisableAWSOrganizationsAccessRequest request) { return disableAWSOrganizationsAccessAsync(request, null); } @Override public java.util.concurrent.Future disableAWSOrganizationsAccessAsync( final DisableAWSOrganizationsAccessRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DisableAWSOrganizationsAccessRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DisableAWSOrganizationsAccessResult call() throws Exception { DisableAWSOrganizationsAccessResult result = null; try { result = executeDisableAWSOrganizationsAccess(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future disassociateBudgetFromResourceAsync(DisassociateBudgetFromResourceRequest request) { return disassociateBudgetFromResourceAsync(request, null); } @Override public java.util.concurrent.Future disassociateBudgetFromResourceAsync( final DisassociateBudgetFromResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DisassociateBudgetFromResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DisassociateBudgetFromResourceResult call() throws Exception { DisassociateBudgetFromResourceResult result = null; try { result = executeDisassociateBudgetFromResource(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future disassociatePrincipalFromPortfolioAsync( DisassociatePrincipalFromPortfolioRequest request) { return disassociatePrincipalFromPortfolioAsync(request, null); } @Override public java.util.concurrent.Future disassociatePrincipalFromPortfolioAsync( final DisassociatePrincipalFromPortfolioRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DisassociatePrincipalFromPortfolioRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DisassociatePrincipalFromPortfolioResult call() throws Exception { DisassociatePrincipalFromPortfolioResult result = null; try { result = executeDisassociatePrincipalFromPortfolio(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future disassociateProductFromPortfolioAsync( DisassociateProductFromPortfolioRequest request) { return disassociateProductFromPortfolioAsync(request, null); } @Override public java.util.concurrent.Future disassociateProductFromPortfolioAsync( final DisassociateProductFromPortfolioRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DisassociateProductFromPortfolioRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DisassociateProductFromPortfolioResult call() throws Exception { DisassociateProductFromPortfolioResult result = null; try { result = executeDisassociateProductFromPortfolio(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future disassociateServiceActionFromProvisioningArtifactAsync( DisassociateServiceActionFromProvisioningArtifactRequest request) { return disassociateServiceActionFromProvisioningArtifactAsync(request, null); } @Override public java.util.concurrent.Future disassociateServiceActionFromProvisioningArtifactAsync( final DisassociateServiceActionFromProvisioningArtifactRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DisassociateServiceActionFromProvisioningArtifactRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DisassociateServiceActionFromProvisioningArtifactResult call() throws Exception { DisassociateServiceActionFromProvisioningArtifactResult result = null; try { result = executeDisassociateServiceActionFromProvisioningArtifact(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future disassociateTagOptionFromResourceAsync( DisassociateTagOptionFromResourceRequest request) { return disassociateTagOptionFromResourceAsync(request, null); } @Override public java.util.concurrent.Future disassociateTagOptionFromResourceAsync( final DisassociateTagOptionFromResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DisassociateTagOptionFromResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DisassociateTagOptionFromResourceResult call() throws Exception { DisassociateTagOptionFromResourceResult result = null; try { result = executeDisassociateTagOptionFromResource(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future enableAWSOrganizationsAccessAsync(EnableAWSOrganizationsAccessRequest request) { return enableAWSOrganizationsAccessAsync(request, null); } @Override public java.util.concurrent.Future enableAWSOrganizationsAccessAsync(final EnableAWSOrganizationsAccessRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final EnableAWSOrganizationsAccessRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public EnableAWSOrganizationsAccessResult call() throws Exception { EnableAWSOrganizationsAccessResult result = null; try { result = executeEnableAWSOrganizationsAccess(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future executeProvisionedProductPlanAsync(ExecuteProvisionedProductPlanRequest request) { return executeProvisionedProductPlanAsync(request, null); } @Override public java.util.concurrent.Future executeProvisionedProductPlanAsync( final ExecuteProvisionedProductPlanRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ExecuteProvisionedProductPlanRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ExecuteProvisionedProductPlanResult call() throws Exception { ExecuteProvisionedProductPlanResult result = null; try { result = executeExecuteProvisionedProductPlan(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future executeProvisionedProductServiceActionAsync( ExecuteProvisionedProductServiceActionRequest request) { return executeProvisionedProductServiceActionAsync(request, null); } @Override public java.util.concurrent.Future executeProvisionedProductServiceActionAsync( final ExecuteProvisionedProductServiceActionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ExecuteProvisionedProductServiceActionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ExecuteProvisionedProductServiceActionResult call() throws Exception { ExecuteProvisionedProductServiceActionResult result = null; try { result = executeExecuteProvisionedProductServiceAction(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getAWSOrganizationsAccessStatusAsync( GetAWSOrganizationsAccessStatusRequest request) { return getAWSOrganizationsAccessStatusAsync(request, null); } @Override public java.util.concurrent.Future getAWSOrganizationsAccessStatusAsync( final GetAWSOrganizationsAccessStatusRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetAWSOrganizationsAccessStatusRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetAWSOrganizationsAccessStatusResult call() throws Exception { GetAWSOrganizationsAccessStatusResult result = null; try { result = executeGetAWSOrganizationsAccessStatus(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getProvisionedProductOutputsAsync(GetProvisionedProductOutputsRequest request) { return getProvisionedProductOutputsAsync(request, null); } @Override public java.util.concurrent.Future getProvisionedProductOutputsAsync(final GetProvisionedProductOutputsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetProvisionedProductOutputsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetProvisionedProductOutputsResult call() throws Exception { GetProvisionedProductOutputsResult result = null; try { result = executeGetProvisionedProductOutputs(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future importAsProvisionedProductAsync(ImportAsProvisionedProductRequest request) { return importAsProvisionedProductAsync(request, null); } @Override public java.util.concurrent.Future importAsProvisionedProductAsync(final ImportAsProvisionedProductRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ImportAsProvisionedProductRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ImportAsProvisionedProductResult call() throws Exception { ImportAsProvisionedProductResult result = null; try { result = executeImportAsProvisionedProduct(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listAcceptedPortfolioSharesAsync(ListAcceptedPortfolioSharesRequest request) { return listAcceptedPortfolioSharesAsync(request, null); } @Override public java.util.concurrent.Future listAcceptedPortfolioSharesAsync(final ListAcceptedPortfolioSharesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAcceptedPortfolioSharesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAcceptedPortfolioSharesResult call() throws Exception { ListAcceptedPortfolioSharesResult result = null; try { result = executeListAcceptedPortfolioShares(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listBudgetsForResourceAsync(ListBudgetsForResourceRequest request) { return listBudgetsForResourceAsync(request, null); } @Override public java.util.concurrent.Future listBudgetsForResourceAsync(final ListBudgetsForResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListBudgetsForResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListBudgetsForResourceResult call() throws Exception { ListBudgetsForResourceResult result = null; try { result = executeListBudgetsForResource(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listConstraintsForPortfolioAsync(ListConstraintsForPortfolioRequest request) { return listConstraintsForPortfolioAsync(request, null); } @Override public java.util.concurrent.Future listConstraintsForPortfolioAsync(final ListConstraintsForPortfolioRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListConstraintsForPortfolioRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListConstraintsForPortfolioResult call() throws Exception { ListConstraintsForPortfolioResult result = null; try { result = executeListConstraintsForPortfolio(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listLaunchPathsAsync(ListLaunchPathsRequest request) { return listLaunchPathsAsync(request, null); } @Override public java.util.concurrent.Future listLaunchPathsAsync(final ListLaunchPathsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListLaunchPathsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListLaunchPathsResult call() throws Exception { ListLaunchPathsResult result = null; try { result = executeListLaunchPaths(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listOrganizationPortfolioAccessAsync( ListOrganizationPortfolioAccessRequest request) { return listOrganizationPortfolioAccessAsync(request, null); } @Override public java.util.concurrent.Future listOrganizationPortfolioAccessAsync( final ListOrganizationPortfolioAccessRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListOrganizationPortfolioAccessRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListOrganizationPortfolioAccessResult call() throws Exception { ListOrganizationPortfolioAccessResult result = null; try { result = executeListOrganizationPortfolioAccess(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listPortfolioAccessAsync(ListPortfolioAccessRequest request) { return listPortfolioAccessAsync(request, null); } @Override public java.util.concurrent.Future listPortfolioAccessAsync(final ListPortfolioAccessRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListPortfolioAccessRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListPortfolioAccessResult call() throws Exception { ListPortfolioAccessResult result = null; try { result = executeListPortfolioAccess(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listPortfoliosAsync(ListPortfoliosRequest request) { return listPortfoliosAsync(request, null); } @Override public java.util.concurrent.Future listPortfoliosAsync(final ListPortfoliosRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListPortfoliosRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListPortfoliosResult call() throws Exception { ListPortfoliosResult result = null; try { result = executeListPortfolios(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listPortfoliosForProductAsync(ListPortfoliosForProductRequest request) { return listPortfoliosForProductAsync(request, null); } @Override public java.util.concurrent.Future listPortfoliosForProductAsync(final ListPortfoliosForProductRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListPortfoliosForProductRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListPortfoliosForProductResult call() throws Exception { ListPortfoliosForProductResult result = null; try { result = executeListPortfoliosForProduct(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listPrincipalsForPortfolioAsync(ListPrincipalsForPortfolioRequest request) { return listPrincipalsForPortfolioAsync(request, null); } @Override public java.util.concurrent.Future listPrincipalsForPortfolioAsync(final ListPrincipalsForPortfolioRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListPrincipalsForPortfolioRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListPrincipalsForPortfolioResult call() throws Exception { ListPrincipalsForPortfolioResult result = null; try { result = executeListPrincipalsForPortfolio(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listProvisionedProductPlansAsync(ListProvisionedProductPlansRequest request) { return listProvisionedProductPlansAsync(request, null); } @Override public java.util.concurrent.Future listProvisionedProductPlansAsync(final ListProvisionedProductPlansRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListProvisionedProductPlansRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListProvisionedProductPlansResult call() throws Exception { ListProvisionedProductPlansResult result = null; try { result = executeListProvisionedProductPlans(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listProvisioningArtifactsAsync(ListProvisioningArtifactsRequest request) { return listProvisioningArtifactsAsync(request, null); } @Override public java.util.concurrent.Future listProvisioningArtifactsAsync(final ListProvisioningArtifactsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListProvisioningArtifactsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListProvisioningArtifactsResult call() throws Exception { ListProvisioningArtifactsResult result = null; try { result = executeListProvisioningArtifacts(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listProvisioningArtifactsForServiceActionAsync( ListProvisioningArtifactsForServiceActionRequest request) { return listProvisioningArtifactsForServiceActionAsync(request, null); } @Override public java.util.concurrent.Future listProvisioningArtifactsForServiceActionAsync( final ListProvisioningArtifactsForServiceActionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListProvisioningArtifactsForServiceActionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListProvisioningArtifactsForServiceActionResult call() throws Exception { ListProvisioningArtifactsForServiceActionResult result = null; try { result = executeListProvisioningArtifactsForServiceAction(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listRecordHistoryAsync(ListRecordHistoryRequest request) { return listRecordHistoryAsync(request, null); } @Override public java.util.concurrent.Future listRecordHistoryAsync(final ListRecordHistoryRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListRecordHistoryRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListRecordHistoryResult call() throws Exception { ListRecordHistoryResult result = null; try { result = executeListRecordHistory(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listResourcesForTagOptionAsync(ListResourcesForTagOptionRequest request) { return listResourcesForTagOptionAsync(request, null); } @Override public java.util.concurrent.Future listResourcesForTagOptionAsync(final ListResourcesForTagOptionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListResourcesForTagOptionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListResourcesForTagOptionResult call() throws Exception { ListResourcesForTagOptionResult result = null; try { result = executeListResourcesForTagOption(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listServiceActionsAsync(ListServiceActionsRequest request) { return listServiceActionsAsync(request, null); } @Override public java.util.concurrent.Future listServiceActionsAsync(final ListServiceActionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListServiceActionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListServiceActionsResult call() throws Exception { ListServiceActionsResult result = null; try { result = executeListServiceActions(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listServiceActionsForProvisioningArtifactAsync( ListServiceActionsForProvisioningArtifactRequest request) { return listServiceActionsForProvisioningArtifactAsync(request, null); } @Override public java.util.concurrent.Future listServiceActionsForProvisioningArtifactAsync( final ListServiceActionsForProvisioningArtifactRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListServiceActionsForProvisioningArtifactRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListServiceActionsForProvisioningArtifactResult call() throws Exception { ListServiceActionsForProvisioningArtifactResult result = null; try { result = executeListServiceActionsForProvisioningArtifact(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listStackInstancesForProvisionedProductAsync( ListStackInstancesForProvisionedProductRequest request) { return listStackInstancesForProvisionedProductAsync(request, null); } @Override public java.util.concurrent.Future listStackInstancesForProvisionedProductAsync( final ListStackInstancesForProvisionedProductRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListStackInstancesForProvisionedProductRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListStackInstancesForProvisionedProductResult call() throws Exception { ListStackInstancesForProvisionedProductResult result = null; try { result = executeListStackInstancesForProvisionedProduct(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listTagOptionsAsync(ListTagOptionsRequest request) { return listTagOptionsAsync(request, null); } @Override public java.util.concurrent.Future listTagOptionsAsync(final ListTagOptionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListTagOptionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListTagOptionsResult call() throws Exception { ListTagOptionsResult result = null; try { result = executeListTagOptions(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future notifyProvisionProductEngineWorkflowResultAsync( NotifyProvisionProductEngineWorkflowResultRequest request) { return notifyProvisionProductEngineWorkflowResultAsync(request, null); } @Override public java.util.concurrent.Future notifyProvisionProductEngineWorkflowResultAsync( final NotifyProvisionProductEngineWorkflowResultRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final NotifyProvisionProductEngineWorkflowResultRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public NotifyProvisionProductEngineWorkflowResultResult call() throws Exception { NotifyProvisionProductEngineWorkflowResultResult result = null; try { result = executeNotifyProvisionProductEngineWorkflowResult(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future notifyTerminateProvisionedProductEngineWorkflowResultAsync( NotifyTerminateProvisionedProductEngineWorkflowResultRequest request) { return notifyTerminateProvisionedProductEngineWorkflowResultAsync(request, null); } @Override public java.util.concurrent.Future notifyTerminateProvisionedProductEngineWorkflowResultAsync( final NotifyTerminateProvisionedProductEngineWorkflowResultRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final NotifyTerminateProvisionedProductEngineWorkflowResultRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public NotifyTerminateProvisionedProductEngineWorkflowResultResult call() throws Exception { NotifyTerminateProvisionedProductEngineWorkflowResultResult result = null; try { result = executeNotifyTerminateProvisionedProductEngineWorkflowResult(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future notifyUpdateProvisionedProductEngineWorkflowResultAsync( NotifyUpdateProvisionedProductEngineWorkflowResultRequest request) { return notifyUpdateProvisionedProductEngineWorkflowResultAsync(request, null); } @Override public java.util.concurrent.Future notifyUpdateProvisionedProductEngineWorkflowResultAsync( final NotifyUpdateProvisionedProductEngineWorkflowResultRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final NotifyUpdateProvisionedProductEngineWorkflowResultRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public NotifyUpdateProvisionedProductEngineWorkflowResultResult call() throws Exception { NotifyUpdateProvisionedProductEngineWorkflowResultResult result = null; try { result = executeNotifyUpdateProvisionedProductEngineWorkflowResult(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future provisionProductAsync(ProvisionProductRequest request) { return provisionProductAsync(request, null); } @Override public java.util.concurrent.Future provisionProductAsync(final ProvisionProductRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ProvisionProductRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ProvisionProductResult call() throws Exception { ProvisionProductResult result = null; try { result = executeProvisionProduct(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future rejectPortfolioShareAsync(RejectPortfolioShareRequest request) { return rejectPortfolioShareAsync(request, null); } @Override public java.util.concurrent.Future rejectPortfolioShareAsync(final RejectPortfolioShareRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RejectPortfolioShareRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RejectPortfolioShareResult call() throws Exception { RejectPortfolioShareResult result = null; try { result = executeRejectPortfolioShare(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future scanProvisionedProductsAsync(ScanProvisionedProductsRequest request) { return scanProvisionedProductsAsync(request, null); } @Override public java.util.concurrent.Future scanProvisionedProductsAsync(final ScanProvisionedProductsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ScanProvisionedProductsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ScanProvisionedProductsResult call() throws Exception { ScanProvisionedProductsResult result = null; try { result = executeScanProvisionedProducts(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future searchProductsAsync(SearchProductsRequest request) { return searchProductsAsync(request, null); } @Override public java.util.concurrent.Future searchProductsAsync(final SearchProductsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final SearchProductsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public SearchProductsResult call() throws Exception { SearchProductsResult result = null; try { result = executeSearchProducts(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future searchProductsAsAdminAsync(SearchProductsAsAdminRequest request) { return searchProductsAsAdminAsync(request, null); } @Override public java.util.concurrent.Future searchProductsAsAdminAsync(final SearchProductsAsAdminRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final SearchProductsAsAdminRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public SearchProductsAsAdminResult call() throws Exception { SearchProductsAsAdminResult result = null; try { result = executeSearchProductsAsAdmin(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future searchProvisionedProductsAsync(SearchProvisionedProductsRequest request) { return searchProvisionedProductsAsync(request, null); } @Override public java.util.concurrent.Future searchProvisionedProductsAsync(final SearchProvisionedProductsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final SearchProvisionedProductsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public SearchProvisionedProductsResult call() throws Exception { SearchProvisionedProductsResult result = null; try { result = executeSearchProvisionedProducts(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future terminateProvisionedProductAsync(TerminateProvisionedProductRequest request) { return terminateProvisionedProductAsync(request, null); } @Override public java.util.concurrent.Future terminateProvisionedProductAsync(final TerminateProvisionedProductRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final TerminateProvisionedProductRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public TerminateProvisionedProductResult call() throws Exception { TerminateProvisionedProductResult result = null; try { result = executeTerminateProvisionedProduct(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateConstraintAsync(UpdateConstraintRequest request) { return updateConstraintAsync(request, null); } @Override public java.util.concurrent.Future updateConstraintAsync(final UpdateConstraintRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateConstraintRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateConstraintResult call() throws Exception { UpdateConstraintResult result = null; try { result = executeUpdateConstraint(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updatePortfolioAsync(UpdatePortfolioRequest request) { return updatePortfolioAsync(request, null); } @Override public java.util.concurrent.Future updatePortfolioAsync(final UpdatePortfolioRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdatePortfolioRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdatePortfolioResult call() throws Exception { UpdatePortfolioResult result = null; try { result = executeUpdatePortfolio(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updatePortfolioShareAsync(UpdatePortfolioShareRequest request) { return updatePortfolioShareAsync(request, null); } @Override public java.util.concurrent.Future updatePortfolioShareAsync(final UpdatePortfolioShareRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdatePortfolioShareRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdatePortfolioShareResult call() throws Exception { UpdatePortfolioShareResult result = null; try { result = executeUpdatePortfolioShare(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateProductAsync(UpdateProductRequest request) { return updateProductAsync(request, null); } @Override public java.util.concurrent.Future updateProductAsync(final UpdateProductRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateProductRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateProductResult call() throws Exception { UpdateProductResult result = null; try { result = executeUpdateProduct(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateProvisionedProductAsync(UpdateProvisionedProductRequest request) { return updateProvisionedProductAsync(request, null); } @Override public java.util.concurrent.Future updateProvisionedProductAsync(final UpdateProvisionedProductRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateProvisionedProductRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateProvisionedProductResult call() throws Exception { UpdateProvisionedProductResult result = null; try { result = executeUpdateProvisionedProduct(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateProvisionedProductPropertiesAsync( UpdateProvisionedProductPropertiesRequest request) { return updateProvisionedProductPropertiesAsync(request, null); } @Override public java.util.concurrent.Future updateProvisionedProductPropertiesAsync( final UpdateProvisionedProductPropertiesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateProvisionedProductPropertiesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateProvisionedProductPropertiesResult call() throws Exception { UpdateProvisionedProductPropertiesResult result = null; try { result = executeUpdateProvisionedProductProperties(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateProvisioningArtifactAsync(UpdateProvisioningArtifactRequest request) { return updateProvisioningArtifactAsync(request, null); } @Override public java.util.concurrent.Future updateProvisioningArtifactAsync(final UpdateProvisioningArtifactRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateProvisioningArtifactRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateProvisioningArtifactResult call() throws Exception { UpdateProvisioningArtifactResult result = null; try { result = executeUpdateProvisioningArtifact(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateServiceActionAsync(UpdateServiceActionRequest request) { return updateServiceActionAsync(request, null); } @Override public java.util.concurrent.Future updateServiceActionAsync(final UpdateServiceActionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateServiceActionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateServiceActionResult call() throws Exception { UpdateServiceActionResult result = null; try { result = executeUpdateServiceAction(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateTagOptionAsync(UpdateTagOptionRequest request) { return updateTagOptionAsync(request, null); } @Override public java.util.concurrent.Future updateTagOptionAsync(final UpdateTagOptionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateTagOptionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateTagOptionResult call() throws Exception { UpdateTagOptionResult result = null; try { result = executeUpdateTagOption(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