/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.connect; import java.util.concurrent.Callable; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; import com.amazonaws.AmazonClientException; import com.amazonaws.AmazonServiceException; import com.amazonaws.handlers.AsyncHandler; import com.amazonaws.ClientConfiguration; import com.amazonaws.auth.AWSCredentials; import com.amazonaws.auth.AWSCredentialsProvider; import com.amazonaws.auth.DefaultAWSCredentialsProviderChain; import com.amazonaws.services.connect.model.*; /** * Interface for accessing Amazon Connect asynchronously. *

* Amazon Connect is a cloud-based contact center solution that you use to set * up and manage a customer contact center and provide reliable customer * engagement at any scale. *

*

* Amazon Connect provides metrics and real-time reporting that enable you to * optimize contact routing. You can also resolve customer issues more * efficiently by getting customers in touch with the appropriate agents. *

*

* There are limits to the number of Amazon Connect resources that you can * create. There are also limits to the number of requests that you can make per * second. For more information, see Amazon Connect Service Quotas in the Amazon Connect Administrator * Guide. *

*

* You can connect programmatically to an Amazon Web Services service by using * an endpoint. For a list of Amazon Connect endpoints, see Amazon Connect Endpoints. *

**/ public class AmazonConnectAsyncClient extends AmazonConnectClient implements AmazonConnectAsync { /** * Executor service for executing asynchronous requests. */ private ExecutorService executorService; private static final int DEFAULT_THREAD_POOL_SIZE = 10; /** * Constructs a new asynchronous client to invoke service methods on Amazon * Connect. A credentials provider chain will be used that searches for * credentials in this order: * *

* All service calls made using this new client object are blocking, and * will not return until the service call completes. * * @see DefaultAWSCredentialsProviderChain */ @Deprecated public AmazonConnectAsyncClient() { this(new DefaultAWSCredentialsProviderChain()); } /** * Constructs a new asynchronous client to invoke service methods on Amazon * Connect. A credentials provider chain will be used that searches for * credentials in this order: *

*

* All service calls made using this new client object are blocking, and * will not return until the service call completes. * * @param clientConfiguration The client configuration options controlling * how this client connects to Amazon Connect (ex: proxy * settings, retry counts, etc.). * @see DefaultAWSCredentialsProviderChain */ @Deprecated public AmazonConnectAsyncClient(ClientConfiguration clientConfiguration) { this(new DefaultAWSCredentialsProviderChain(), clientConfiguration, Executors .newFixedThreadPool(clientConfiguration.getMaxConnections())); } /** * Constructs a new asynchronous client to invoke service methods on Amazon * Connect using the specified AWS account credentials. Default client * settings will be used, and a fixed size thread pool will be created for * executing the asynchronous tasks. *

* All calls made using this new client object are non-blocking, and will * immediately return a Java Future object that the caller can later check * to see if the service call has actually completed. * * @param awsCredentials The AWS credentials (access key ID and secret key) * to use when authenticating with AWS services. */ public AmazonConnectAsyncClient(AWSCredentials awsCredentials) { this(awsCredentials, Executors.newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE)); } /** * Constructs a new asynchronous client to invoke service methods on Amazon * Connect using the specified AWS account credentials and executor service. * Default client settings will be used. *

* All calls made using this new client object are non-blocking, and will * immediately return a Java Future object that the caller can later check * to see if the service call has actually completed. * * @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. */ public AmazonConnectAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService) { super(awsCredentials); this.executorService = executorService; } /** * Constructs a new asynchronous client to invoke service methods on Amazon * Connect using the specified AWS account credentials, executor service, * and client configuration options. *

* All calls made using this new client object are non-blocking, and will * immediately return a Java Future object that the caller can later check * to see if the service call has actually completed. * * @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. */ public AmazonConnectAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) { super(awsCredentials, clientConfiguration); this.executorService = executorService; } /** * Constructs a new asynchronous client to invoke service methods on Amazon * Connect using the specified AWS account credentials provider. Default * client settings will be used, and a fixed size thread pool will be * created for executing the asynchronous tasks. *

* All calls made using this new client object are non-blocking, and will * immediately return a Java Future object that the caller can later check * to see if the service call has actually completed. * * @param awsCredentialsProvider The AWS credentials provider which will * provide credentials to authenticate requests with AWS * services. */ public AmazonConnectAsyncClient(AWSCredentialsProvider awsCredentialsProvider) { this(awsCredentialsProvider, Executors.newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE)); } /** * Constructs a new asynchronous client to invoke service methods on Amazon * Connect using the specified AWS account credentials provider and executor * service. Default client settings will be used. *

* All calls made using this new client object are non-blocking, and will * immediately return a Java Future object that the caller can later check * to see if the service call has actually completed. * * @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. */ public AmazonConnectAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) { this(awsCredentialsProvider, new ClientConfiguration(), executorService); } /** * Constructs a new asynchronous client to invoke service methods on Amazon * Connect using the specified AWS account credentials provider and client * configuration options. *

* All calls made using this new client object are non-blocking, and will * immediately return a Java Future object that the caller can later check * to see if the service call has actually completed. * * @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). */ public AmazonConnectAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) { this(awsCredentialsProvider, clientConfiguration, Executors .newFixedThreadPool(clientConfiguration.getMaxConnections())); } /** * Constructs a new asynchronous client to invoke service methods on Amazon * Connect using the specified AWS account credentials provider, executor * service, and client configuration options. *

* All calls made using this new client object are non-blocking, and will * immediately return a Java Future object that the caller can later check * to see if the service call has actually completed. * * @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. */ public AmazonConnectAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService) { super(awsCredentialsProvider, clientConfiguration); this.executorService = executorService; } /** * Returns the executor service used by this async client to execute * requests. * * @return The executor service used by this async client to execute * requests. */ public ExecutorService getExecutorService() { return executorService; } /** * 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 getExecutorService().shutdown() followed by * getExecutorService().awaitTermination() prior to calling this method. */ @Override public void shutdown() { super.shutdown(); executorService.shutdownNow(); } /** *

* Activates an evaluation form in the specified Amazon Connect instance. * After the evaluation form is activated, it is available to start new * evaluations based on the form. *

* * @param activateEvaluationFormRequest * @return A Java Future object containing the response from the * ActivateEvaluationForm service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future activateEvaluationFormAsync( final ActivateEvaluationFormRequest activateEvaluationFormRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ActivateEvaluationFormResult call() throws Exception { return activateEvaluationForm(activateEvaluationFormRequest); } }); } /** *

* Activates an evaluation form in the specified Amazon Connect instance. * After the evaluation form is activated, it is available to start new * evaluations based on the form. *

* * @param activateEvaluationFormRequest * @return A Java Future object containing the response from the * ActivateEvaluationForm service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future activateEvaluationFormAsync( final ActivateEvaluationFormRequest activateEvaluationFormRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ActivateEvaluationFormResult call() throws Exception { ActivateEvaluationFormResult result = null; try { result = activateEvaluationForm(activateEvaluationFormRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(activateEvaluationFormRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Associates an approved origin to an Amazon Connect instance. *

* * @param associateApprovedOriginRequest * @return A Java Future object containing the response from the * AssociateApprovedOrigin service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws ResourceConflictException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future associateApprovedOriginAsync( final AssociateApprovedOriginRequest associateApprovedOriginRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { associateApprovedOrigin(associateApprovedOriginRequest); return null; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Associates an approved origin to an Amazon Connect instance. *

* * @param associateApprovedOriginRequest * @return A Java Future object containing the response from the * AssociateApprovedOrigin service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws ResourceConflictException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future associateApprovedOriginAsync( final AssociateApprovedOriginRequest associateApprovedOriginRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { associateApprovedOrigin(associateApprovedOriginRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(associateApprovedOriginRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Allows the specified Amazon Connect instance to access the specified * Amazon Lex or Amazon Lex V2 bot. *

* * @param associateBotRequest * @return A Java Future object containing the response from the * AssociateBot service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws ResourceConflictException * @throws InternalServiceException * @throws InvalidRequestException * @throws LimitExceededException * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future associateBotAsync(final AssociateBotRequest associateBotRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { associateBot(associateBotRequest); return null; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Allows the specified Amazon Connect instance to access the specified * Amazon Lex or Amazon Lex V2 bot. *

* * @param associateBotRequest * @return A Java Future object containing the response from the * AssociateBot service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws ResourceConflictException * @throws InternalServiceException * @throws InvalidRequestException * @throws LimitExceededException * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future associateBotAsync(final AssociateBotRequest associateBotRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { associateBot(associateBotRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(associateBotRequest, result); return result; } }); } /** *

* Associates an existing vocabulary as the default. Contact Lens for Amazon * Connect uses the vocabulary in post-call and real-time analysis sessions * for the given language. *

* * @param associateDefaultVocabularyRequest * @return A Java Future object containing the response from the * AssociateDefaultVocabulary service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future associateDefaultVocabularyAsync( final AssociateDefaultVocabularyRequest associateDefaultVocabularyRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public AssociateDefaultVocabularyResult call() throws Exception { return associateDefaultVocabulary(associateDefaultVocabularyRequest); } }); } /** *

* Associates an existing vocabulary as the default. Contact Lens for Amazon * Connect uses the vocabulary in post-call and real-time analysis sessions * for the given language. *

* * @param associateDefaultVocabularyRequest * @return A Java Future object containing the response from the * AssociateDefaultVocabulary service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future associateDefaultVocabularyAsync( final AssociateDefaultVocabularyRequest associateDefaultVocabularyRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public AssociateDefaultVocabularyResult call() throws Exception { AssociateDefaultVocabularyResult result = null; try { result = associateDefaultVocabulary(associateDefaultVocabularyRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(associateDefaultVocabularyRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Associates a storage resource type for the first time. You can only * associate one type of storage configuration in a single call. This means, * for example, that you can't define an instance with multiple S3 buckets * for storing chat transcripts. *

*

* This API does not create a resource that doesn't exist. It only * associates it to the instance. Ensure that the resource being specified * in the storage configuration, like an S3 bucket, exists when being used * for association. *

* * @param associateInstanceStorageConfigRequest * @return A Java Future object containing the response from the * AssociateInstanceStorageConfig service method, as returned by * Amazon Connect. * @throws ResourceNotFoundException * @throws ResourceConflictException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future associateInstanceStorageConfigAsync( final AssociateInstanceStorageConfigRequest associateInstanceStorageConfigRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public AssociateInstanceStorageConfigResult call() throws Exception { return associateInstanceStorageConfig(associateInstanceStorageConfigRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Associates a storage resource type for the first time. You can only * associate one type of storage configuration in a single call. This means, * for example, that you can't define an instance with multiple S3 buckets * for storing chat transcripts. *

*

* This API does not create a resource that doesn't exist. It only * associates it to the instance. Ensure that the resource being specified * in the storage configuration, like an S3 bucket, exists when being used * for association. *

* * @param associateInstanceStorageConfigRequest * @return A Java Future object containing the response from the * AssociateInstanceStorageConfig service method, as returned by * Amazon Connect. * @throws ResourceNotFoundException * @throws ResourceConflictException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future associateInstanceStorageConfigAsync( final AssociateInstanceStorageConfigRequest associateInstanceStorageConfigRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public AssociateInstanceStorageConfigResult call() throws Exception { AssociateInstanceStorageConfigResult result = null; try { result = associateInstanceStorageConfig(associateInstanceStorageConfigRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(associateInstanceStorageConfigRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Allows the specified Amazon Connect instance to access the specified * Lambda function. *

* * @param associateLambdaFunctionRequest * @return A Java Future object containing the response from the * AssociateLambdaFunction service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws ResourceConflictException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future associateLambdaFunctionAsync( final AssociateLambdaFunctionRequest associateLambdaFunctionRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { associateLambdaFunction(associateLambdaFunctionRequest); return null; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Allows the specified Amazon Connect instance to access the specified * Lambda function. *

* * @param associateLambdaFunctionRequest * @return A Java Future object containing the response from the * AssociateLambdaFunction service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws ResourceConflictException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future associateLambdaFunctionAsync( final AssociateLambdaFunctionRequest associateLambdaFunctionRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { associateLambdaFunction(associateLambdaFunctionRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(associateLambdaFunctionRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Allows the specified Amazon Connect instance to access the specified * Amazon Lex V1 bot. This API only supports the association of Amazon Lex * V1 bots. *

* * @param associateLexBotRequest * @return A Java Future object containing the response from the * AssociateLexBot service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws ResourceConflictException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future associateLexBotAsync(final AssociateLexBotRequest associateLexBotRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { associateLexBot(associateLexBotRequest); return null; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Allows the specified Amazon Connect instance to access the specified * Amazon Lex V1 bot. This API only supports the association of Amazon Lex * V1 bots. *

* * @param associateLexBotRequest * @return A Java Future object containing the response from the * AssociateLexBot service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws ResourceConflictException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future associateLexBotAsync(final AssociateLexBotRequest associateLexBotRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { associateLexBot(associateLexBotRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(associateLexBotRequest, result); return result; } }); } /** *

* Associates a flow with a phone number claimed to your Amazon Connect * instance. *

* *

* If the number is claimed to a traffic distribution group, and you are * calling this API using an instance in the Amazon Web Services Region * where the traffic distribution group was created, you can use either a * full phone number ARN or UUID value for the PhoneNumberId * URI request parameter. However, if the number is claimed to a traffic * distribution group and you are calling this API using an instance in the * alternate Amazon Web Services Region associated with the traffic * distribution group, you must provide a full phone number ARN. If a UUID * is provided in this scenario, you will receive a * ResourceNotFoundException. *

*
* * @param associatePhoneNumberContactFlowRequest * @return A Java Future object containing the response from the * AssociatePhoneNumberContactFlow service method, as returned by * Amazon Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future associatePhoneNumberContactFlowAsync( final AssociatePhoneNumberContactFlowRequest associatePhoneNumberContactFlowRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { associatePhoneNumberContactFlow(associatePhoneNumberContactFlowRequest); return null; } }); } /** *

* Associates a flow with a phone number claimed to your Amazon Connect * instance. *

* *

* If the number is claimed to a traffic distribution group, and you are * calling this API using an instance in the Amazon Web Services Region * where the traffic distribution group was created, you can use either a * full phone number ARN or UUID value for the PhoneNumberId * URI request parameter. However, if the number is claimed to a traffic * distribution group and you are calling this API using an instance in the * alternate Amazon Web Services Region associated with the traffic * distribution group, you must provide a full phone number ARN. If a UUID * is provided in this scenario, you will receive a * ResourceNotFoundException. *

*
* * @param associatePhoneNumberContactFlowRequest * @return A Java Future object containing the response from the * AssociatePhoneNumberContactFlow service method, as returned by * Amazon Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future associatePhoneNumberContactFlowAsync( final AssociatePhoneNumberContactFlowRequest associatePhoneNumberContactFlowRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { associatePhoneNumberContactFlow(associatePhoneNumberContactFlowRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(associatePhoneNumberContactFlowRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Associates a set of quick connects with a queue. *

* * @param associateQueueQuickConnectsRequest * @return A Java Future object containing the response from the * AssociateQueueQuickConnects service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future associateQueueQuickConnectsAsync( final AssociateQueueQuickConnectsRequest associateQueueQuickConnectsRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { associateQueueQuickConnects(associateQueueQuickConnectsRequest); return null; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Associates a set of quick connects with a queue. *

* * @param associateQueueQuickConnectsRequest * @return A Java Future object containing the response from the * AssociateQueueQuickConnects service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future associateQueueQuickConnectsAsync( final AssociateQueueQuickConnectsRequest associateQueueQuickConnectsRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { associateQueueQuickConnects(associateQueueQuickConnectsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(associateQueueQuickConnectsRequest, result); return result; } }); } /** *

* Associates a set of queues with a routing profile. *

* * @param associateRoutingProfileQueuesRequest * @return A Java Future object containing the response from the * AssociateRoutingProfileQueues service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future associateRoutingProfileQueuesAsync( final AssociateRoutingProfileQueuesRequest associateRoutingProfileQueuesRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { associateRoutingProfileQueues(associateRoutingProfileQueuesRequest); return null; } }); } /** *

* Associates a set of queues with a routing profile. *

* * @param associateRoutingProfileQueuesRequest * @return A Java Future object containing the response from the * AssociateRoutingProfileQueues service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future associateRoutingProfileQueuesAsync( final AssociateRoutingProfileQueuesRequest associateRoutingProfileQueuesRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { associateRoutingProfileQueues(associateRoutingProfileQueuesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(associateRoutingProfileQueuesRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Associates a security key to the instance. *

* * @param associateSecurityKeyRequest * @return A Java Future object containing the response from the * AssociateSecurityKey service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws ResourceConflictException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future associateSecurityKeyAsync( final AssociateSecurityKeyRequest associateSecurityKeyRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public AssociateSecurityKeyResult call() throws Exception { return associateSecurityKey(associateSecurityKeyRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Associates a security key to the instance. *

* * @param associateSecurityKeyRequest * @return A Java Future object containing the response from the * AssociateSecurityKey service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws ResourceConflictException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future associateSecurityKeyAsync( final AssociateSecurityKeyRequest associateSecurityKeyRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public AssociateSecurityKeyResult call() throws Exception { AssociateSecurityKeyResult result = null; try { result = associateSecurityKey(associateSecurityKeyRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(associateSecurityKeyRequest, result); return result; } }); } /** *

* Claims an available phone number to your Amazon Connect instance or * traffic distribution group. You can call this API only in the same Amazon * Web Services Region where the Amazon Connect instance or traffic * distribution group was created. *

*

* For more information about how to use this operation, see Claim a phone number in your country and Claim phone numbers to traffic distribution groups in the Amazon * Connect Administrator Guide. *

* *

* You can call the SearchAvailablePhoneNumbers API for available phone numbers that you * can claim. Call the DescribePhoneNumber API to verify the status of a previous ClaimPhoneNumber operation. *

*
*

* If you plan to claim and release numbers frequently during a 30 day * period, contact us for a service quota exception. Otherwise, it is * possible you will be blocked from claiming and releasing any more numbers * until 30 days past the oldest number released has expired. *

*

* By default you can claim and release up to 200% of your maximum number of * active phone numbers during any 30 day period. If you claim and release * phone numbers using the UI or API during a rolling 30 day cycle that * exceeds 200% of your phone number service level quota, you will be * blocked from claiming any more numbers until 30 days past the oldest * number released has expired. *

*

* For example, if you already have 99 claimed numbers and a service level * quota of 99 phone numbers, and in any 30 day period you release 99, claim * 99, and then release 99, you will have exceeded the 200% limit. At that * point you are blocked from claiming any more numbers until you open an * Amazon Web Services support ticket. *

* * @param claimPhoneNumberRequest * @return A Java Future object containing the response from the * ClaimPhoneNumber service method, as returned by Amazon Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws IdempotencyException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future claimPhoneNumberAsync( final ClaimPhoneNumberRequest claimPhoneNumberRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ClaimPhoneNumberResult call() throws Exception { return claimPhoneNumber(claimPhoneNumberRequest); } }); } /** *

* Claims an available phone number to your Amazon Connect instance or * traffic distribution group. You can call this API only in the same Amazon * Web Services Region where the Amazon Connect instance or traffic * distribution group was created. *

*

* For more information about how to use this operation, see Claim a phone number in your country and Claim phone numbers to traffic distribution groups in the Amazon * Connect Administrator Guide. *

* *

* You can call the SearchAvailablePhoneNumbers API for available phone numbers that you * can claim. Call the DescribePhoneNumber API to verify the status of a previous ClaimPhoneNumber operation. *

*
*

* If you plan to claim and release numbers frequently during a 30 day * period, contact us for a service quota exception. Otherwise, it is * possible you will be blocked from claiming and releasing any more numbers * until 30 days past the oldest number released has expired. *

*

* By default you can claim and release up to 200% of your maximum number of * active phone numbers during any 30 day period. If you claim and release * phone numbers using the UI or API during a rolling 30 day cycle that * exceeds 200% of your phone number service level quota, you will be * blocked from claiming any more numbers until 30 days past the oldest * number released has expired. *

*

* For example, if you already have 99 claimed numbers and a service level * quota of 99 phone numbers, and in any 30 day period you release 99, claim * 99, and then release 99, you will have exceeded the 200% limit. At that * point you are blocked from claiming any more numbers until you open an * Amazon Web Services support ticket. *

* * @param claimPhoneNumberRequest * @return A Java Future object containing the response from the * ClaimPhoneNumber service method, as returned by Amazon Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws IdempotencyException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future claimPhoneNumberAsync( final ClaimPhoneNumberRequest claimPhoneNumberRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ClaimPhoneNumberResult call() throws Exception { ClaimPhoneNumberResult result = null; try { result = claimPhoneNumber(claimPhoneNumberRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(claimPhoneNumberRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Creates an agent status for the specified Amazon Connect instance. *

* * @param createAgentStatusRequest * @return A Java Future object containing the response from the * CreateAgentStatus service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createAgentStatusAsync( final CreateAgentStatusRequest createAgentStatusRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateAgentStatusResult call() throws Exception { return createAgentStatus(createAgentStatusRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Creates an agent status for the specified Amazon Connect instance. *

* * @param createAgentStatusRequest * @return A Java Future object containing the response from the * CreateAgentStatus service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createAgentStatusAsync( final CreateAgentStatusRequest createAgentStatusRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateAgentStatusResult call() throws Exception { CreateAgentStatusResult result = null; try { result = createAgentStatus(createAgentStatusRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(createAgentStatusRequest, result); return result; } }); } /** *

* Creates a flow for the specified Amazon Connect instance. *

*

* You can also create and update flows using the Amazon Connect Flow language. *

* * @param createContactFlowRequest * @return A Java Future object containing the response from the * CreateContactFlow service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidContactFlowException * @throws InvalidParameterException * @throws DuplicateResourceException * @throws LimitExceededException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createContactFlowAsync( final CreateContactFlowRequest createContactFlowRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateContactFlowResult call() throws Exception { return createContactFlow(createContactFlowRequest); } }); } /** *

* Creates a flow for the specified Amazon Connect instance. *

*

* You can also create and update flows using the Amazon Connect Flow language. *

* * @param createContactFlowRequest * @return A Java Future object containing the response from the * CreateContactFlow service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidContactFlowException * @throws InvalidParameterException * @throws DuplicateResourceException * @throws LimitExceededException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createContactFlowAsync( final CreateContactFlowRequest createContactFlowRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateContactFlowResult call() throws Exception { CreateContactFlowResult result = null; try { result = createContactFlow(createContactFlowRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(createContactFlowRequest, result); return result; } }); } /** *

* Creates a flow module for the specified Amazon Connect instance. *

* * @param createContactFlowModuleRequest * @return A Java Future object containing the response from the * CreateContactFlowModule service method, as returned by Amazon * Connect. * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidContactFlowModuleException * @throws InvalidParameterException * @throws DuplicateResourceException * @throws LimitExceededException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws IdempotencyException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createContactFlowModuleAsync( final CreateContactFlowModuleRequest createContactFlowModuleRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateContactFlowModuleResult call() throws Exception { return createContactFlowModule(createContactFlowModuleRequest); } }); } /** *

* Creates a flow module for the specified Amazon Connect instance. *

* * @param createContactFlowModuleRequest * @return A Java Future object containing the response from the * CreateContactFlowModule service method, as returned by Amazon * Connect. * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidContactFlowModuleException * @throws InvalidParameterException * @throws DuplicateResourceException * @throws LimitExceededException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws IdempotencyException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createContactFlowModuleAsync( final CreateContactFlowModuleRequest createContactFlowModuleRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateContactFlowModuleResult call() throws Exception { CreateContactFlowModuleResult result = null; try { result = createContactFlowModule(createContactFlowModuleRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(createContactFlowModuleRequest, result); return result; } }); } /** *

* Creates an evaluation form in the specified Amazon Connect instance. The * form can be used to define questions related to agent performance, and * create sections to organize such questions. Question and section * identifiers cannot be duplicated within the same evaluation form. *

* * @param createEvaluationFormRequest * @return A Java Future object containing the response from the * CreateEvaluationForm service method, as returned by Amazon * Connect. * @throws InternalServiceException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws ServiceQuotaExceededException * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createEvaluationFormAsync( final CreateEvaluationFormRequest createEvaluationFormRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateEvaluationFormResult call() throws Exception { return createEvaluationForm(createEvaluationFormRequest); } }); } /** *

* Creates an evaluation form in the specified Amazon Connect instance. The * form can be used to define questions related to agent performance, and * create sections to organize such questions. Question and section * identifiers cannot be duplicated within the same evaluation form. *

* * @param createEvaluationFormRequest * @return A Java Future object containing the response from the * CreateEvaluationForm service method, as returned by Amazon * Connect. * @throws InternalServiceException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws ServiceQuotaExceededException * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createEvaluationFormAsync( final CreateEvaluationFormRequest createEvaluationFormRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateEvaluationFormResult call() throws Exception { CreateEvaluationFormResult result = null; try { result = createEvaluationForm(createEvaluationFormRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(createEvaluationFormRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Creates hours of operation. *

* * @param createHoursOfOperationRequest * @return A Java Future object containing the response from the * CreateHoursOfOperation service method, as returned by Amazon * Connect. * @throws DuplicateResourceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createHoursOfOperationAsync( final CreateHoursOfOperationRequest createHoursOfOperationRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateHoursOfOperationResult call() throws Exception { return createHoursOfOperation(createHoursOfOperationRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Creates hours of operation. *

* * @param createHoursOfOperationRequest * @return A Java Future object containing the response from the * CreateHoursOfOperation service method, as returned by Amazon * Connect. * @throws DuplicateResourceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createHoursOfOperationAsync( final CreateHoursOfOperationRequest createHoursOfOperationRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateHoursOfOperationResult call() throws Exception { CreateHoursOfOperationResult result = null; try { result = createHoursOfOperation(createHoursOfOperationRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(createHoursOfOperationRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Initiates an Amazon Connect instance with all the supported channels * enabled. It does not attach any storage, such as Amazon Simple Storage * Service (Amazon S3) or Amazon Kinesis. It also does not allow for any * configurations on features, such as Contact Lens for Amazon Connect. *

*

* Amazon Connect enforces a limit on the total number of instances that you * can create or delete in 30 days. If you exceed this limit, you will get * an error message indicating there has been an excessive number of * attempts at creating or deleting instances. You must wait 30 days before * you can restart creating and deleting instances in your account. *

* * @param createInstanceRequest * @return A Java Future object containing the response from the * CreateInstance service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createInstanceAsync( final CreateInstanceRequest createInstanceRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateInstanceResult call() throws Exception { return createInstance(createInstanceRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Initiates an Amazon Connect instance with all the supported channels * enabled. It does not attach any storage, such as Amazon Simple Storage * Service (Amazon S3) or Amazon Kinesis. It also does not allow for any * configurations on features, such as Contact Lens for Amazon Connect. *

*

* Amazon Connect enforces a limit on the total number of instances that you * can create or delete in 30 days. If you exceed this limit, you will get * an error message indicating there has been an excessive number of * attempts at creating or deleting instances. You must wait 30 days before * you can restart creating and deleting instances in your account. *

* * @param createInstanceRequest * @return A Java Future object containing the response from the * CreateInstance service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createInstanceAsync( final CreateInstanceRequest createInstanceRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateInstanceResult call() throws Exception { CreateInstanceResult result = null; try { result = createInstance(createInstanceRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(createInstanceRequest, result); return result; } }); } /** *

* Creates an Amazon Web Services resource association with an Amazon * Connect instance. *

* * @param createIntegrationAssociationRequest * @return A Java Future object containing the response from the * CreateIntegrationAssociation service method, as returned by * Amazon Connect. * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createIntegrationAssociationAsync( final CreateIntegrationAssociationRequest createIntegrationAssociationRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateIntegrationAssociationResult call() throws Exception { return createIntegrationAssociation(createIntegrationAssociationRequest); } }); } /** *

* Creates an Amazon Web Services resource association with an Amazon * Connect instance. *

* * @param createIntegrationAssociationRequest * @return A Java Future object containing the response from the * CreateIntegrationAssociation service method, as returned by * Amazon Connect. * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createIntegrationAssociationAsync( final CreateIntegrationAssociationRequest createIntegrationAssociationRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateIntegrationAssociationResult call() throws Exception { CreateIntegrationAssociationResult result = null; try { result = createIntegrationAssociation(createIntegrationAssociationRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(createIntegrationAssociationRequest, result); return result; } }); } /** *

* Adds a new participant into an on-going chat contact. For more * information, see Customize chat flow experiences by integrating custom participants. *

* * @param createParticipantRequest * @return A Java Future object containing the response from the * CreateParticipant service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createParticipantAsync( final CreateParticipantRequest createParticipantRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateParticipantResult call() throws Exception { return createParticipant(createParticipantRequest); } }); } /** *

* Adds a new participant into an on-going chat contact. For more * information, see Customize chat flow experiences by integrating custom participants. *

* * @param createParticipantRequest * @return A Java Future object containing the response from the * CreateParticipant service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createParticipantAsync( final CreateParticipantRequest createParticipantRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateParticipantResult call() throws Exception { CreateParticipantResult result = null; try { result = createParticipant(createParticipantRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(createParticipantRequest, result); return result; } }); } /** *

* Creates a prompt. For more information about prompts, such as supported * file types and maximum length, see Create prompts in the Amazon Connect Administrator's Guide. *

* * @param createPromptRequest * @return A Java Future object containing the response from the * CreatePrompt service method, as returned by Amazon Connect. * @throws DuplicateResourceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createPromptAsync( final CreatePromptRequest createPromptRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreatePromptResult call() throws Exception { return createPrompt(createPromptRequest); } }); } /** *

* Creates a prompt. For more information about prompts, such as supported * file types and maximum length, see Create prompts in the Amazon Connect Administrator's Guide. *

* * @param createPromptRequest * @return A Java Future object containing the response from the * CreatePrompt service method, as returned by Amazon Connect. * @throws DuplicateResourceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createPromptAsync( final CreatePromptRequest createPromptRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreatePromptResult call() throws Exception { CreatePromptResult result = null; try { result = createPrompt(createPromptRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(createPromptRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Creates a new queue for the specified Amazon Connect instance. *

* *

* If the number being used in the input is claimed to a traffic * distribution group, and you are calling this API using an instance in the * Amazon Web Services Region where the traffic distribution group was * created, you can use either a full phone number ARN or UUID value for the * OutboundCallerIdNumberId value of the OutboundCallerConfig request body parameter. However, if the number * is claimed to a traffic distribution group and you are calling this API * using an instance in the alternate Amazon Web Services Region associated * with the traffic distribution group, you must provide a full phone number * ARN. If a UUID is provided in this scenario, you will receive a * ResourceNotFoundException. *

*
* * @param createQueueRequest * @return A Java Future object containing the response from the CreateQueue * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createQueueAsync(final CreateQueueRequest createQueueRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateQueueResult call() throws Exception { return createQueue(createQueueRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Creates a new queue for the specified Amazon Connect instance. *

* *

* If the number being used in the input is claimed to a traffic * distribution group, and you are calling this API using an instance in the * Amazon Web Services Region where the traffic distribution group was * created, you can use either a full phone number ARN or UUID value for the * OutboundCallerIdNumberId value of the OutboundCallerConfig request body parameter. However, if the number * is claimed to a traffic distribution group and you are calling this API * using an instance in the alternate Amazon Web Services Region associated * with the traffic distribution group, you must provide a full phone number * ARN. If a UUID is provided in this scenario, you will receive a * ResourceNotFoundException. *

*
* * @param createQueueRequest * @return A Java Future object containing the response from the CreateQueue * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createQueueAsync(final CreateQueueRequest createQueueRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateQueueResult call() throws Exception { CreateQueueResult result = null; try { result = createQueue(createQueueRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(createQueueRequest, result); return result; } }); } /** *

* Creates a quick connect for the specified Amazon Connect instance. *

* * @param createQuickConnectRequest * @return A Java Future object containing the response from the * CreateQuickConnect service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createQuickConnectAsync( final CreateQuickConnectRequest createQuickConnectRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateQuickConnectResult call() throws Exception { return createQuickConnect(createQuickConnectRequest); } }); } /** *

* Creates a quick connect for the specified Amazon Connect instance. *

* * @param createQuickConnectRequest * @return A Java Future object containing the response from the * CreateQuickConnect service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createQuickConnectAsync( final CreateQuickConnectRequest createQuickConnectRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateQuickConnectResult call() throws Exception { CreateQuickConnectResult result = null; try { result = createQuickConnect(createQuickConnectRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(createQuickConnectRequest, result); return result; } }); } /** *

* Creates a new routing profile. *

* * @param createRoutingProfileRequest * @return A Java Future object containing the response from the * CreateRoutingProfile service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createRoutingProfileAsync( final CreateRoutingProfileRequest createRoutingProfileRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateRoutingProfileResult call() throws Exception { return createRoutingProfile(createRoutingProfileRequest); } }); } /** *

* Creates a new routing profile. *

* * @param createRoutingProfileRequest * @return A Java Future object containing the response from the * CreateRoutingProfile service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createRoutingProfileAsync( final CreateRoutingProfileRequest createRoutingProfileRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateRoutingProfileResult call() throws Exception { CreateRoutingProfileResult result = null; try { result = createRoutingProfile(createRoutingProfileRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(createRoutingProfileRequest, result); return result; } }); } /** *

* Creates a rule for the specified Amazon Connect instance. *

*

* Use the Rules Function language to code conditions for the rule. *

* * @param createRuleRequest * @return A Java Future object containing the response from the CreateRule * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AccessDeniedException * @throws ResourceConflictException * @throws ServiceQuotaExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createRuleAsync(final CreateRuleRequest createRuleRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateRuleResult call() throws Exception { return createRule(createRuleRequest); } }); } /** *

* Creates a rule for the specified Amazon Connect instance. *

*

* Use the Rules Function language to code conditions for the rule. *

* * @param createRuleRequest * @return A Java Future object containing the response from the CreateRule * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AccessDeniedException * @throws ResourceConflictException * @throws ServiceQuotaExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createRuleAsync(final CreateRuleRequest createRuleRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateRuleResult call() throws Exception { CreateRuleResult result = null; try { result = createRule(createRuleRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(createRuleRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Creates a security profile. *

* * @param createSecurityProfileRequest * @return A Java Future object containing the response from the * CreateSecurityProfile service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws LimitExceededException * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createSecurityProfileAsync( final CreateSecurityProfileRequest createSecurityProfileRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateSecurityProfileResult call() throws Exception { return createSecurityProfile(createSecurityProfileRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Creates a security profile. *

* * @param createSecurityProfileRequest * @return A Java Future object containing the response from the * CreateSecurityProfile service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws LimitExceededException * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createSecurityProfileAsync( final CreateSecurityProfileRequest createSecurityProfileRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateSecurityProfileResult call() throws Exception { CreateSecurityProfileResult result = null; try { result = createSecurityProfile(createSecurityProfileRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(createSecurityProfileRequest, result); return result; } }); } /** *

* Creates a new task template in the specified Amazon Connect instance. *

* * @param createTaskTemplateRequest * @return A Java Future object containing the response from the * CreateTaskTemplate service method, as returned by Amazon Connect. * @throws PropertyValidationException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws ServiceQuotaExceededException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createTaskTemplateAsync( final CreateTaskTemplateRequest createTaskTemplateRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateTaskTemplateResult call() throws Exception { return createTaskTemplate(createTaskTemplateRequest); } }); } /** *

* Creates a new task template in the specified Amazon Connect instance. *

* * @param createTaskTemplateRequest * @return A Java Future object containing the response from the * CreateTaskTemplate service method, as returned by Amazon Connect. * @throws PropertyValidationException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws ServiceQuotaExceededException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createTaskTemplateAsync( final CreateTaskTemplateRequest createTaskTemplateRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateTaskTemplateResult call() throws Exception { CreateTaskTemplateResult result = null; try { result = createTaskTemplate(createTaskTemplateRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(createTaskTemplateRequest, result); return result; } }); } /** *

* Creates a traffic distribution group given an Amazon Connect instance * that has been replicated. *

*

* For more information about creating traffic distribution groups, see Set up traffic distribution groups in the Amazon Connect * Administrator Guide. *

* * @param createTrafficDistributionGroupRequest * @return A Java Future object containing the response from the * CreateTrafficDistributionGroup service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws AccessDeniedException * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ResourceConflictException * @throws ResourceNotReadyException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createTrafficDistributionGroupAsync( final CreateTrafficDistributionGroupRequest createTrafficDistributionGroupRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateTrafficDistributionGroupResult call() throws Exception { return createTrafficDistributionGroup(createTrafficDistributionGroupRequest); } }); } /** *

* Creates a traffic distribution group given an Amazon Connect instance * that has been replicated. *

*

* For more information about creating traffic distribution groups, see Set up traffic distribution groups in the Amazon Connect * Administrator Guide. *

* * @param createTrafficDistributionGroupRequest * @return A Java Future object containing the response from the * CreateTrafficDistributionGroup service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws AccessDeniedException * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ResourceConflictException * @throws ResourceNotReadyException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createTrafficDistributionGroupAsync( final CreateTrafficDistributionGroupRequest createTrafficDistributionGroupRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateTrafficDistributionGroupResult call() throws Exception { CreateTrafficDistributionGroupResult result = null; try { result = createTrafficDistributionGroup(createTrafficDistributionGroupRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(createTrafficDistributionGroupRequest, result); return result; } }); } /** *

* Creates a use case for an integration association. *

* * @param createUseCaseRequest * @return A Java Future object containing the response from the * CreateUseCase service method, as returned by Amazon Connect. * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createUseCaseAsync( final CreateUseCaseRequest createUseCaseRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateUseCaseResult call() throws Exception { return createUseCase(createUseCaseRequest); } }); } /** *

* Creates a use case for an integration association. *

* * @param createUseCaseRequest * @return A Java Future object containing the response from the * CreateUseCase service method, as returned by Amazon Connect. * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createUseCaseAsync( final CreateUseCaseRequest createUseCaseRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateUseCaseResult call() throws Exception { CreateUseCaseResult result = null; try { result = createUseCase(createUseCaseRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(createUseCaseRequest, result); return result; } }); } /** *

* Creates a user account for the specified Amazon Connect instance. *

*

* For information about how to create user accounts using the Amazon * Connect console, see Add Users in the Amazon Connect Administrator Guide. *

* * @param createUserRequest * @return A Java Future object containing the response from the CreateUser * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws LimitExceededException * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createUserAsync(final CreateUserRequest createUserRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateUserResult call() throws Exception { return createUser(createUserRequest); } }); } /** *

* Creates a user account for the specified Amazon Connect instance. *

*

* For information about how to create user accounts using the Amazon * Connect console, see Add Users in the Amazon Connect Administrator Guide. *

* * @param createUserRequest * @return A Java Future object containing the response from the CreateUser * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws LimitExceededException * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createUserAsync(final CreateUserRequest createUserRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateUserResult call() throws Exception { CreateUserResult result = null; try { result = createUser(createUserRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(createUserRequest, result); return result; } }); } /** *

* Creates a new user hierarchy group. *

* * @param createUserHierarchyGroupRequest * @return A Java Future object containing the response from the * CreateUserHierarchyGroup service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws DuplicateResourceException * @throws LimitExceededException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createUserHierarchyGroupAsync( final CreateUserHierarchyGroupRequest createUserHierarchyGroupRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateUserHierarchyGroupResult call() throws Exception { return createUserHierarchyGroup(createUserHierarchyGroupRequest); } }); } /** *

* Creates a new user hierarchy group. *

* * @param createUserHierarchyGroupRequest * @return A Java Future object containing the response from the * CreateUserHierarchyGroup service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws DuplicateResourceException * @throws LimitExceededException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createUserHierarchyGroupAsync( final CreateUserHierarchyGroupRequest createUserHierarchyGroupRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateUserHierarchyGroupResult call() throws Exception { CreateUserHierarchyGroupResult result = null; try { result = createUserHierarchyGroup(createUserHierarchyGroupRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(createUserHierarchyGroupRequest, result); return result; } }); } /** *

* Creates a custom vocabulary associated with your Amazon Connect instance. * You can set a custom vocabulary to be your default vocabulary for a given * language. Contact Lens for Amazon Connect uses the default vocabulary in * post-call and real-time contact analysis sessions for that language. *

* * @param createVocabularyRequest * @return A Java Future object containing the response from the * CreateVocabulary service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AccessDeniedException * @throws ResourceConflictException * @throws ServiceQuotaExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createVocabularyAsync( final CreateVocabularyRequest createVocabularyRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateVocabularyResult call() throws Exception { return createVocabulary(createVocabularyRequest); } }); } /** *

* Creates a custom vocabulary associated with your Amazon Connect instance. * You can set a custom vocabulary to be your default vocabulary for a given * language. Contact Lens for Amazon Connect uses the default vocabulary in * post-call and real-time contact analysis sessions for that language. *

* * @param createVocabularyRequest * @return A Java Future object containing the response from the * CreateVocabulary service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AccessDeniedException * @throws ResourceConflictException * @throws ServiceQuotaExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future createVocabularyAsync( final CreateVocabularyRequest createVocabularyRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public CreateVocabularyResult call() throws Exception { CreateVocabularyResult result = null; try { result = createVocabulary(createVocabularyRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(createVocabularyRequest, result); return result; } }); } /** *

* Deactivates an evaluation form in the specified Amazon Connect instance. * After a form is deactivated, it is no longer available for users to start * new evaluations based on the form. *

* * @param deactivateEvaluationFormRequest * @return A Java Future object containing the response from the * DeactivateEvaluationForm service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deactivateEvaluationFormAsync( final DeactivateEvaluationFormRequest deactivateEvaluationFormRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DeactivateEvaluationFormResult call() throws Exception { return deactivateEvaluationForm(deactivateEvaluationFormRequest); } }); } /** *

* Deactivates an evaluation form in the specified Amazon Connect instance. * After a form is deactivated, it is no longer available for users to start * new evaluations based on the form. *

* * @param deactivateEvaluationFormRequest * @return A Java Future object containing the response from the * DeactivateEvaluationForm service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deactivateEvaluationFormAsync( final DeactivateEvaluationFormRequest deactivateEvaluationFormRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DeactivateEvaluationFormResult call() throws Exception { DeactivateEvaluationFormResult result = null; try { result = deactivateEvaluationForm(deactivateEvaluationFormRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(deactivateEvaluationFormRequest, result); return result; } }); } /** *

* Deletes a contact evaluation in the specified Amazon Connect instance. *

* * @param deleteContactEvaluationRequest * @return A Java Future object containing the response from the * DeleteContactEvaluation service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteContactEvaluationAsync( final DeleteContactEvaluationRequest deleteContactEvaluationRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { deleteContactEvaluation(deleteContactEvaluationRequest); return null; } }); } /** *

* Deletes a contact evaluation in the specified Amazon Connect instance. *

* * @param deleteContactEvaluationRequest * @return A Java Future object containing the response from the * DeleteContactEvaluation service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteContactEvaluationAsync( final DeleteContactEvaluationRequest deleteContactEvaluationRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { deleteContactEvaluation(deleteContactEvaluationRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(deleteContactEvaluationRequest, result); return result; } }); } /** *

* Deletes a flow for the specified Amazon Connect instance. *

* * @param deleteContactFlowRequest * @return A Java Future object containing the response from the * DeleteContactFlow service method, as returned by Amazon Connect. * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteContactFlowAsync( final DeleteContactFlowRequest deleteContactFlowRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DeleteContactFlowResult call() throws Exception { return deleteContactFlow(deleteContactFlowRequest); } }); } /** *

* Deletes a flow for the specified Amazon Connect instance. *

* * @param deleteContactFlowRequest * @return A Java Future object containing the response from the * DeleteContactFlow service method, as returned by Amazon Connect. * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteContactFlowAsync( final DeleteContactFlowRequest deleteContactFlowRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DeleteContactFlowResult call() throws Exception { DeleteContactFlowResult result = null; try { result = deleteContactFlow(deleteContactFlowRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(deleteContactFlowRequest, result); return result; } }); } /** *

* Deletes the specified flow module. *

* * @param deleteContactFlowModuleRequest * @return A Java Future object containing the response from the * DeleteContactFlowModule service method, as returned by Amazon * Connect. * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteContactFlowModuleAsync( final DeleteContactFlowModuleRequest deleteContactFlowModuleRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DeleteContactFlowModuleResult call() throws Exception { return deleteContactFlowModule(deleteContactFlowModuleRequest); } }); } /** *

* Deletes the specified flow module. *

* * @param deleteContactFlowModuleRequest * @return A Java Future object containing the response from the * DeleteContactFlowModule service method, as returned by Amazon * Connect. * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteContactFlowModuleAsync( final DeleteContactFlowModuleRequest deleteContactFlowModuleRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DeleteContactFlowModuleResult call() throws Exception { DeleteContactFlowModuleResult result = null; try { result = deleteContactFlowModule(deleteContactFlowModuleRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(deleteContactFlowModuleRequest, result); return result; } }); } /** *

* Deletes an evaluation form in the specified Amazon Connect instance. *

*
    *
  • *

    * If the version property is provided, only the specified version of the * evaluation form is deleted. *

    *
  • *
  • *

    * If no version is provided, then the full form (all versions) is deleted. *

    *
  • *
* * @param deleteEvaluationFormRequest * @return A Java Future object containing the response from the * DeleteEvaluationForm service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteEvaluationFormAsync( final DeleteEvaluationFormRequest deleteEvaluationFormRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { deleteEvaluationForm(deleteEvaluationFormRequest); return null; } }); } /** *

* Deletes an evaluation form in the specified Amazon Connect instance. *

*
    *
  • *

    * If the version property is provided, only the specified version of the * evaluation form is deleted. *

    *
  • *
  • *

    * If no version is provided, then the full form (all versions) is deleted. *

    *
  • *
* * @param deleteEvaluationFormRequest * @return A Java Future object containing the response from the * DeleteEvaluationForm service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteEvaluationFormAsync( final DeleteEvaluationFormRequest deleteEvaluationFormRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { deleteEvaluationForm(deleteEvaluationFormRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(deleteEvaluationFormRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Deletes an hours of operation. *

* * @param deleteHoursOfOperationRequest * @return A Java Future object containing the response from the * DeleteHoursOfOperation service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteHoursOfOperationAsync( final DeleteHoursOfOperationRequest deleteHoursOfOperationRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { deleteHoursOfOperation(deleteHoursOfOperationRequest); return null; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Deletes an hours of operation. *

* * @param deleteHoursOfOperationRequest * @return A Java Future object containing the response from the * DeleteHoursOfOperation service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteHoursOfOperationAsync( final DeleteHoursOfOperationRequest deleteHoursOfOperationRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { deleteHoursOfOperation(deleteHoursOfOperationRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(deleteHoursOfOperationRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Deletes the Amazon Connect instance. *

*

* Amazon Connect enforces a limit on the total number of instances that you * can create or delete in 30 days. If you exceed this limit, you will get * an error message indicating there has been an excessive number of * attempts at creating or deleting instances. You must wait 30 days before * you can restart creating and deleting instances in your account. *

* * @param deleteInstanceRequest * @return A Java Future object containing the response from the * DeleteInstance service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteInstanceAsync(final DeleteInstanceRequest deleteInstanceRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { deleteInstance(deleteInstanceRequest); return null; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Deletes the Amazon Connect instance. *

*

* Amazon Connect enforces a limit on the total number of instances that you * can create or delete in 30 days. If you exceed this limit, you will get * an error message indicating there has been an excessive number of * attempts at creating or deleting instances. You must wait 30 days before * you can restart creating and deleting instances in your account. *

* * @param deleteInstanceRequest * @return A Java Future object containing the response from the * DeleteInstance service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteInstanceAsync(final DeleteInstanceRequest deleteInstanceRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { deleteInstance(deleteInstanceRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(deleteInstanceRequest, result); return result; } }); } /** *

* Deletes an Amazon Web Services resource association from an Amazon * Connect instance. The association must not have any use cases associated * with it. *

* * @param deleteIntegrationAssociationRequest * @return A Java Future object containing the response from the * DeleteIntegrationAssociation service method, as returned by * Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteIntegrationAssociationAsync( final DeleteIntegrationAssociationRequest deleteIntegrationAssociationRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { deleteIntegrationAssociation(deleteIntegrationAssociationRequest); return null; } }); } /** *

* Deletes an Amazon Web Services resource association from an Amazon * Connect instance. The association must not have any use cases associated * with it. *

* * @param deleteIntegrationAssociationRequest * @return A Java Future object containing the response from the * DeleteIntegrationAssociation service method, as returned by * Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteIntegrationAssociationAsync( final DeleteIntegrationAssociationRequest deleteIntegrationAssociationRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { deleteIntegrationAssociation(deleteIntegrationAssociationRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(deleteIntegrationAssociationRequest, result); return result; } }); } /** *

* Deletes a prompt. *

* * @param deletePromptRequest * @return A Java Future object containing the response from the * DeletePrompt service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deletePromptAsync(final DeletePromptRequest deletePromptRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { deletePrompt(deletePromptRequest); return null; } }); } /** *

* Deletes a prompt. *

* * @param deletePromptRequest * @return A Java Future object containing the response from the * DeletePrompt service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deletePromptAsync(final DeletePromptRequest deletePromptRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { deletePrompt(deletePromptRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(deletePromptRequest, result); return result; } }); } /** *

* Deletes a quick connect. *

* * @param deleteQuickConnectRequest * @return A Java Future object containing the response from the * DeleteQuickConnect service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteQuickConnectAsync( final DeleteQuickConnectRequest deleteQuickConnectRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { deleteQuickConnect(deleteQuickConnectRequest); return null; } }); } /** *

* Deletes a quick connect. *

* * @param deleteQuickConnectRequest * @return A Java Future object containing the response from the * DeleteQuickConnect service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteQuickConnectAsync( final DeleteQuickConnectRequest deleteQuickConnectRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { deleteQuickConnect(deleteQuickConnectRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(deleteQuickConnectRequest, result); return result; } }); } /** *

* Deletes a rule for the specified Amazon Connect instance. *

* * @param deleteRuleRequest * @return A Java Future object containing the response from the DeleteRule * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteRuleAsync(final DeleteRuleRequest deleteRuleRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { deleteRule(deleteRuleRequest); return null; } }); } /** *

* Deletes a rule for the specified Amazon Connect instance. *

* * @param deleteRuleRequest * @return A Java Future object containing the response from the DeleteRule * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteRuleAsync(final DeleteRuleRequest deleteRuleRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { deleteRule(deleteRuleRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(deleteRuleRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Deletes a security profile. *

* * @param deleteSecurityProfileRequest * @return A Java Future object containing the response from the * DeleteSecurityProfile service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AccessDeniedException * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteSecurityProfileAsync( final DeleteSecurityProfileRequest deleteSecurityProfileRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { deleteSecurityProfile(deleteSecurityProfileRequest); return null; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Deletes a security profile. *

* * @param deleteSecurityProfileRequest * @return A Java Future object containing the response from the * DeleteSecurityProfile service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AccessDeniedException * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteSecurityProfileAsync( final DeleteSecurityProfileRequest deleteSecurityProfileRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { deleteSecurityProfile(deleteSecurityProfileRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(deleteSecurityProfileRequest, result); return result; } }); } /** *

* Deletes the task template. *

* * @param deleteTaskTemplateRequest * @return A Java Future object containing the response from the * DeleteTaskTemplate service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteTaskTemplateAsync( final DeleteTaskTemplateRequest deleteTaskTemplateRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DeleteTaskTemplateResult call() throws Exception { return deleteTaskTemplate(deleteTaskTemplateRequest); } }); } /** *

* Deletes the task template. *

* * @param deleteTaskTemplateRequest * @return A Java Future object containing the response from the * DeleteTaskTemplate service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteTaskTemplateAsync( final DeleteTaskTemplateRequest deleteTaskTemplateRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DeleteTaskTemplateResult call() throws Exception { DeleteTaskTemplateResult result = null; try { result = deleteTaskTemplate(deleteTaskTemplateRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(deleteTaskTemplateRequest, result); return result; } }); } /** *

* Deletes a traffic distribution group. This API can be called only in the * Region where the traffic distribution group is created. *

*

* For more information about deleting traffic distribution groups, see Delete traffic distribution groups in the Amazon Connect * Administrator Guide. *

* * @param deleteTrafficDistributionGroupRequest * @return A Java Future object containing the response from the * DeleteTrafficDistributionGroup service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws AccessDeniedException * @throws ResourceInUseException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteTrafficDistributionGroupAsync( final DeleteTrafficDistributionGroupRequest deleteTrafficDistributionGroupRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DeleteTrafficDistributionGroupResult call() throws Exception { return deleteTrafficDistributionGroup(deleteTrafficDistributionGroupRequest); } }); } /** *

* Deletes a traffic distribution group. This API can be called only in the * Region where the traffic distribution group is created. *

*

* For more information about deleting traffic distribution groups, see Delete traffic distribution groups in the Amazon Connect * Administrator Guide. *

* * @param deleteTrafficDistributionGroupRequest * @return A Java Future object containing the response from the * DeleteTrafficDistributionGroup service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws AccessDeniedException * @throws ResourceInUseException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteTrafficDistributionGroupAsync( final DeleteTrafficDistributionGroupRequest deleteTrafficDistributionGroupRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DeleteTrafficDistributionGroupResult call() throws Exception { DeleteTrafficDistributionGroupResult result = null; try { result = deleteTrafficDistributionGroup(deleteTrafficDistributionGroupRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(deleteTrafficDistributionGroupRequest, result); return result; } }); } /** *

* Deletes a use case from an integration association. *

* * @param deleteUseCaseRequest * @return A Java Future object containing the response from the * DeleteUseCase service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteUseCaseAsync(final DeleteUseCaseRequest deleteUseCaseRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { deleteUseCase(deleteUseCaseRequest); return null; } }); } /** *

* Deletes a use case from an integration association. *

* * @param deleteUseCaseRequest * @return A Java Future object containing the response from the * DeleteUseCase service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteUseCaseAsync(final DeleteUseCaseRequest deleteUseCaseRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { deleteUseCase(deleteUseCaseRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(deleteUseCaseRequest, result); return result; } }); } /** *

* Deletes a user account from the specified Amazon Connect instance. *

*

* For information about what happens to a user's data when their account is * deleted, see Delete Users from Your Amazon Connect Instance in the Amazon * Connect Administrator Guide. *

* * @param deleteUserRequest * @return A Java Future object containing the response from the DeleteUser * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteUserAsync(final DeleteUserRequest deleteUserRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { deleteUser(deleteUserRequest); return null; } }); } /** *

* Deletes a user account from the specified Amazon Connect instance. *

*

* For information about what happens to a user's data when their account is * deleted, see Delete Users from Your Amazon Connect Instance in the Amazon * Connect Administrator Guide. *

* * @param deleteUserRequest * @return A Java Future object containing the response from the DeleteUser * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteUserAsync(final DeleteUserRequest deleteUserRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { deleteUser(deleteUserRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(deleteUserRequest, result); return result; } }); } /** *

* Deletes an existing user hierarchy group. It must not be associated with * any agents or have any active child groups. *

* * @param deleteUserHierarchyGroupRequest * @return A Java Future object containing the response from the * DeleteUserHierarchyGroup service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ResourceInUseException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteUserHierarchyGroupAsync( final DeleteUserHierarchyGroupRequest deleteUserHierarchyGroupRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { deleteUserHierarchyGroup(deleteUserHierarchyGroupRequest); return null; } }); } /** *

* Deletes an existing user hierarchy group. It must not be associated with * any agents or have any active child groups. *

* * @param deleteUserHierarchyGroupRequest * @return A Java Future object containing the response from the * DeleteUserHierarchyGroup service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ResourceInUseException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteUserHierarchyGroupAsync( final DeleteUserHierarchyGroupRequest deleteUserHierarchyGroupRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { deleteUserHierarchyGroup(deleteUserHierarchyGroupRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(deleteUserHierarchyGroupRequest, result); return result; } }); } /** *

* Deletes the vocabulary that has the given identifier. *

* * @param deleteVocabularyRequest * @return A Java Future object containing the response from the * DeleteVocabulary service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AccessDeniedException * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteVocabularyAsync( final DeleteVocabularyRequest deleteVocabularyRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DeleteVocabularyResult call() throws Exception { return deleteVocabulary(deleteVocabularyRequest); } }); } /** *

* Deletes the vocabulary that has the given identifier. *

* * @param deleteVocabularyRequest * @return A Java Future object containing the response from the * DeleteVocabulary service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AccessDeniedException * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future deleteVocabularyAsync( final DeleteVocabularyRequest deleteVocabularyRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DeleteVocabularyResult call() throws Exception { DeleteVocabularyResult result = null; try { result = deleteVocabulary(deleteVocabularyRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(deleteVocabularyRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Describes an agent status. *

* * @param describeAgentStatusRequest * @return A Java Future object containing the response from the * DescribeAgentStatus service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeAgentStatusAsync( final DescribeAgentStatusRequest describeAgentStatusRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeAgentStatusResult call() throws Exception { return describeAgentStatus(describeAgentStatusRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Describes an agent status. *

* * @param describeAgentStatusRequest * @return A Java Future object containing the response from the * DescribeAgentStatus service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeAgentStatusAsync( final DescribeAgentStatusRequest describeAgentStatusRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeAgentStatusResult call() throws Exception { DescribeAgentStatusResult result = null; try { result = describeAgentStatus(describeAgentStatusRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(describeAgentStatusRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Describes the specified contact. *

* *

* Contact information remains available in Amazon Connect for 24 months, * and then it is deleted. *

*

* Only data from November 12, 2021, and later is returned by this API. *

*
* * @param describeContactRequest * @return A Java Future object containing the response from the * DescribeContact service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeContactAsync( final DescribeContactRequest describeContactRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeContactResult call() throws Exception { return describeContact(describeContactRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Describes the specified contact. *

* *

* Contact information remains available in Amazon Connect for 24 months, * and then it is deleted. *

*

* Only data from November 12, 2021, and later is returned by this API. *

*
* * @param describeContactRequest * @return A Java Future object containing the response from the * DescribeContact service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeContactAsync( final DescribeContactRequest describeContactRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeContactResult call() throws Exception { DescribeContactResult result = null; try { result = describeContact(describeContactRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(describeContactRequest, result); return result; } }); } /** *

* Describes a contact evaluation in the specified Amazon Connect instance. *

* * @param describeContactEvaluationRequest * @return A Java Future object containing the response from the * DescribeContactEvaluation service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeContactEvaluationAsync( final DescribeContactEvaluationRequest describeContactEvaluationRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeContactEvaluationResult call() throws Exception { return describeContactEvaluation(describeContactEvaluationRequest); } }); } /** *

* Describes a contact evaluation in the specified Amazon Connect instance. *

* * @param describeContactEvaluationRequest * @return A Java Future object containing the response from the * DescribeContactEvaluation service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeContactEvaluationAsync( final DescribeContactEvaluationRequest describeContactEvaluationRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeContactEvaluationResult call() throws Exception { DescribeContactEvaluationResult result = null; try { result = describeContactEvaluation(describeContactEvaluationRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(describeContactEvaluationRequest, result); return result; } }); } /** *

* Describes the specified flow. *

*

* You can also create and update flows using the Amazon Connect Flow language. *

* * @param describeContactFlowRequest * @return A Java Future object containing the response from the * DescribeContactFlow service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ContactFlowNotPublishedException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeContactFlowAsync( final DescribeContactFlowRequest describeContactFlowRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeContactFlowResult call() throws Exception { return describeContactFlow(describeContactFlowRequest); } }); } /** *

* Describes the specified flow. *

*

* You can also create and update flows using the Amazon Connect Flow language. *

* * @param describeContactFlowRequest * @return A Java Future object containing the response from the * DescribeContactFlow service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ContactFlowNotPublishedException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeContactFlowAsync( final DescribeContactFlowRequest describeContactFlowRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeContactFlowResult call() throws Exception { DescribeContactFlowResult result = null; try { result = describeContactFlow(describeContactFlowRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(describeContactFlowRequest, result); return result; } }); } /** *

* Describes the specified flow module. *

* * @param describeContactFlowModuleRequest * @return A Java Future object containing the response from the * DescribeContactFlowModule service method, as returned by Amazon * Connect. * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeContactFlowModuleAsync( final DescribeContactFlowModuleRequest describeContactFlowModuleRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeContactFlowModuleResult call() throws Exception { return describeContactFlowModule(describeContactFlowModuleRequest); } }); } /** *

* Describes the specified flow module. *

* * @param describeContactFlowModuleRequest * @return A Java Future object containing the response from the * DescribeContactFlowModule service method, as returned by Amazon * Connect. * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeContactFlowModuleAsync( final DescribeContactFlowModuleRequest describeContactFlowModuleRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeContactFlowModuleResult call() throws Exception { DescribeContactFlowModuleResult result = null; try { result = describeContactFlowModule(describeContactFlowModuleRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(describeContactFlowModuleRequest, result); return result; } }); } /** *

* Describes an evaluation form in the specified Amazon Connect instance. If * the version property is not provided, the latest version of the * evaluation form is described. *

* * @param describeEvaluationFormRequest * @return A Java Future object containing the response from the * DescribeEvaluationForm service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeEvaluationFormAsync( final DescribeEvaluationFormRequest describeEvaluationFormRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeEvaluationFormResult call() throws Exception { return describeEvaluationForm(describeEvaluationFormRequest); } }); } /** *

* Describes an evaluation form in the specified Amazon Connect instance. If * the version property is not provided, the latest version of the * evaluation form is described. *

* * @param describeEvaluationFormRequest * @return A Java Future object containing the response from the * DescribeEvaluationForm service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeEvaluationFormAsync( final DescribeEvaluationFormRequest describeEvaluationFormRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeEvaluationFormResult call() throws Exception { DescribeEvaluationFormResult result = null; try { result = describeEvaluationForm(describeEvaluationFormRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(describeEvaluationFormRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Describes the hours of operation. *

* * @param describeHoursOfOperationRequest * @return A Java Future object containing the response from the * DescribeHoursOfOperation service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeHoursOfOperationAsync( final DescribeHoursOfOperationRequest describeHoursOfOperationRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeHoursOfOperationResult call() throws Exception { return describeHoursOfOperation(describeHoursOfOperationRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Describes the hours of operation. *

* * @param describeHoursOfOperationRequest * @return A Java Future object containing the response from the * DescribeHoursOfOperation service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeHoursOfOperationAsync( final DescribeHoursOfOperationRequest describeHoursOfOperationRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeHoursOfOperationResult call() throws Exception { DescribeHoursOfOperationResult result = null; try { result = describeHoursOfOperation(describeHoursOfOperationRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(describeHoursOfOperationRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Returns the current state of the specified instance identifier. It tracks * the instance while it is being created and returns an error status, if * applicable. *

*

* If an instance is not created successfully, the instance status reason * field returns details relevant to the reason. The instance in a failed * state is returned only for 24 hours after the CreateInstance API was * invoked. *

* * @param describeInstanceRequest * @return A Java Future object containing the response from the * DescribeInstance service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeInstanceAsync( final DescribeInstanceRequest describeInstanceRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeInstanceResult call() throws Exception { return describeInstance(describeInstanceRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Returns the current state of the specified instance identifier. It tracks * the instance while it is being created and returns an error status, if * applicable. *

*

* If an instance is not created successfully, the instance status reason * field returns details relevant to the reason. The instance in a failed * state is returned only for 24 hours after the CreateInstance API was * invoked. *

* * @param describeInstanceRequest * @return A Java Future object containing the response from the * DescribeInstance service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeInstanceAsync( final DescribeInstanceRequest describeInstanceRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeInstanceResult call() throws Exception { DescribeInstanceResult result = null; try { result = describeInstance(describeInstanceRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(describeInstanceRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Describes the specified instance attribute. *

* * @param describeInstanceAttributeRequest * @return A Java Future object containing the response from the * DescribeInstanceAttribute service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeInstanceAttributeAsync( final DescribeInstanceAttributeRequest describeInstanceAttributeRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeInstanceAttributeResult call() throws Exception { return describeInstanceAttribute(describeInstanceAttributeRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Describes the specified instance attribute. *

* * @param describeInstanceAttributeRequest * @return A Java Future object containing the response from the * DescribeInstanceAttribute service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeInstanceAttributeAsync( final DescribeInstanceAttributeRequest describeInstanceAttributeRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeInstanceAttributeResult call() throws Exception { DescribeInstanceAttributeResult result = null; try { result = describeInstanceAttribute(describeInstanceAttributeRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(describeInstanceAttributeRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Retrieves the current storage configurations for the specified resource * type, association ID, and instance ID. *

* * @param describeInstanceStorageConfigRequest * @return A Java Future object containing the response from the * DescribeInstanceStorageConfig service method, as returned by * Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeInstanceStorageConfigAsync( final DescribeInstanceStorageConfigRequest describeInstanceStorageConfigRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeInstanceStorageConfigResult call() throws Exception { return describeInstanceStorageConfig(describeInstanceStorageConfigRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Retrieves the current storage configurations for the specified resource * type, association ID, and instance ID. *

* * @param describeInstanceStorageConfigRequest * @return A Java Future object containing the response from the * DescribeInstanceStorageConfig service method, as returned by * Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeInstanceStorageConfigAsync( final DescribeInstanceStorageConfigRequest describeInstanceStorageConfigRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeInstanceStorageConfigResult call() throws Exception { DescribeInstanceStorageConfigResult result = null; try { result = describeInstanceStorageConfig(describeInstanceStorageConfigRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(describeInstanceStorageConfigRequest, result); return result; } }); } /** *

* Gets details and status of a phone number that’s claimed to your Amazon * Connect instance or traffic distribution group. *

* *

* If the number is claimed to a traffic distribution group, and you are * calling in the Amazon Web Services Region where the traffic distribution * group was created, you can use either a phone number ARN or UUID value * for the PhoneNumberId URI request parameter. However, if the * number is claimed to a traffic distribution group and you are calling * this API in the alternate Amazon Web Services Region associated with the * traffic distribution group, you must provide a full phone number ARN. If * a UUID is provided in this scenario, you will receive a * ResourceNotFoundException. *

*
* * @param describePhoneNumberRequest * @return A Java Future object containing the response from the * DescribePhoneNumber service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describePhoneNumberAsync( final DescribePhoneNumberRequest describePhoneNumberRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribePhoneNumberResult call() throws Exception { return describePhoneNumber(describePhoneNumberRequest); } }); } /** *

* Gets details and status of a phone number that’s claimed to your Amazon * Connect instance or traffic distribution group. *

* *

* If the number is claimed to a traffic distribution group, and you are * calling in the Amazon Web Services Region where the traffic distribution * group was created, you can use either a phone number ARN or UUID value * for the PhoneNumberId URI request parameter. However, if the * number is claimed to a traffic distribution group and you are calling * this API in the alternate Amazon Web Services Region associated with the * traffic distribution group, you must provide a full phone number ARN. If * a UUID is provided in this scenario, you will receive a * ResourceNotFoundException. *

*
* * @param describePhoneNumberRequest * @return A Java Future object containing the response from the * DescribePhoneNumber service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describePhoneNumberAsync( final DescribePhoneNumberRequest describePhoneNumberRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribePhoneNumberResult call() throws Exception { DescribePhoneNumberResult result = null; try { result = describePhoneNumber(describePhoneNumberRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(describePhoneNumberRequest, result); return result; } }); } /** *

* Describes the prompt. *

* * @param describePromptRequest * @return A Java Future object containing the response from the * DescribePrompt service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describePromptAsync( final DescribePromptRequest describePromptRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribePromptResult call() throws Exception { return describePrompt(describePromptRequest); } }); } /** *

* Describes the prompt. *

* * @param describePromptRequest * @return A Java Future object containing the response from the * DescribePrompt service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describePromptAsync( final DescribePromptRequest describePromptRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribePromptResult call() throws Exception { DescribePromptResult result = null; try { result = describePrompt(describePromptRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(describePromptRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Describes the specified queue. *

* * @param describeQueueRequest * @return A Java Future object containing the response from the * DescribeQueue service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeQueueAsync( final DescribeQueueRequest describeQueueRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeQueueResult call() throws Exception { return describeQueue(describeQueueRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Describes the specified queue. *

* * @param describeQueueRequest * @return A Java Future object containing the response from the * DescribeQueue service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeQueueAsync( final DescribeQueueRequest describeQueueRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeQueueResult call() throws Exception { DescribeQueueResult result = null; try { result = describeQueue(describeQueueRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(describeQueueRequest, result); return result; } }); } /** *

* Describes the quick connect. *

* * @param describeQuickConnectRequest * @return A Java Future object containing the response from the * DescribeQuickConnect service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeQuickConnectAsync( final DescribeQuickConnectRequest describeQuickConnectRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeQuickConnectResult call() throws Exception { return describeQuickConnect(describeQuickConnectRequest); } }); } /** *

* Describes the quick connect. *

* * @param describeQuickConnectRequest * @return A Java Future object containing the response from the * DescribeQuickConnect service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeQuickConnectAsync( final DescribeQuickConnectRequest describeQuickConnectRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeQuickConnectResult call() throws Exception { DescribeQuickConnectResult result = null; try { result = describeQuickConnect(describeQuickConnectRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(describeQuickConnectRequest, result); return result; } }); } /** *

* Describes the specified routing profile. *

* * @param describeRoutingProfileRequest * @return A Java Future object containing the response from the * DescribeRoutingProfile service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeRoutingProfileAsync( final DescribeRoutingProfileRequest describeRoutingProfileRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeRoutingProfileResult call() throws Exception { return describeRoutingProfile(describeRoutingProfileRequest); } }); } /** *

* Describes the specified routing profile. *

* * @param describeRoutingProfileRequest * @return A Java Future object containing the response from the * DescribeRoutingProfile service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeRoutingProfileAsync( final DescribeRoutingProfileRequest describeRoutingProfileRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeRoutingProfileResult call() throws Exception { DescribeRoutingProfileResult result = null; try { result = describeRoutingProfile(describeRoutingProfileRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(describeRoutingProfileRequest, result); return result; } }); } /** *

* Describes a rule for the specified Amazon Connect instance. *

* * @param describeRuleRequest * @return A Java Future object containing the response from the * DescribeRule service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeRuleAsync( final DescribeRuleRequest describeRuleRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeRuleResult call() throws Exception { return describeRule(describeRuleRequest); } }); } /** *

* Describes a rule for the specified Amazon Connect instance. *

* * @param describeRuleRequest * @return A Java Future object containing the response from the * DescribeRule service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeRuleAsync( final DescribeRuleRequest describeRuleRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeRuleResult call() throws Exception { DescribeRuleResult result = null; try { result = describeRule(describeRuleRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(describeRuleRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Gets basic information about the security profle. *

* * @param describeSecurityProfileRequest * @return A Java Future object containing the response from the * DescribeSecurityProfile service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeSecurityProfileAsync( final DescribeSecurityProfileRequest describeSecurityProfileRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeSecurityProfileResult call() throws Exception { return describeSecurityProfile(describeSecurityProfileRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Gets basic information about the security profle. *

* * @param describeSecurityProfileRequest * @return A Java Future object containing the response from the * DescribeSecurityProfile service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeSecurityProfileAsync( final DescribeSecurityProfileRequest describeSecurityProfileRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeSecurityProfileResult call() throws Exception { DescribeSecurityProfileResult result = null; try { result = describeSecurityProfile(describeSecurityProfileRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(describeSecurityProfileRequest, result); return result; } }); } /** *

* Gets details and status of a traffic distribution group. *

* * @param describeTrafficDistributionGroupRequest * @return A Java Future object containing the response from the * DescribeTrafficDistributionGroup service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeTrafficDistributionGroupAsync( final DescribeTrafficDistributionGroupRequest describeTrafficDistributionGroupRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeTrafficDistributionGroupResult call() throws Exception { return describeTrafficDistributionGroup(describeTrafficDistributionGroupRequest); } }); } /** *

* Gets details and status of a traffic distribution group. *

* * @param describeTrafficDistributionGroupRequest * @return A Java Future object containing the response from the * DescribeTrafficDistributionGroup service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeTrafficDistributionGroupAsync( final DescribeTrafficDistributionGroupRequest describeTrafficDistributionGroupRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeTrafficDistributionGroupResult call() throws Exception { DescribeTrafficDistributionGroupResult result = null; try { result = describeTrafficDistributionGroup(describeTrafficDistributionGroupRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(describeTrafficDistributionGroupRequest, result); return result; } }); } /** *

* Describes the specified user account. You can find the instance ID in the Amazon Connect console (it’s the final * part of the ARN). The console does not display the user IDs. Instead, * list the users and note the IDs provided in the output. *

* * @param describeUserRequest * @return A Java Future object containing the response from the * DescribeUser service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeUserAsync( final DescribeUserRequest describeUserRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeUserResult call() throws Exception { return describeUser(describeUserRequest); } }); } /** *

* Describes the specified user account. You can find the instance ID in the Amazon Connect console (it’s the final * part of the ARN). The console does not display the user IDs. Instead, * list the users and note the IDs provided in the output. *

* * @param describeUserRequest * @return A Java Future object containing the response from the * DescribeUser service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeUserAsync( final DescribeUserRequest describeUserRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeUserResult call() throws Exception { DescribeUserResult result = null; try { result = describeUser(describeUserRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(describeUserRequest, result); return result; } }); } /** *

* Describes the specified hierarchy group. *

* * @param describeUserHierarchyGroupRequest * @return A Java Future object containing the response from the * DescribeUserHierarchyGroup service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeUserHierarchyGroupAsync( final DescribeUserHierarchyGroupRequest describeUserHierarchyGroupRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeUserHierarchyGroupResult call() throws Exception { return describeUserHierarchyGroup(describeUserHierarchyGroupRequest); } }); } /** *

* Describes the specified hierarchy group. *

* * @param describeUserHierarchyGroupRequest * @return A Java Future object containing the response from the * DescribeUserHierarchyGroup service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeUserHierarchyGroupAsync( final DescribeUserHierarchyGroupRequest describeUserHierarchyGroupRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeUserHierarchyGroupResult call() throws Exception { DescribeUserHierarchyGroupResult result = null; try { result = describeUserHierarchyGroup(describeUserHierarchyGroupRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(describeUserHierarchyGroupRequest, result); return result; } }); } /** *

* Describes the hierarchy structure of the specified Amazon Connect * instance. *

* * @param describeUserHierarchyStructureRequest * @return A Java Future object containing the response from the * DescribeUserHierarchyStructure service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeUserHierarchyStructureAsync( final DescribeUserHierarchyStructureRequest describeUserHierarchyStructureRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeUserHierarchyStructureResult call() throws Exception { return describeUserHierarchyStructure(describeUserHierarchyStructureRequest); } }); } /** *

* Describes the hierarchy structure of the specified Amazon Connect * instance. *

* * @param describeUserHierarchyStructureRequest * @return A Java Future object containing the response from the * DescribeUserHierarchyStructure service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeUserHierarchyStructureAsync( final DescribeUserHierarchyStructureRequest describeUserHierarchyStructureRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeUserHierarchyStructureResult call() throws Exception { DescribeUserHierarchyStructureResult result = null; try { result = describeUserHierarchyStructure(describeUserHierarchyStructureRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(describeUserHierarchyStructureRequest, result); return result; } }); } /** *

* Describes the specified vocabulary. *

* * @param describeVocabularyRequest * @return A Java Future object containing the response from the * DescribeVocabulary service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeVocabularyAsync( final DescribeVocabularyRequest describeVocabularyRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeVocabularyResult call() throws Exception { return describeVocabulary(describeVocabularyRequest); } }); } /** *

* Describes the specified vocabulary. *

* * @param describeVocabularyRequest * @return A Java Future object containing the response from the * DescribeVocabulary service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future describeVocabularyAsync( final DescribeVocabularyRequest describeVocabularyRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DescribeVocabularyResult call() throws Exception { DescribeVocabularyResult result = null; try { result = describeVocabulary(describeVocabularyRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(describeVocabularyRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Revokes access to integrated applications from Amazon Connect. *

* * @param disassociateApprovedOriginRequest * @return A Java Future object containing the response from the * DisassociateApprovedOrigin service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future disassociateApprovedOriginAsync( final DisassociateApprovedOriginRequest disassociateApprovedOriginRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { disassociateApprovedOrigin(disassociateApprovedOriginRequest); return null; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Revokes access to integrated applications from Amazon Connect. *

* * @param disassociateApprovedOriginRequest * @return A Java Future object containing the response from the * DisassociateApprovedOrigin service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future disassociateApprovedOriginAsync( final DisassociateApprovedOriginRequest disassociateApprovedOriginRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { disassociateApprovedOrigin(disassociateApprovedOriginRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(disassociateApprovedOriginRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Revokes authorization from the specified instance to access the specified * Amazon Lex or Amazon Lex V2 bot. *

* * @param disassociateBotRequest * @return A Java Future object containing the response from the * DisassociateBot service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future disassociateBotAsync(final DisassociateBotRequest disassociateBotRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { disassociateBot(disassociateBotRequest); return null; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Revokes authorization from the specified instance to access the specified * Amazon Lex or Amazon Lex V2 bot. *

* * @param disassociateBotRequest * @return A Java Future object containing the response from the * DisassociateBot service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future disassociateBotAsync(final DisassociateBotRequest disassociateBotRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { disassociateBot(disassociateBotRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(disassociateBotRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Removes the storage type configurations for the specified resource type * and association ID. *

* * @param disassociateInstanceStorageConfigRequest * @return A Java Future object containing the response from the * DisassociateInstanceStorageConfig service method, as returned by * Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future disassociateInstanceStorageConfigAsync( final DisassociateInstanceStorageConfigRequest disassociateInstanceStorageConfigRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { disassociateInstanceStorageConfig(disassociateInstanceStorageConfigRequest); return null; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Removes the storage type configurations for the specified resource type * and association ID. *

* * @param disassociateInstanceStorageConfigRequest * @return A Java Future object containing the response from the * DisassociateInstanceStorageConfig service method, as returned by * Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future disassociateInstanceStorageConfigAsync( final DisassociateInstanceStorageConfigRequest disassociateInstanceStorageConfigRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { disassociateInstanceStorageConfig(disassociateInstanceStorageConfigRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(disassociateInstanceStorageConfigRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Remove the Lambda function from the dropdown options available in the * relevant flow blocks. *

* * @param disassociateLambdaFunctionRequest * @return A Java Future object containing the response from the * DisassociateLambdaFunction service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future disassociateLambdaFunctionAsync( final DisassociateLambdaFunctionRequest disassociateLambdaFunctionRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { disassociateLambdaFunction(disassociateLambdaFunctionRequest); return null; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Remove the Lambda function from the dropdown options available in the * relevant flow blocks. *

* * @param disassociateLambdaFunctionRequest * @return A Java Future object containing the response from the * DisassociateLambdaFunction service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future disassociateLambdaFunctionAsync( final DisassociateLambdaFunctionRequest disassociateLambdaFunctionRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { disassociateLambdaFunction(disassociateLambdaFunctionRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(disassociateLambdaFunctionRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Revokes authorization from the specified instance to access the specified * Amazon Lex bot. *

* * @param disassociateLexBotRequest * @return A Java Future object containing the response from the * DisassociateLexBot service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future disassociateLexBotAsync( final DisassociateLexBotRequest disassociateLexBotRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { disassociateLexBot(disassociateLexBotRequest); return null; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Revokes authorization from the specified instance to access the specified * Amazon Lex bot. *

* * @param disassociateLexBotRequest * @return A Java Future object containing the response from the * DisassociateLexBot service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future disassociateLexBotAsync( final DisassociateLexBotRequest disassociateLexBotRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { disassociateLexBot(disassociateLexBotRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(disassociateLexBotRequest, result); return result; } }); } /** *

* Removes the flow association from a phone number claimed to your Amazon * Connect instance. *

* *

* If the number is claimed to a traffic distribution group, and you are * calling this API using an instance in the Amazon Web Services Region * where the traffic distribution group was created, you can use either a * full phone number ARN or UUID value for the PhoneNumberId * URI request parameter. However, if the number is claimed to a traffic * distribution group and you are calling this API using an instance in the * alternate Amazon Web Services Region associated with the traffic * distribution group, you must provide a full phone number ARN. If a UUID * is provided in this scenario, you will receive a * ResourceNotFoundException. *

*
* * @param disassociatePhoneNumberContactFlowRequest * @return A Java Future object containing the response from the * DisassociatePhoneNumberContactFlow service method, as returned by * Amazon Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future disassociatePhoneNumberContactFlowAsync( final DisassociatePhoneNumberContactFlowRequest disassociatePhoneNumberContactFlowRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { disassociatePhoneNumberContactFlow(disassociatePhoneNumberContactFlowRequest); return null; } }); } /** *

* Removes the flow association from a phone number claimed to your Amazon * Connect instance. *

* *

* If the number is claimed to a traffic distribution group, and you are * calling this API using an instance in the Amazon Web Services Region * where the traffic distribution group was created, you can use either a * full phone number ARN or UUID value for the PhoneNumberId * URI request parameter. However, if the number is claimed to a traffic * distribution group and you are calling this API using an instance in the * alternate Amazon Web Services Region associated with the traffic * distribution group, you must provide a full phone number ARN. If a UUID * is provided in this scenario, you will receive a * ResourceNotFoundException. *

*
* * @param disassociatePhoneNumberContactFlowRequest * @return A Java Future object containing the response from the * DisassociatePhoneNumberContactFlow service method, as returned by * Amazon Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future disassociatePhoneNumberContactFlowAsync( final DisassociatePhoneNumberContactFlowRequest disassociatePhoneNumberContactFlowRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { disassociatePhoneNumberContactFlow(disassociatePhoneNumberContactFlowRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(disassociatePhoneNumberContactFlowRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Disassociates a set of quick connects from a queue. *

* * @param disassociateQueueQuickConnectsRequest * @return A Java Future object containing the response from the * DisassociateQueueQuickConnects service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future disassociateQueueQuickConnectsAsync( final DisassociateQueueQuickConnectsRequest disassociateQueueQuickConnectsRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { disassociateQueueQuickConnects(disassociateQueueQuickConnectsRequest); return null; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Disassociates a set of quick connects from a queue. *

* * @param disassociateQueueQuickConnectsRequest * @return A Java Future object containing the response from the * DisassociateQueueQuickConnects service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future disassociateQueueQuickConnectsAsync( final DisassociateQueueQuickConnectsRequest disassociateQueueQuickConnectsRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { disassociateQueueQuickConnects(disassociateQueueQuickConnectsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(disassociateQueueQuickConnectsRequest, result); return result; } }); } /** *

* Disassociates a set of queues from a routing profile. *

* * @param disassociateRoutingProfileQueuesRequest * @return A Java Future object containing the response from the * DisassociateRoutingProfileQueues service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future disassociateRoutingProfileQueuesAsync( final DisassociateRoutingProfileQueuesRequest disassociateRoutingProfileQueuesRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { disassociateRoutingProfileQueues(disassociateRoutingProfileQueuesRequest); return null; } }); } /** *

* Disassociates a set of queues from a routing profile. *

* * @param disassociateRoutingProfileQueuesRequest * @return A Java Future object containing the response from the * DisassociateRoutingProfileQueues service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future disassociateRoutingProfileQueuesAsync( final DisassociateRoutingProfileQueuesRequest disassociateRoutingProfileQueuesRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { disassociateRoutingProfileQueues(disassociateRoutingProfileQueuesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(disassociateRoutingProfileQueuesRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Deletes the specified security key. *

* * @param disassociateSecurityKeyRequest * @return A Java Future object containing the response from the * DisassociateSecurityKey service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future disassociateSecurityKeyAsync( final DisassociateSecurityKeyRequest disassociateSecurityKeyRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { disassociateSecurityKey(disassociateSecurityKeyRequest); return null; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Deletes the specified security key. *

* * @param disassociateSecurityKeyRequest * @return A Java Future object containing the response from the * DisassociateSecurityKey service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future disassociateSecurityKeyAsync( final DisassociateSecurityKeyRequest disassociateSecurityKeyRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { disassociateSecurityKey(disassociateSecurityKeyRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(disassociateSecurityKeyRequest, result); return result; } }); } /** *

* Dismisses contacts from an agent’s CCP and returns the agent to an * available state, which allows the agent to receive a new routed contact. * Contacts can only be dismissed if they are in a MISSED, * ERROR, ENDED, or REJECTED state in * the Agent Event Stream. *

* * @param dismissUserContactRequest * @return A Java Future object containing the response from the * DismissUserContact service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws AccessDeniedException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future dismissUserContactAsync( final DismissUserContactRequest dismissUserContactRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DismissUserContactResult call() throws Exception { return dismissUserContact(dismissUserContactRequest); } }); } /** *

* Dismisses contacts from an agent’s CCP and returns the agent to an * available state, which allows the agent to receive a new routed contact. * Contacts can only be dismissed if they are in a MISSED, * ERROR, ENDED, or REJECTED state in * the Agent Event Stream. *

* * @param dismissUserContactRequest * @return A Java Future object containing the response from the * DismissUserContact service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws AccessDeniedException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future dismissUserContactAsync( final DismissUserContactRequest dismissUserContactRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public DismissUserContactResult call() throws Exception { DismissUserContactResult result = null; try { result = dismissUserContact(dismissUserContactRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(dismissUserContactRequest, result); return result; } }); } /** *

* Retrieves the contact attributes for the specified contact. *

* * @param getContactAttributesRequest * @return A Java Future object containing the response from the * GetContactAttributes service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future getContactAttributesAsync( final GetContactAttributesRequest getContactAttributesRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public GetContactAttributesResult call() throws Exception { return getContactAttributes(getContactAttributesRequest); } }); } /** *

* Retrieves the contact attributes for the specified contact. *

* * @param getContactAttributesRequest * @return A Java Future object containing the response from the * GetContactAttributes service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future getContactAttributesAsync( final GetContactAttributesRequest getContactAttributesRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public GetContactAttributesResult call() throws Exception { GetContactAttributesResult result = null; try { result = getContactAttributes(getContactAttributesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(getContactAttributesRequest, result); return result; } }); } /** *

* Gets the real-time metric data from the specified Amazon Connect * instance. *

*

* For a description of each metric, see Real-time Metrics Definitions in the Amazon Connect Administrator * Guide. *

* * @param getCurrentMetricDataRequest * @return A Java Future object containing the response from the * GetCurrentMetricData service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws InternalServiceException * @throws ThrottlingException * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future getCurrentMetricDataAsync( final GetCurrentMetricDataRequest getCurrentMetricDataRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public GetCurrentMetricDataResult call() throws Exception { return getCurrentMetricData(getCurrentMetricDataRequest); } }); } /** *

* Gets the real-time metric data from the specified Amazon Connect * instance. *

*

* For a description of each metric, see Real-time Metrics Definitions in the Amazon Connect Administrator * Guide. *

* * @param getCurrentMetricDataRequest * @return A Java Future object containing the response from the * GetCurrentMetricData service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws InternalServiceException * @throws ThrottlingException * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future getCurrentMetricDataAsync( final GetCurrentMetricDataRequest getCurrentMetricDataRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public GetCurrentMetricDataResult call() throws Exception { GetCurrentMetricDataResult result = null; try { result = getCurrentMetricData(getCurrentMetricDataRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(getCurrentMetricDataRequest, result); return result; } }); } /** *

* Gets the real-time active user data from the specified Amazon Connect * instance. *

* * @param getCurrentUserDataRequest * @return A Java Future object containing the response from the * GetCurrentUserData service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws InternalServiceException * @throws ThrottlingException * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future getCurrentUserDataAsync( final GetCurrentUserDataRequest getCurrentUserDataRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public GetCurrentUserDataResult call() throws Exception { return getCurrentUserData(getCurrentUserDataRequest); } }); } /** *

* Gets the real-time active user data from the specified Amazon Connect * instance. *

* * @param getCurrentUserDataRequest * @return A Java Future object containing the response from the * GetCurrentUserData service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws InternalServiceException * @throws ThrottlingException * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future getCurrentUserDataAsync( final GetCurrentUserDataRequest getCurrentUserDataRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public GetCurrentUserDataResult call() throws Exception { GetCurrentUserDataResult result = null; try { result = getCurrentUserData(getCurrentUserDataRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(getCurrentUserDataRequest, result); return result; } }); } /** *

* Retrieves a token for federation. *

* *

* This API doesn't support root users. If you try to invoke * GetFederationToken with root credentials, an error message similar to the * following one appears: *

*

* Provided identity: Principal: .... User: .... cannot be used for federation with Amazon Connect *

*
* * @param getFederationTokenRequest * @return A Java Future object containing the response from the * GetFederationToken service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws UserNotFoundException * @throws InternalServiceException * @throws DuplicateResourceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future getFederationTokenAsync( final GetFederationTokenRequest getFederationTokenRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public GetFederationTokenResult call() throws Exception { return getFederationToken(getFederationTokenRequest); } }); } /** *

* Retrieves a token for federation. *

* *

* This API doesn't support root users. If you try to invoke * GetFederationToken with root credentials, an error message similar to the * following one appears: *

*

* Provided identity: Principal: .... User: .... cannot be used for federation with Amazon Connect *

*
* * @param getFederationTokenRequest * @return A Java Future object containing the response from the * GetFederationToken service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws UserNotFoundException * @throws InternalServiceException * @throws DuplicateResourceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future getFederationTokenAsync( final GetFederationTokenRequest getFederationTokenRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public GetFederationTokenResult call() throws Exception { GetFederationTokenResult result = null; try { result = getFederationToken(getFederationTokenRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(getFederationTokenRequest, result); return result; } }); } /** *

* Gets historical metric data from the specified Amazon Connect instance. *

*

* For a description of each historical metric, see Historical Metrics Definitions in the Amazon Connect * Administrator Guide. *

* * @param getMetricDataRequest * @return A Java Future object containing the response from the * GetMetricData service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws InternalServiceException * @throws ThrottlingException * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future getMetricDataAsync( final GetMetricDataRequest getMetricDataRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public GetMetricDataResult call() throws Exception { return getMetricData(getMetricDataRequest); } }); } /** *

* Gets historical metric data from the specified Amazon Connect instance. *

*

* For a description of each historical metric, see Historical Metrics Definitions in the Amazon Connect * Administrator Guide. *

* * @param getMetricDataRequest * @return A Java Future object containing the response from the * GetMetricData service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws InternalServiceException * @throws ThrottlingException * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future getMetricDataAsync( final GetMetricDataRequest getMetricDataRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public GetMetricDataResult call() throws Exception { GetMetricDataResult result = null; try { result = getMetricData(getMetricDataRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(getMetricDataRequest, result); return result; } }); } /** *

* Gets metric data from the specified Amazon Connect instance. *

*

* GetMetricDataV2 offers more features than GetMetricData, the previous version of this API. It has new metrics, * offers filtering at a metric level, and offers the ability to filter and * group data by channels, queues, routing profiles, agents, and agent * hierarchy levels. It can retrieve historical data for the last 35 days, * in 24-hour intervals. *

*

* For a description of the historical metrics that are supported by * GetMetricDataV2 and GetMetricData, see Historical metrics definitions in the Amazon Connect * Administrator's Guide. *

* * @param getMetricDataV2Request * @return A Java Future object containing the response from the * GetMetricDataV2 service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws InternalServiceException * @throws ThrottlingException * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future getMetricDataV2Async( final GetMetricDataV2Request getMetricDataV2Request) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public GetMetricDataV2Result call() throws Exception { return getMetricDataV2(getMetricDataV2Request); } }); } /** *

* Gets metric data from the specified Amazon Connect instance. *

*

* GetMetricDataV2 offers more features than GetMetricData, the previous version of this API. It has new metrics, * offers filtering at a metric level, and offers the ability to filter and * group data by channels, queues, routing profiles, agents, and agent * hierarchy levels. It can retrieve historical data for the last 35 days, * in 24-hour intervals. *

*

* For a description of the historical metrics that are supported by * GetMetricDataV2 and GetMetricData, see Historical metrics definitions in the Amazon Connect * Administrator's Guide. *

* * @param getMetricDataV2Request * @return A Java Future object containing the response from the * GetMetricDataV2 service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws InternalServiceException * @throws ThrottlingException * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future getMetricDataV2Async( final GetMetricDataV2Request getMetricDataV2Request, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public GetMetricDataV2Result call() throws Exception { GetMetricDataV2Result result = null; try { result = getMetricDataV2(getMetricDataV2Request); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(getMetricDataV2Request, result); return result; } }); } /** *

* Gets the prompt file. *

* * @param getPromptFileRequest * @return A Java Future object containing the response from the * GetPromptFile service method, as returned by Amazon Connect. * @throws InvalidParameterException * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future getPromptFileAsync( final GetPromptFileRequest getPromptFileRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public GetPromptFileResult call() throws Exception { return getPromptFile(getPromptFileRequest); } }); } /** *

* Gets the prompt file. *

* * @param getPromptFileRequest * @return A Java Future object containing the response from the * GetPromptFile service method, as returned by Amazon Connect. * @throws InvalidParameterException * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future getPromptFileAsync( final GetPromptFileRequest getPromptFileRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public GetPromptFileResult call() throws Exception { GetPromptFileResult result = null; try { result = getPromptFile(getPromptFileRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(getPromptFileRequest, result); return result; } }); } /** *

* Gets details about a specific task template in the specified Amazon * Connect instance. *

* * @param getTaskTemplateRequest * @return A Java Future object containing the response from the * GetTaskTemplate service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future getTaskTemplateAsync( final GetTaskTemplateRequest getTaskTemplateRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public GetTaskTemplateResult call() throws Exception { return getTaskTemplate(getTaskTemplateRequest); } }); } /** *

* Gets details about a specific task template in the specified Amazon * Connect instance. *

* * @param getTaskTemplateRequest * @return A Java Future object containing the response from the * GetTaskTemplate service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future getTaskTemplateAsync( final GetTaskTemplateRequest getTaskTemplateRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public GetTaskTemplateResult call() throws Exception { GetTaskTemplateResult result = null; try { result = getTaskTemplate(getTaskTemplateRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(getTaskTemplateRequest, result); return result; } }); } /** *

* Retrieves the current traffic distribution for a given traffic * distribution group. *

* * @param getTrafficDistributionRequest * @return A Java Future object containing the response from the * GetTrafficDistribution service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future getTrafficDistributionAsync( final GetTrafficDistributionRequest getTrafficDistributionRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public GetTrafficDistributionResult call() throws Exception { return getTrafficDistribution(getTrafficDistributionRequest); } }); } /** *

* Retrieves the current traffic distribution for a given traffic * distribution group. *

* * @param getTrafficDistributionRequest * @return A Java Future object containing the response from the * GetTrafficDistribution service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future getTrafficDistributionAsync( final GetTrafficDistributionRequest getTrafficDistributionRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public GetTrafficDistributionResult call() throws Exception { GetTrafficDistributionResult result = null; try { result = getTrafficDistribution(getTrafficDistributionRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(getTrafficDistributionRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Lists agent statuses. *

* * @param listAgentStatusesRequest * @return A Java Future object containing the response from the * ListAgentStatuses service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listAgentStatusesAsync( final ListAgentStatusesRequest listAgentStatusesRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListAgentStatusesResult call() throws Exception { return listAgentStatuses(listAgentStatusesRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Lists agent statuses. *

* * @param listAgentStatusesRequest * @return A Java Future object containing the response from the * ListAgentStatuses service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listAgentStatusesAsync( final ListAgentStatusesRequest listAgentStatusesRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListAgentStatusesResult call() throws Exception { ListAgentStatusesResult result = null; try { result = listAgentStatuses(listAgentStatusesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listAgentStatusesRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Returns a paginated list of all approved origins associated with the * instance. *

* * @param listApprovedOriginsRequest * @return A Java Future object containing the response from the * ListApprovedOrigins service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listApprovedOriginsAsync( final ListApprovedOriginsRequest listApprovedOriginsRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListApprovedOriginsResult call() throws Exception { return listApprovedOrigins(listApprovedOriginsRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Returns a paginated list of all approved origins associated with the * instance. *

* * @param listApprovedOriginsRequest * @return A Java Future object containing the response from the * ListApprovedOrigins service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listApprovedOriginsAsync( final ListApprovedOriginsRequest listApprovedOriginsRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListApprovedOriginsResult call() throws Exception { ListApprovedOriginsResult result = null; try { result = listApprovedOrigins(listApprovedOriginsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listApprovedOriginsRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* For the specified version of Amazon Lex, returns a paginated list of all * the Amazon Lex bots currently associated with the instance. Use this API * to returns both Amazon Lex V1 and V2 bots. *

* * @param listBotsRequest * @return A Java Future object containing the response from the ListBots * service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listBotsAsync(final ListBotsRequest listBotsRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListBotsResult call() throws Exception { return listBots(listBotsRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* For the specified version of Amazon Lex, returns a paginated list of all * the Amazon Lex bots currently associated with the instance. Use this API * to returns both Amazon Lex V1 and V2 bots. *

* * @param listBotsRequest * @return A Java Future object containing the response from the ListBots * service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listBotsAsync(final ListBotsRequest listBotsRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListBotsResult call() throws Exception { ListBotsResult result = null; try { result = listBots(listBotsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listBotsRequest, result); return result; } }); } /** *

* Lists contact evaluations in the specified Amazon Connect instance. *

* * @param listContactEvaluationsRequest * @return A Java Future object containing the response from the * ListContactEvaluations service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listContactEvaluationsAsync( final ListContactEvaluationsRequest listContactEvaluationsRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListContactEvaluationsResult call() throws Exception { return listContactEvaluations(listContactEvaluationsRequest); } }); } /** *

* Lists contact evaluations in the specified Amazon Connect instance. *

* * @param listContactEvaluationsRequest * @return A Java Future object containing the response from the * ListContactEvaluations service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listContactEvaluationsAsync( final ListContactEvaluationsRequest listContactEvaluationsRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListContactEvaluationsResult call() throws Exception { ListContactEvaluationsResult result = null; try { result = listContactEvaluations(listContactEvaluationsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listContactEvaluationsRequest, result); return result; } }); } /** *

* Provides information about the flow modules for the specified Amazon * Connect instance. *

* * @param listContactFlowModulesRequest * @return A Java Future object containing the response from the * ListContactFlowModules service method, as returned by Amazon * Connect. * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listContactFlowModulesAsync( final ListContactFlowModulesRequest listContactFlowModulesRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListContactFlowModulesResult call() throws Exception { return listContactFlowModules(listContactFlowModulesRequest); } }); } /** *

* Provides information about the flow modules for the specified Amazon * Connect instance. *

* * @param listContactFlowModulesRequest * @return A Java Future object containing the response from the * ListContactFlowModules service method, as returned by Amazon * Connect. * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listContactFlowModulesAsync( final ListContactFlowModulesRequest listContactFlowModulesRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListContactFlowModulesResult call() throws Exception { ListContactFlowModulesResult result = null; try { result = listContactFlowModules(listContactFlowModulesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listContactFlowModulesRequest, result); return result; } }); } /** *

* Provides information about the flows for the specified Amazon Connect * instance. *

*

* You can also create and update flows using the Amazon Connect Flow language. *

*

* For more information about flows, see Flows in the Amazon Connect Administrator Guide. *

* * @param listContactFlowsRequest * @return A Java Future object containing the response from the * ListContactFlows service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listContactFlowsAsync( final ListContactFlowsRequest listContactFlowsRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListContactFlowsResult call() throws Exception { return listContactFlows(listContactFlowsRequest); } }); } /** *

* Provides information about the flows for the specified Amazon Connect * instance. *

*

* You can also create and update flows using the Amazon Connect Flow language. *

*

* For more information about flows, see Flows in the Amazon Connect Administrator Guide. *

* * @param listContactFlowsRequest * @return A Java Future object containing the response from the * ListContactFlows service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listContactFlowsAsync( final ListContactFlowsRequest listContactFlowsRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListContactFlowsResult call() throws Exception { ListContactFlowsResult result = null; try { result = listContactFlows(listContactFlowsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listContactFlowsRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* For the specified referenceTypes, returns a list of * references associated with the contact. *

* * @param listContactReferencesRequest * @return A Java Future object containing the response from the * ListContactReferences service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listContactReferencesAsync( final ListContactReferencesRequest listContactReferencesRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListContactReferencesResult call() throws Exception { return listContactReferences(listContactReferencesRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* For the specified referenceTypes, returns a list of * references associated with the contact. *

* * @param listContactReferencesRequest * @return A Java Future object containing the response from the * ListContactReferences service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listContactReferencesAsync( final ListContactReferencesRequest listContactReferencesRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListContactReferencesResult call() throws Exception { ListContactReferencesResult result = null; try { result = listContactReferences(listContactReferencesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listContactReferencesRequest, result); return result; } }); } /** *

* Lists the default vocabularies for the specified Amazon Connect instance. *

* * @param listDefaultVocabulariesRequest * @return A Java Future object containing the response from the * ListDefaultVocabularies service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InternalServiceException * @throws ThrottlingException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listDefaultVocabulariesAsync( final ListDefaultVocabulariesRequest listDefaultVocabulariesRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListDefaultVocabulariesResult call() throws Exception { return listDefaultVocabularies(listDefaultVocabulariesRequest); } }); } /** *

* Lists the default vocabularies for the specified Amazon Connect instance. *

* * @param listDefaultVocabulariesRequest * @return A Java Future object containing the response from the * ListDefaultVocabularies service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InternalServiceException * @throws ThrottlingException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listDefaultVocabulariesAsync( final ListDefaultVocabulariesRequest listDefaultVocabulariesRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListDefaultVocabulariesResult call() throws Exception { ListDefaultVocabulariesResult result = null; try { result = listDefaultVocabularies(listDefaultVocabulariesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listDefaultVocabulariesRequest, result); return result; } }); } /** *

* Lists versions of an evaluation form in the specified Amazon Connect * instance. *

* * @param listEvaluationFormVersionsRequest * @return A Java Future object containing the response from the * ListEvaluationFormVersions service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listEvaluationFormVersionsAsync( final ListEvaluationFormVersionsRequest listEvaluationFormVersionsRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListEvaluationFormVersionsResult call() throws Exception { return listEvaluationFormVersions(listEvaluationFormVersionsRequest); } }); } /** *

* Lists versions of an evaluation form in the specified Amazon Connect * instance. *

* * @param listEvaluationFormVersionsRequest * @return A Java Future object containing the response from the * ListEvaluationFormVersions service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listEvaluationFormVersionsAsync( final ListEvaluationFormVersionsRequest listEvaluationFormVersionsRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListEvaluationFormVersionsResult call() throws Exception { ListEvaluationFormVersionsResult result = null; try { result = listEvaluationFormVersions(listEvaluationFormVersionsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listEvaluationFormVersionsRequest, result); return result; } }); } /** *

* Lists evaluation forms in the specified Amazon Connect instance. *

* * @param listEvaluationFormsRequest * @return A Java Future object containing the response from the * ListEvaluationForms service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listEvaluationFormsAsync( final ListEvaluationFormsRequest listEvaluationFormsRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListEvaluationFormsResult call() throws Exception { return listEvaluationForms(listEvaluationFormsRequest); } }); } /** *

* Lists evaluation forms in the specified Amazon Connect instance. *

* * @param listEvaluationFormsRequest * @return A Java Future object containing the response from the * ListEvaluationForms service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listEvaluationFormsAsync( final ListEvaluationFormsRequest listEvaluationFormsRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListEvaluationFormsResult call() throws Exception { ListEvaluationFormsResult result = null; try { result = listEvaluationForms(listEvaluationFormsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listEvaluationFormsRequest, result); return result; } }); } /** *

* Provides information about the hours of operation for the specified * Amazon Connect instance. *

*

* For more information about hours of operation, see Set the Hours of Operation for a Queue in the Amazon Connect * Administrator Guide. *

* * @param listHoursOfOperationsRequest * @return A Java Future object containing the response from the * ListHoursOfOperations service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listHoursOfOperationsAsync( final ListHoursOfOperationsRequest listHoursOfOperationsRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListHoursOfOperationsResult call() throws Exception { return listHoursOfOperations(listHoursOfOperationsRequest); } }); } /** *

* Provides information about the hours of operation for the specified * Amazon Connect instance. *

*

* For more information about hours of operation, see Set the Hours of Operation for a Queue in the Amazon Connect * Administrator Guide. *

* * @param listHoursOfOperationsRequest * @return A Java Future object containing the response from the * ListHoursOfOperations service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listHoursOfOperationsAsync( final ListHoursOfOperationsRequest listHoursOfOperationsRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListHoursOfOperationsResult call() throws Exception { ListHoursOfOperationsResult result = null; try { result = listHoursOfOperations(listHoursOfOperationsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listHoursOfOperationsRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Returns a paginated list of all attribute types for the given instance. *

* * @param listInstanceAttributesRequest * @return A Java Future object containing the response from the * ListInstanceAttributes service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listInstanceAttributesAsync( final ListInstanceAttributesRequest listInstanceAttributesRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListInstanceAttributesResult call() throws Exception { return listInstanceAttributes(listInstanceAttributesRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Returns a paginated list of all attribute types for the given instance. *

* * @param listInstanceAttributesRequest * @return A Java Future object containing the response from the * ListInstanceAttributes service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listInstanceAttributesAsync( final ListInstanceAttributesRequest listInstanceAttributesRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListInstanceAttributesResult call() throws Exception { ListInstanceAttributesResult result = null; try { result = listInstanceAttributes(listInstanceAttributesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listInstanceAttributesRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Returns a paginated list of storage configs for the identified instance * and resource type. *

* * @param listInstanceStorageConfigsRequest * @return A Java Future object containing the response from the * ListInstanceStorageConfigs service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listInstanceStorageConfigsAsync( final ListInstanceStorageConfigsRequest listInstanceStorageConfigsRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListInstanceStorageConfigsResult call() throws Exception { return listInstanceStorageConfigs(listInstanceStorageConfigsRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Returns a paginated list of storage configs for the identified instance * and resource type. *

* * @param listInstanceStorageConfigsRequest * @return A Java Future object containing the response from the * ListInstanceStorageConfigs service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listInstanceStorageConfigsAsync( final ListInstanceStorageConfigsRequest listInstanceStorageConfigsRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListInstanceStorageConfigsResult call() throws Exception { ListInstanceStorageConfigsResult result = null; try { result = listInstanceStorageConfigs(listInstanceStorageConfigsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listInstanceStorageConfigsRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Return a list of instances which are in active state, * creation-in-progress state, and failed state. Instances that aren't * successfully created (they are in a failed state) are returned only for * 24 hours after the CreateInstance API was invoked. *

* * @param listInstancesRequest * @return A Java Future object containing the response from the * ListInstances service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listInstancesAsync( final ListInstancesRequest listInstancesRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListInstancesResult call() throws Exception { return listInstances(listInstancesRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Return a list of instances which are in active state, * creation-in-progress state, and failed state. Instances that aren't * successfully created (they are in a failed state) are returned only for * 24 hours after the CreateInstance API was invoked. *

* * @param listInstancesRequest * @return A Java Future object containing the response from the * ListInstances service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listInstancesAsync( final ListInstancesRequest listInstancesRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListInstancesResult call() throws Exception { ListInstancesResult result = null; try { result = listInstances(listInstancesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listInstancesRequest, result); return result; } }); } /** *

* Provides summary information about the Amazon Web Services resource * associations for the specified Amazon Connect instance. *

* * @param listIntegrationAssociationsRequest * @return A Java Future object containing the response from the * ListIntegrationAssociations service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listIntegrationAssociationsAsync( final ListIntegrationAssociationsRequest listIntegrationAssociationsRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListIntegrationAssociationsResult call() throws Exception { return listIntegrationAssociations(listIntegrationAssociationsRequest); } }); } /** *

* Provides summary information about the Amazon Web Services resource * associations for the specified Amazon Connect instance. *

* * @param listIntegrationAssociationsRequest * @return A Java Future object containing the response from the * ListIntegrationAssociations service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listIntegrationAssociationsAsync( final ListIntegrationAssociationsRequest listIntegrationAssociationsRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListIntegrationAssociationsResult call() throws Exception { ListIntegrationAssociationsResult result = null; try { result = listIntegrationAssociations(listIntegrationAssociationsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listIntegrationAssociationsRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Returns a paginated list of all Lambda functions that display in the * dropdown options in the relevant flow blocks. *

* * @param listLambdaFunctionsRequest * @return A Java Future object containing the response from the * ListLambdaFunctions service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listLambdaFunctionsAsync( final ListLambdaFunctionsRequest listLambdaFunctionsRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListLambdaFunctionsResult call() throws Exception { return listLambdaFunctions(listLambdaFunctionsRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Returns a paginated list of all Lambda functions that display in the * dropdown options in the relevant flow blocks. *

* * @param listLambdaFunctionsRequest * @return A Java Future object containing the response from the * ListLambdaFunctions service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listLambdaFunctionsAsync( final ListLambdaFunctionsRequest listLambdaFunctionsRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListLambdaFunctionsResult call() throws Exception { ListLambdaFunctionsResult result = null; try { result = listLambdaFunctions(listLambdaFunctionsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listLambdaFunctionsRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Returns a paginated list of all the Amazon Lex V1 bots currently * associated with the instance. To return both Amazon Lex V1 and V2 bots, * use the ListBots API. *

* * @param listLexBotsRequest * @return A Java Future object containing the response from the ListLexBots * service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listLexBotsAsync(final ListLexBotsRequest listLexBotsRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListLexBotsResult call() throws Exception { return listLexBots(listLexBotsRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Returns a paginated list of all the Amazon Lex V1 bots currently * associated with the instance. To return both Amazon Lex V1 and V2 bots, * use the ListBots API. *

* * @param listLexBotsRequest * @return A Java Future object containing the response from the ListLexBots * service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listLexBotsAsync(final ListLexBotsRequest listLexBotsRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListLexBotsResult call() throws Exception { ListLexBotsResult result = null; try { result = listLexBots(listLexBotsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listLexBotsRequest, result); return result; } }); } /** *

* Provides information about the phone numbers for the specified Amazon * Connect instance. *

*

* For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon * Connect Administrator Guide. *

* *

* The phone number Arn value that is returned from each of the * items in the PhoneNumberSummaryList cannot be used to tag phone number resources. * It will fail with a ResourceNotFoundException. Instead, use * the ListPhoneNumbersV2 API. It returns the new phone number ARN that can * be used to tag phone number resources. *

*
* * @param listPhoneNumbersRequest * @return A Java Future object containing the response from the * ListPhoneNumbers service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listPhoneNumbersAsync( final ListPhoneNumbersRequest listPhoneNumbersRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListPhoneNumbersResult call() throws Exception { return listPhoneNumbers(listPhoneNumbersRequest); } }); } /** *

* Provides information about the phone numbers for the specified Amazon * Connect instance. *

*

* For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon * Connect Administrator Guide. *

* *

* The phone number Arn value that is returned from each of the * items in the PhoneNumberSummaryList cannot be used to tag phone number resources. * It will fail with a ResourceNotFoundException. Instead, use * the ListPhoneNumbersV2 API. It returns the new phone number ARN that can * be used to tag phone number resources. *

*
* * @param listPhoneNumbersRequest * @return A Java Future object containing the response from the * ListPhoneNumbers service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listPhoneNumbersAsync( final ListPhoneNumbersRequest listPhoneNumbersRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListPhoneNumbersResult call() throws Exception { ListPhoneNumbersResult result = null; try { result = listPhoneNumbers(listPhoneNumbersRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listPhoneNumbersRequest, result); return result; } }); } /** *

* Lists phone numbers claimed to your Amazon Connect instance or traffic * distribution group. If the provided TargetArn is a traffic * distribution group, you can call this API in both Amazon Web Services * Regions associated with traffic distribution group. *

*

* For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon * Connect Administrator Guide. *

* * @param listPhoneNumbersV2Request * @return A Java Future object containing the response from the * ListPhoneNumbersV2 service method, as returned by Amazon Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listPhoneNumbersV2Async( final ListPhoneNumbersV2Request listPhoneNumbersV2Request) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListPhoneNumbersV2Result call() throws Exception { return listPhoneNumbersV2(listPhoneNumbersV2Request); } }); } /** *

* Lists phone numbers claimed to your Amazon Connect instance or traffic * distribution group. If the provided TargetArn is a traffic * distribution group, you can call this API in both Amazon Web Services * Regions associated with traffic distribution group. *

*

* For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon * Connect Administrator Guide. *

* * @param listPhoneNumbersV2Request * @return A Java Future object containing the response from the * ListPhoneNumbersV2 service method, as returned by Amazon Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listPhoneNumbersV2Async( final ListPhoneNumbersV2Request listPhoneNumbersV2Request, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListPhoneNumbersV2Result call() throws Exception { ListPhoneNumbersV2Result result = null; try { result = listPhoneNumbersV2(listPhoneNumbersV2Request); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listPhoneNumbersV2Request, result); return result; } }); } /** *

* Provides information about the prompts for the specified Amazon Connect * instance. *

* * @param listPromptsRequest * @return A Java Future object containing the response from the ListPrompts * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listPromptsAsync(final ListPromptsRequest listPromptsRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListPromptsResult call() throws Exception { return listPrompts(listPromptsRequest); } }); } /** *

* Provides information about the prompts for the specified Amazon Connect * instance. *

* * @param listPromptsRequest * @return A Java Future object containing the response from the ListPrompts * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listPromptsAsync(final ListPromptsRequest listPromptsRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListPromptsResult call() throws Exception { ListPromptsResult result = null; try { result = listPrompts(listPromptsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listPromptsRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Lists the quick connects associated with a queue. *

* * @param listQueueQuickConnectsRequest * @return A Java Future object containing the response from the * ListQueueQuickConnects service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listQueueQuickConnectsAsync( final ListQueueQuickConnectsRequest listQueueQuickConnectsRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListQueueQuickConnectsResult call() throws Exception { return listQueueQuickConnects(listQueueQuickConnectsRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Lists the quick connects associated with a queue. *

* * @param listQueueQuickConnectsRequest * @return A Java Future object containing the response from the * ListQueueQuickConnects service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listQueueQuickConnectsAsync( final ListQueueQuickConnectsRequest listQueueQuickConnectsRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListQueueQuickConnectsResult call() throws Exception { ListQueueQuickConnectsResult result = null; try { result = listQueueQuickConnects(listQueueQuickConnectsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listQueueQuickConnectsRequest, result); return result; } }); } /** *

* Provides information about the queues for the specified Amazon Connect * instance. *

*

* If you do not specify a QueueTypes parameter, both standard * and agent queues are returned. This might cause an unexpected truncation * of results if you have more than 1000 agents and you limit the number of * results of the API call in code. *

*

* For more information about queues, see Queues: Standard and Agent in the Amazon Connect Administrator * Guide. *

* * @param listQueuesRequest * @return A Java Future object containing the response from the ListQueues * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listQueuesAsync(final ListQueuesRequest listQueuesRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListQueuesResult call() throws Exception { return listQueues(listQueuesRequest); } }); } /** *

* Provides information about the queues for the specified Amazon Connect * instance. *

*

* If you do not specify a QueueTypes parameter, both standard * and agent queues are returned. This might cause an unexpected truncation * of results if you have more than 1000 agents and you limit the number of * results of the API call in code. *

*

* For more information about queues, see Queues: Standard and Agent in the Amazon Connect Administrator * Guide. *

* * @param listQueuesRequest * @return A Java Future object containing the response from the ListQueues * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listQueuesAsync(final ListQueuesRequest listQueuesRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListQueuesResult call() throws Exception { ListQueuesResult result = null; try { result = listQueues(listQueuesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listQueuesRequest, result); return result; } }); } /** *

* Provides information about the quick connects for the specified Amazon * Connect instance. *

* * @param listQuickConnectsRequest * @return A Java Future object containing the response from the * ListQuickConnects service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listQuickConnectsAsync( final ListQuickConnectsRequest listQuickConnectsRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListQuickConnectsResult call() throws Exception { return listQuickConnects(listQuickConnectsRequest); } }); } /** *

* Provides information about the quick connects for the specified Amazon * Connect instance. *

* * @param listQuickConnectsRequest * @return A Java Future object containing the response from the * ListQuickConnects service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listQuickConnectsAsync( final ListQuickConnectsRequest listQuickConnectsRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListQuickConnectsResult call() throws Exception { ListQuickConnectsResult result = null; try { result = listQuickConnects(listQuickConnectsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listQuickConnectsRequest, result); return result; } }); } /** *

* Lists the queues associated with a routing profile. *

* * @param listRoutingProfileQueuesRequest * @return A Java Future object containing the response from the * ListRoutingProfileQueues service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listRoutingProfileQueuesAsync( final ListRoutingProfileQueuesRequest listRoutingProfileQueuesRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListRoutingProfileQueuesResult call() throws Exception { return listRoutingProfileQueues(listRoutingProfileQueuesRequest); } }); } /** *

* Lists the queues associated with a routing profile. *

* * @param listRoutingProfileQueuesRequest * @return A Java Future object containing the response from the * ListRoutingProfileQueues service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listRoutingProfileQueuesAsync( final ListRoutingProfileQueuesRequest listRoutingProfileQueuesRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListRoutingProfileQueuesResult call() throws Exception { ListRoutingProfileQueuesResult result = null; try { result = listRoutingProfileQueues(listRoutingProfileQueuesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listRoutingProfileQueuesRequest, result); return result; } }); } /** *

* Provides summary information about the routing profiles for the specified * Amazon Connect instance. *

*

* For more information about routing profiles, see Routing Profiles and Create a Routing Profile in the Amazon Connect Administrator * Guide. *

* * @param listRoutingProfilesRequest * @return A Java Future object containing the response from the * ListRoutingProfiles service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listRoutingProfilesAsync( final ListRoutingProfilesRequest listRoutingProfilesRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListRoutingProfilesResult call() throws Exception { return listRoutingProfiles(listRoutingProfilesRequest); } }); } /** *

* Provides summary information about the routing profiles for the specified * Amazon Connect instance. *

*

* For more information about routing profiles, see Routing Profiles and Create a Routing Profile in the Amazon Connect Administrator * Guide. *

* * @param listRoutingProfilesRequest * @return A Java Future object containing the response from the * ListRoutingProfiles service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listRoutingProfilesAsync( final ListRoutingProfilesRequest listRoutingProfilesRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListRoutingProfilesResult call() throws Exception { ListRoutingProfilesResult result = null; try { result = listRoutingProfiles(listRoutingProfilesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listRoutingProfilesRequest, result); return result; } }); } /** *

* List all rules for the specified Amazon Connect instance. *

* * @param listRulesRequest * @return A Java Future object containing the response from the ListRules * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InternalServiceException * @throws ThrottlingException * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listRulesAsync(final ListRulesRequest listRulesRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListRulesResult call() throws Exception { return listRules(listRulesRequest); } }); } /** *

* List all rules for the specified Amazon Connect instance. *

* * @param listRulesRequest * @return A Java Future object containing the response from the ListRules * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InternalServiceException * @throws ThrottlingException * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listRulesAsync(final ListRulesRequest listRulesRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListRulesResult call() throws Exception { ListRulesResult result = null; try { result = listRules(listRulesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listRulesRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Returns a paginated list of all security keys associated with the * instance. *

* * @param listSecurityKeysRequest * @return A Java Future object containing the response from the * ListSecurityKeys service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listSecurityKeysAsync( final ListSecurityKeysRequest listSecurityKeysRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListSecurityKeysResult call() throws Exception { return listSecurityKeys(listSecurityKeysRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Returns a paginated list of all security keys associated with the * instance. *

* * @param listSecurityKeysRequest * @return A Java Future object containing the response from the * ListSecurityKeys service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listSecurityKeysAsync( final ListSecurityKeysRequest listSecurityKeysRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListSecurityKeysResult call() throws Exception { ListSecurityKeysResult result = null; try { result = listSecurityKeys(listSecurityKeysRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listSecurityKeysRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Lists the permissions granted to a security profile. *

* * @param listSecurityProfilePermissionsRequest * @return A Java Future object containing the response from the * ListSecurityProfilePermissions service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listSecurityProfilePermissionsAsync( final ListSecurityProfilePermissionsRequest listSecurityProfilePermissionsRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListSecurityProfilePermissionsResult call() throws Exception { return listSecurityProfilePermissions(listSecurityProfilePermissionsRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Lists the permissions granted to a security profile. *

* * @param listSecurityProfilePermissionsRequest * @return A Java Future object containing the response from the * ListSecurityProfilePermissions service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listSecurityProfilePermissionsAsync( final ListSecurityProfilePermissionsRequest listSecurityProfilePermissionsRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListSecurityProfilePermissionsResult call() throws Exception { ListSecurityProfilePermissionsResult result = null; try { result = listSecurityProfilePermissions(listSecurityProfilePermissionsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listSecurityProfilePermissionsRequest, result); return result; } }); } /** *

* Provides summary information about the security profiles for the * specified Amazon Connect instance. *

*

* For more information about security profiles, see Security Profiles in the Amazon Connect Administrator Guide. *

* * @param listSecurityProfilesRequest * @return A Java Future object containing the response from the * ListSecurityProfiles service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listSecurityProfilesAsync( final ListSecurityProfilesRequest listSecurityProfilesRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListSecurityProfilesResult call() throws Exception { return listSecurityProfiles(listSecurityProfilesRequest); } }); } /** *

* Provides summary information about the security profiles for the * specified Amazon Connect instance. *

*

* For more information about security profiles, see Security Profiles in the Amazon Connect Administrator Guide. *

* * @param listSecurityProfilesRequest * @return A Java Future object containing the response from the * ListSecurityProfiles service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listSecurityProfilesAsync( final ListSecurityProfilesRequest listSecurityProfilesRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListSecurityProfilesResult call() throws Exception { ListSecurityProfilesResult result = null; try { result = listSecurityProfiles(listSecurityProfilesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listSecurityProfilesRequest, result); return result; } }); } /** *

* Lists the tags for the specified resource. *

*

* For sample policies that use tags, see Amazon Connect Identity-Based Policy Examples in the Amazon * Connect Administrator Guide. *

* * @param listTagsForResourceRequest * @return A Java Future object containing the response from the * ListTagsForResource service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws InternalServiceException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listTagsForResourceAsync( final ListTagsForResourceRequest listTagsForResourceRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListTagsForResourceResult call() throws Exception { return listTagsForResource(listTagsForResourceRequest); } }); } /** *

* Lists the tags for the specified resource. *

*

* For sample policies that use tags, see Amazon Connect Identity-Based Policy Examples in the Amazon * Connect Administrator Guide. *

* * @param listTagsForResourceRequest * @return A Java Future object containing the response from the * ListTagsForResource service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws InternalServiceException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listTagsForResourceAsync( final ListTagsForResourceRequest listTagsForResourceRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListTagsForResourceResult call() throws Exception { ListTagsForResourceResult result = null; try { result = listTagsForResource(listTagsForResourceRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listTagsForResourceRequest, result); return result; } }); } /** *

* Lists task templates for the specified Amazon Connect instance. *

* * @param listTaskTemplatesRequest * @return A Java Future object containing the response from the * ListTaskTemplates service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listTaskTemplatesAsync( final ListTaskTemplatesRequest listTaskTemplatesRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListTaskTemplatesResult call() throws Exception { return listTaskTemplates(listTaskTemplatesRequest); } }); } /** *

* Lists task templates for the specified Amazon Connect instance. *

* * @param listTaskTemplatesRequest * @return A Java Future object containing the response from the * ListTaskTemplates service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listTaskTemplatesAsync( final ListTaskTemplatesRequest listTaskTemplatesRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListTaskTemplatesResult call() throws Exception { ListTaskTemplatesResult result = null; try { result = listTaskTemplates(listTaskTemplatesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listTaskTemplatesRequest, result); return result; } }); } /** *

* Lists traffic distribution groups. *

* * @param listTrafficDistributionGroupsRequest * @return A Java Future object containing the response from the * ListTrafficDistributionGroups service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws AccessDeniedException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listTrafficDistributionGroupsAsync( final ListTrafficDistributionGroupsRequest listTrafficDistributionGroupsRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListTrafficDistributionGroupsResult call() throws Exception { return listTrafficDistributionGroups(listTrafficDistributionGroupsRequest); } }); } /** *

* Lists traffic distribution groups. *

* * @param listTrafficDistributionGroupsRequest * @return A Java Future object containing the response from the * ListTrafficDistributionGroups service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws AccessDeniedException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listTrafficDistributionGroupsAsync( final ListTrafficDistributionGroupsRequest listTrafficDistributionGroupsRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListTrafficDistributionGroupsResult call() throws Exception { ListTrafficDistributionGroupsResult result = null; try { result = listTrafficDistributionGroups(listTrafficDistributionGroupsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listTrafficDistributionGroupsRequest, result); return result; } }); } /** *

* Lists the use cases for the integration association. *

* * @param listUseCasesRequest

* Provides summary information about the use cases for the * specified integration association. *

* @return A Java Future object containing the response from the * ListUseCases service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listUseCasesAsync( final ListUseCasesRequest listUseCasesRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListUseCasesResult call() throws Exception { return listUseCases(listUseCasesRequest); } }); } /** *

* Lists the use cases for the integration association. *

* * @param listUseCasesRequest

* Provides summary information about the use cases for the * specified integration association. *

* @return A Java Future object containing the response from the * ListUseCases service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listUseCasesAsync( final ListUseCasesRequest listUseCasesRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListUseCasesResult call() throws Exception { ListUseCasesResult result = null; try { result = listUseCases(listUseCasesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listUseCasesRequest, result); return result; } }); } /** *

* Provides summary information about the hierarchy groups for the specified * Amazon Connect instance. *

*

* For more information about agent hierarchies, see Set Up Agent Hierarchies in the Amazon Connect Administrator * Guide. *

* * @param listUserHierarchyGroupsRequest * @return A Java Future object containing the response from the * ListUserHierarchyGroups service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listUserHierarchyGroupsAsync( final ListUserHierarchyGroupsRequest listUserHierarchyGroupsRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListUserHierarchyGroupsResult call() throws Exception { return listUserHierarchyGroups(listUserHierarchyGroupsRequest); } }); } /** *

* Provides summary information about the hierarchy groups for the specified * Amazon Connect instance. *

*

* For more information about agent hierarchies, see Set Up Agent Hierarchies in the Amazon Connect Administrator * Guide. *

* * @param listUserHierarchyGroupsRequest * @return A Java Future object containing the response from the * ListUserHierarchyGroups service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listUserHierarchyGroupsAsync( final ListUserHierarchyGroupsRequest listUserHierarchyGroupsRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListUserHierarchyGroupsResult call() throws Exception { ListUserHierarchyGroupsResult result = null; try { result = listUserHierarchyGroups(listUserHierarchyGroupsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listUserHierarchyGroupsRequest, result); return result; } }); } /** *

* Provides summary information about the users for the specified Amazon * Connect instance. *

* * @param listUsersRequest * @return A Java Future object containing the response from the ListUsers * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listUsersAsync(final ListUsersRequest listUsersRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListUsersResult call() throws Exception { return listUsers(listUsersRequest); } }); } /** *

* Provides summary information about the users for the specified Amazon * Connect instance. *

* * @param listUsersRequest * @return A Java Future object containing the response from the ListUsers * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future listUsersAsync(final ListUsersRequest listUsersRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ListUsersResult call() throws Exception { ListUsersResult result = null; try { result = listUsers(listUsersRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(listUsersRequest, result); return result; } }); } /** *

* Initiates silent monitoring of a contact. The Contact Control Panel (CCP) * of the user specified by userId will be set to silent monitoring * mode on the contact. *

* * @param monitorContactRequest * @return A Java Future object containing the response from the * MonitorContact service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws IdempotencyException * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future monitorContactAsync( final MonitorContactRequest monitorContactRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public MonitorContactResult call() throws Exception { return monitorContact(monitorContactRequest); } }); } /** *

* Initiates silent monitoring of a contact. The Contact Control Panel (CCP) * of the user specified by userId will be set to silent monitoring * mode on the contact. *

* * @param monitorContactRequest * @return A Java Future object containing the response from the * MonitorContact service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws IdempotencyException * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future monitorContactAsync( final MonitorContactRequest monitorContactRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public MonitorContactResult call() throws Exception { MonitorContactResult result = null; try { result = monitorContact(monitorContactRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(monitorContactRequest, result); return result; } }); } /** *

* Changes the current status of a user or agent in Amazon Connect. If the * agent is currently handling a contact, this sets the agent's next status. *

*

* For more information, see Agent status and Set your next status in the Amazon Connect Administrator * Guide. *

* * @param putUserStatusRequest * @return A Java Future object containing the response from the * PutUserStatus service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws AccessDeniedException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future putUserStatusAsync( final PutUserStatusRequest putUserStatusRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public PutUserStatusResult call() throws Exception { return putUserStatus(putUserStatusRequest); } }); } /** *

* Changes the current status of a user or agent in Amazon Connect. If the * agent is currently handling a contact, this sets the agent's next status. *

*

* For more information, see Agent status and Set your next status in the Amazon Connect Administrator * Guide. *

* * @param putUserStatusRequest * @return A Java Future object containing the response from the * PutUserStatus service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws AccessDeniedException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future putUserStatusAsync( final PutUserStatusRequest putUserStatusRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public PutUserStatusResult call() throws Exception { PutUserStatusResult result = null; try { result = putUserStatus(putUserStatusRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(putUserStatusRequest, result); return result; } }); } /** *

* Releases a phone number previously claimed to an Amazon Connect instance * or traffic distribution group. You can call this API only in the Amazon * Web Services Region where the number was claimed. *

* *

* To release phone numbers from a traffic distribution group, use the * ReleasePhoneNumber API, not the Amazon Connect console. *

*

* After releasing a phone number, the phone number enters into a cooldown * period of 30 days. It cannot be searched for or claimed again until the * period has ended. If you accidentally release a phone number, contact * Amazon Web Services Support. *

*
*

* If you plan to claim and release numbers frequently during a 30 day * period, contact us for a service quota exception. Otherwise, it is * possible you will be blocked from claiming and releasing any more numbers * until 30 days past the oldest number released has expired. *

*

* By default you can claim and release up to 200% of your maximum number of * active phone numbers during any 30 day period. If you claim and release * phone numbers using the UI or API during a rolling 30 day cycle that * exceeds 200% of your phone number service level quota, you will be * blocked from claiming any more numbers until 30 days past the oldest * number released has expired. *

*

* For example, if you already have 99 claimed numbers and a service level * quota of 99 phone numbers, and in any 30 day period you release 99, claim * 99, and then release 99, you will have exceeded the 200% limit. At that * point you are blocked from claiming any more numbers until you open an * Amazon Web Services support ticket. *

* * @param releasePhoneNumberRequest * @return A Java Future object containing the response from the * ReleasePhoneNumber service method, as returned by Amazon Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws ResourceInUseException * @throws IdempotencyException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future releasePhoneNumberAsync( final ReleasePhoneNumberRequest releasePhoneNumberRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { releasePhoneNumber(releasePhoneNumberRequest); return null; } }); } /** *

* Releases a phone number previously claimed to an Amazon Connect instance * or traffic distribution group. You can call this API only in the Amazon * Web Services Region where the number was claimed. *

* *

* To release phone numbers from a traffic distribution group, use the * ReleasePhoneNumber API, not the Amazon Connect console. *

*

* After releasing a phone number, the phone number enters into a cooldown * period of 30 days. It cannot be searched for or claimed again until the * period has ended. If you accidentally release a phone number, contact * Amazon Web Services Support. *

*
*

* If you plan to claim and release numbers frequently during a 30 day * period, contact us for a service quota exception. Otherwise, it is * possible you will be blocked from claiming and releasing any more numbers * until 30 days past the oldest number released has expired. *

*

* By default you can claim and release up to 200% of your maximum number of * active phone numbers during any 30 day period. If you claim and release * phone numbers using the UI or API during a rolling 30 day cycle that * exceeds 200% of your phone number service level quota, you will be * blocked from claiming any more numbers until 30 days past the oldest * number released has expired. *

*

* For example, if you already have 99 claimed numbers and a service level * quota of 99 phone numbers, and in any 30 day period you release 99, claim * 99, and then release 99, you will have exceeded the 200% limit. At that * point you are blocked from claiming any more numbers until you open an * Amazon Web Services support ticket. *

* * @param releasePhoneNumberRequest * @return A Java Future object containing the response from the * ReleasePhoneNumber service method, as returned by Amazon Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws ResourceInUseException * @throws IdempotencyException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future releasePhoneNumberAsync( final ReleasePhoneNumberRequest releasePhoneNumberRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { releasePhoneNumber(releasePhoneNumberRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(releasePhoneNumberRequest, result); return result; } }); } /** *

* Replicates an Amazon Connect instance in the specified Amazon Web * Services Region. *

*

* For more information about replicating an Amazon Connect instance, see Create a replica of your existing Amazon Connect instance in the * Amazon Connect Administrator Guide. *

* * @param replicateInstanceRequest * @return A Java Future object containing the response from the * ReplicateInstance service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws AccessDeniedException * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ResourceNotReadyException * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future replicateInstanceAsync( final ReplicateInstanceRequest replicateInstanceRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ReplicateInstanceResult call() throws Exception { return replicateInstance(replicateInstanceRequest); } }); } /** *

* Replicates an Amazon Connect instance in the specified Amazon Web * Services Region. *

*

* For more information about replicating an Amazon Connect instance, see Create a replica of your existing Amazon Connect instance in the * Amazon Connect Administrator Guide. *

* * @param replicateInstanceRequest * @return A Java Future object containing the response from the * ReplicateInstance service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws AccessDeniedException * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ResourceNotReadyException * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future replicateInstanceAsync( final ReplicateInstanceRequest replicateInstanceRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ReplicateInstanceResult call() throws Exception { ReplicateInstanceResult result = null; try { result = replicateInstance(replicateInstanceRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(replicateInstanceRequest, result); return result; } }); } /** *

* When a contact is being recorded, and the recording has been suspended * using SuspendContactRecording, this API resumes recording the call or * screen. *

*

* Voice and screen recordings are supported. *

* * @param resumeContactRecordingRequest * @return A Java Future object containing the response from the * ResumeContactRecording service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future resumeContactRecordingAsync( final ResumeContactRecordingRequest resumeContactRecordingRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ResumeContactRecordingResult call() throws Exception { return resumeContactRecording(resumeContactRecordingRequest); } }); } /** *

* When a contact is being recorded, and the recording has been suspended * using SuspendContactRecording, this API resumes recording the call or * screen. *

*

* Voice and screen recordings are supported. *

* * @param resumeContactRecordingRequest * @return A Java Future object containing the response from the * ResumeContactRecording service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future resumeContactRecordingAsync( final ResumeContactRecordingRequest resumeContactRecordingRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public ResumeContactRecordingResult call() throws Exception { ResumeContactRecordingResult result = null; try { result = resumeContactRecording(resumeContactRecordingRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(resumeContactRecordingRequest, result); return result; } }); } /** *

* Searches for available phone numbers that you can claim to your Amazon * Connect instance or traffic distribution group. If the provided * TargetArn is a traffic distribution group, you can call this * API in both Amazon Web Services Regions associated with the traffic * distribution group. *

* * @param searchAvailablePhoneNumbersRequest * @return A Java Future object containing the response from the * SearchAvailablePhoneNumbers service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ThrottlingException * @throws InternalServiceException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future searchAvailablePhoneNumbersAsync( final SearchAvailablePhoneNumbersRequest searchAvailablePhoneNumbersRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public SearchAvailablePhoneNumbersResult call() throws Exception { return searchAvailablePhoneNumbers(searchAvailablePhoneNumbersRequest); } }); } /** *

* Searches for available phone numbers that you can claim to your Amazon * Connect instance or traffic distribution group. If the provided * TargetArn is a traffic distribution group, you can call this * API in both Amazon Web Services Regions associated with the traffic * distribution group. *

* * @param searchAvailablePhoneNumbersRequest * @return A Java Future object containing the response from the * SearchAvailablePhoneNumbers service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ThrottlingException * @throws InternalServiceException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future searchAvailablePhoneNumbersAsync( final SearchAvailablePhoneNumbersRequest searchAvailablePhoneNumbersRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public SearchAvailablePhoneNumbersResult call() throws Exception { SearchAvailablePhoneNumbersResult result = null; try { result = searchAvailablePhoneNumbers(searchAvailablePhoneNumbersRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(searchAvailablePhoneNumbersRequest, result); return result; } }); } /** *

* Searches the hours of operation in an Amazon Connect instance, with * optional filtering. *

* * @param searchHoursOfOperationsRequest * @return A Java Future object containing the response from the * SearchHoursOfOperations service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future searchHoursOfOperationsAsync( final SearchHoursOfOperationsRequest searchHoursOfOperationsRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public SearchHoursOfOperationsResult call() throws Exception { return searchHoursOfOperations(searchHoursOfOperationsRequest); } }); } /** *

* Searches the hours of operation in an Amazon Connect instance, with * optional filtering. *

* * @param searchHoursOfOperationsRequest * @return A Java Future object containing the response from the * SearchHoursOfOperations service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future searchHoursOfOperationsAsync( final SearchHoursOfOperationsRequest searchHoursOfOperationsRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public SearchHoursOfOperationsResult call() throws Exception { SearchHoursOfOperationsResult result = null; try { result = searchHoursOfOperations(searchHoursOfOperationsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(searchHoursOfOperationsRequest, result); return result; } }); } /** *

* Searches prompts in an Amazon Connect instance, with optional filtering. *

* * @param searchPromptsRequest * @return A Java Future object containing the response from the * SearchPrompts service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future searchPromptsAsync( final SearchPromptsRequest searchPromptsRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public SearchPromptsResult call() throws Exception { return searchPrompts(searchPromptsRequest); } }); } /** *

* Searches prompts in an Amazon Connect instance, with optional filtering. *

* * @param searchPromptsRequest * @return A Java Future object containing the response from the * SearchPrompts service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future searchPromptsAsync( final SearchPromptsRequest searchPromptsRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public SearchPromptsResult call() throws Exception { SearchPromptsResult result = null; try { result = searchPrompts(searchPromptsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(searchPromptsRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Searches queues in an Amazon Connect instance, with optional filtering. *

* * @param searchQueuesRequest * @return A Java Future object containing the response from the * SearchQueues service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future searchQueuesAsync( final SearchQueuesRequest searchQueuesRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public SearchQueuesResult call() throws Exception { return searchQueues(searchQueuesRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Searches queues in an Amazon Connect instance, with optional filtering. *

* * @param searchQueuesRequest * @return A Java Future object containing the response from the * SearchQueues service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future searchQueuesAsync( final SearchQueuesRequest searchQueuesRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public SearchQueuesResult call() throws Exception { SearchQueuesResult result = null; try { result = searchQueues(searchQueuesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(searchQueuesRequest, result); return result; } }); } /** *

* Searches quick connects in an Amazon Connect instance, with optional * filtering. *

* * @param searchQuickConnectsRequest * @return A Java Future object containing the response from the * SearchQuickConnects service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future searchQuickConnectsAsync( final SearchQuickConnectsRequest searchQuickConnectsRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public SearchQuickConnectsResult call() throws Exception { return searchQuickConnects(searchQuickConnectsRequest); } }); } /** *

* Searches quick connects in an Amazon Connect instance, with optional * filtering. *

* * @param searchQuickConnectsRequest * @return A Java Future object containing the response from the * SearchQuickConnects service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future searchQuickConnectsAsync( final SearchQuickConnectsRequest searchQuickConnectsRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public SearchQuickConnectsResult call() throws Exception { SearchQuickConnectsResult result = null; try { result = searchQuickConnects(searchQuickConnectsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(searchQuickConnectsRequest, result); return result; } }); } /** *

* Searches tags used in an Amazon Connect instance using optional search * criteria. *

* * @param searchResourceTagsRequest * @return A Java Future object containing the response from the * SearchResourceTags service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws MaximumResultReturnedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future searchResourceTagsAsync( final SearchResourceTagsRequest searchResourceTagsRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public SearchResourceTagsResult call() throws Exception { return searchResourceTags(searchResourceTagsRequest); } }); } /** *

* Searches tags used in an Amazon Connect instance using optional search * criteria. *

* * @param searchResourceTagsRequest * @return A Java Future object containing the response from the * SearchResourceTags service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws MaximumResultReturnedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future searchResourceTagsAsync( final SearchResourceTagsRequest searchResourceTagsRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public SearchResourceTagsResult call() throws Exception { SearchResourceTagsResult result = null; try { result = searchResourceTags(searchResourceTagsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(searchResourceTagsRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Searches routing profiles in an Amazon Connect instance, with optional * filtering. *

* * @param searchRoutingProfilesRequest * @return A Java Future object containing the response from the * SearchRoutingProfiles service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future searchRoutingProfilesAsync( final SearchRoutingProfilesRequest searchRoutingProfilesRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public SearchRoutingProfilesResult call() throws Exception { return searchRoutingProfiles(searchRoutingProfilesRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Searches routing profiles in an Amazon Connect instance, with optional * filtering. *

* * @param searchRoutingProfilesRequest * @return A Java Future object containing the response from the * SearchRoutingProfiles service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future searchRoutingProfilesAsync( final SearchRoutingProfilesRequest searchRoutingProfilesRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public SearchRoutingProfilesResult call() throws Exception { SearchRoutingProfilesResult result = null; try { result = searchRoutingProfiles(searchRoutingProfilesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(searchRoutingProfilesRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Searches security profiles in an Amazon Connect instance, with optional * filtering. *

* * @param searchSecurityProfilesRequest * @return A Java Future object containing the response from the * SearchSecurityProfiles service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future searchSecurityProfilesAsync( final SearchSecurityProfilesRequest searchSecurityProfilesRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public SearchSecurityProfilesResult call() throws Exception { return searchSecurityProfiles(searchSecurityProfilesRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Searches security profiles in an Amazon Connect instance, with optional * filtering. *

* * @param searchSecurityProfilesRequest * @return A Java Future object containing the response from the * SearchSecurityProfiles service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future searchSecurityProfilesAsync( final SearchSecurityProfilesRequest searchSecurityProfilesRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public SearchSecurityProfilesResult call() throws Exception { SearchSecurityProfilesResult result = null; try { result = searchSecurityProfiles(searchSecurityProfilesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(searchSecurityProfilesRequest, result); return result; } }); } /** *

* Searches users in an Amazon Connect instance, with optional filtering. *

* *

* AfterContactWorkTimeLimit is returned in milliseconds. *

*
* * @param searchUsersRequest * @return A Java Future object containing the response from the SearchUsers * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future searchUsersAsync(final SearchUsersRequest searchUsersRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public SearchUsersResult call() throws Exception { return searchUsers(searchUsersRequest); } }); } /** *

* Searches users in an Amazon Connect instance, with optional filtering. *

* *

* AfterContactWorkTimeLimit is returned in milliseconds. *

*
* * @param searchUsersRequest * @return A Java Future object containing the response from the SearchUsers * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future searchUsersAsync(final SearchUsersRequest searchUsersRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public SearchUsersResult call() throws Exception { SearchUsersResult result = null; try { result = searchUsers(searchUsersRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(searchUsersRequest, result); return result; } }); } /** *

* Searches for vocabularies within a specific Amazon Connect instance using * State, NameStartsWith, and * LanguageCode. *

* * @param searchVocabulariesRequest * @return A Java Future object containing the response from the * SearchVocabularies service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InternalServiceException * @throws ThrottlingException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future searchVocabulariesAsync( final SearchVocabulariesRequest searchVocabulariesRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public SearchVocabulariesResult call() throws Exception { return searchVocabularies(searchVocabulariesRequest); } }); } /** *

* Searches for vocabularies within a specific Amazon Connect instance using * State, NameStartsWith, and * LanguageCode. *

* * @param searchVocabulariesRequest * @return A Java Future object containing the response from the * SearchVocabularies service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InternalServiceException * @throws ThrottlingException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future searchVocabulariesAsync( final SearchVocabulariesRequest searchVocabulariesRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public SearchVocabulariesResult call() throws Exception { SearchVocabulariesResult result = null; try { result = searchVocabularies(searchVocabulariesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(searchVocabulariesRequest, result); return result; } }); } /** *

* Initiates a flow to start a new chat for the customer. Response of this * API provides a token required to obtain credentials from the CreateParticipantConnection API in the Amazon Connect Participant * Service. *

*

* When a new chat contact is successfully created, clients must subscribe * to the participant’s connection for the created chat within 5 minutes. * This is achieved by invoking CreateParticipantConnection with WEBSOCKET and * CONNECTION_CREDENTIALS. *

*

* A 429 error occurs in the following situations: *

*
    *
  • *

    * API rate limit is exceeded. API TPS throttling returns a * TooManyRequests exception. *

    *
  • *
  • *

    * The quota for concurrent active chats is exceeded. Active chat * throttling returns a LimitExceededException. *

    *
  • *
*

* If you use the ChatDurationInMinutes parameter and receive a * 400 error, your account may not support the ability to configure custom * chat durations. For more information, contact Amazon Web Services * Support. *

*

* For more information about chat, see Chat in the Amazon Connect Administrator Guide. *

* * @param startChatContactRequest * @return A Java Future object containing the response from the * StartChatContact service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws LimitExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future startChatContactAsync( final StartChatContactRequest startChatContactRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public StartChatContactResult call() throws Exception { return startChatContact(startChatContactRequest); } }); } /** *

* Initiates a flow to start a new chat for the customer. Response of this * API provides a token required to obtain credentials from the CreateParticipantConnection API in the Amazon Connect Participant * Service. *

*

* When a new chat contact is successfully created, clients must subscribe * to the participant’s connection for the created chat within 5 minutes. * This is achieved by invoking CreateParticipantConnection with WEBSOCKET and * CONNECTION_CREDENTIALS. *

*

* A 429 error occurs in the following situations: *

*
    *
  • *

    * API rate limit is exceeded. API TPS throttling returns a * TooManyRequests exception. *

    *
  • *
  • *

    * The quota for concurrent active chats is exceeded. Active chat * throttling returns a LimitExceededException. *

    *
  • *
*

* If you use the ChatDurationInMinutes parameter and receive a * 400 error, your account may not support the ability to configure custom * chat durations. For more information, contact Amazon Web Services * Support. *

*

* For more information about chat, see Chat in the Amazon Connect Administrator Guide. *

* * @param startChatContactRequest * @return A Java Future object containing the response from the * StartChatContact service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws LimitExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future startChatContactAsync( final StartChatContactRequest startChatContactRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public StartChatContactResult call() throws Exception { StartChatContactResult result = null; try { result = startChatContact(startChatContactRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(startChatContactRequest, result); return result; } }); } /** *

* Starts an empty evaluation in the specified Amazon Connect instance, * using the given evaluation form for the particular contact. The * evaluation form version used for the contact evaluation corresponds to * the currently activated version. If no version is activated for the * evaluation form, the contact evaluation cannot be started. *

* *

* Evaluations created through the public API do not contain answer values * suggested from automation. *

*
* * @param startContactEvaluationRequest * @return A Java Future object containing the response from the * StartContactEvaluation service method, as returned by Amazon * Connect. * @throws InternalServiceException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws ServiceQuotaExceededException * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future startContactEvaluationAsync( final StartContactEvaluationRequest startContactEvaluationRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public StartContactEvaluationResult call() throws Exception { return startContactEvaluation(startContactEvaluationRequest); } }); } /** *

* Starts an empty evaluation in the specified Amazon Connect instance, * using the given evaluation form for the particular contact. The * evaluation form version used for the contact evaluation corresponds to * the currently activated version. If no version is activated for the * evaluation form, the contact evaluation cannot be started. *

* *

* Evaluations created through the public API do not contain answer values * suggested from automation. *

*
* * @param startContactEvaluationRequest * @return A Java Future object containing the response from the * StartContactEvaluation service method, as returned by Amazon * Connect. * @throws InternalServiceException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws ServiceQuotaExceededException * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future startContactEvaluationAsync( final StartContactEvaluationRequest startContactEvaluationRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public StartContactEvaluationResult call() throws Exception { StartContactEvaluationResult result = null; try { result = startContactEvaluation(startContactEvaluationRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(startContactEvaluationRequest, result); return result; } }); } /** *

* Starts recording the contact: *

*
    *
  • *

    * If the API is called before the agent joins the call, recording * starts when the agent joins the call. *

    *
  • *
  • *

    * If the API is called after the agent joins the call, recording * starts at the time of the API call. *

    *
  • *
*

* StartContactRecording is a one-time action. For example, if you use * StopContactRecording to stop recording an ongoing call, you can't use * StartContactRecording to restart it. For scenarios where the recording * has started and you want to suspend and resume it, such as when * collecting sensitive information (for example, a credit card number), use * SuspendContactRecording and ResumeContactRecording. *

*

* You can use this API to override the recording behavior configured in the * Set recording behavior block. *

*

* Only voice recordings are supported at this time. *

* * @param startContactRecordingRequest * @return A Java Future object containing the response from the * StartContactRecording service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future startContactRecordingAsync( final StartContactRecordingRequest startContactRecordingRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public StartContactRecordingResult call() throws Exception { return startContactRecording(startContactRecordingRequest); } }); } /** *

* Starts recording the contact: *

*
    *
  • *

    * If the API is called before the agent joins the call, recording * starts when the agent joins the call. *

    *
  • *
  • *

    * If the API is called after the agent joins the call, recording * starts at the time of the API call. *

    *
  • *
*

* StartContactRecording is a one-time action. For example, if you use * StopContactRecording to stop recording an ongoing call, you can't use * StartContactRecording to restart it. For scenarios where the recording * has started and you want to suspend and resume it, such as when * collecting sensitive information (for example, a credit card number), use * SuspendContactRecording and ResumeContactRecording. *

*

* You can use this API to override the recording behavior configured in the * Set recording behavior block. *

*

* Only voice recordings are supported at this time. *

* * @param startContactRecordingRequest * @return A Java Future object containing the response from the * StartContactRecording service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future startContactRecordingAsync( final StartContactRecordingRequest startContactRecordingRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public StartContactRecordingResult call() throws Exception { StartContactRecordingResult result = null; try { result = startContactRecording(startContactRecordingRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(startContactRecordingRequest, result); return result; } }); } /** *

* Initiates real-time message streaming for a new chat contact. *

*

* For more information about message streaming, see Enable real-time chat message streaming in the Amazon Connect * Administrator Guide. *

* * @param startContactStreamingRequest * @return A Java Future object containing the response from the * StartContactStreaming service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws LimitExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future startContactStreamingAsync( final StartContactStreamingRequest startContactStreamingRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public StartContactStreamingResult call() throws Exception { return startContactStreaming(startContactStreamingRequest); } }); } /** *

* Initiates real-time message streaming for a new chat contact. *

*

* For more information about message streaming, see Enable real-time chat message streaming in the Amazon Connect * Administrator Guide. *

* * @param startContactStreamingRequest * @return A Java Future object containing the response from the * StartContactStreaming service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws LimitExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future startContactStreamingAsync( final StartContactStreamingRequest startContactStreamingRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public StartContactStreamingResult call() throws Exception { StartContactStreamingResult result = null; try { result = startContactStreaming(startContactStreamingRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(startContactStreamingRequest, result); return result; } }); } /** *

* Places an outbound call to a contact, and then initiates the flow. It * performs the actions in the flow that's specified (in * ContactFlowId). *

*

* Agents do not initiate the outbound API, which means that they do not * dial the contact. If the flow places an outbound call to a contact, and * then puts the contact in queue, the call is then routed to the agent, * like any other inbound case. *

*

* There is a 60-second dialing timeout for this operation. If the call is * not connected after 60 seconds, it fails. *

* *

* UK numbers with a 447 prefix are not allowed by default. Before you can * dial these UK mobile numbers, you must submit a service quota increase * request. For more information, see Amazon Connect Service Quotas in the Amazon Connect Administrator * Guide. *

*
*

* Campaign calls are not allowed by default. Before you can make a call * with TrafficType = CAMPAIGN, you must submit a * service quota increase request to the quota Amazon Connect campaigns. *

*
* * @param startOutboundVoiceContactRequest * @return A Java Future object containing the response from the * StartOutboundVoiceContact service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws LimitExceededException * @throws DestinationNotAllowedException * @throws OutboundContactNotPermittedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future startOutboundVoiceContactAsync( final StartOutboundVoiceContactRequest startOutboundVoiceContactRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public StartOutboundVoiceContactResult call() throws Exception { return startOutboundVoiceContact(startOutboundVoiceContactRequest); } }); } /** *

* Places an outbound call to a contact, and then initiates the flow. It * performs the actions in the flow that's specified (in * ContactFlowId). *

*

* Agents do not initiate the outbound API, which means that they do not * dial the contact. If the flow places an outbound call to a contact, and * then puts the contact in queue, the call is then routed to the agent, * like any other inbound case. *

*

* There is a 60-second dialing timeout for this operation. If the call is * not connected after 60 seconds, it fails. *

* *

* UK numbers with a 447 prefix are not allowed by default. Before you can * dial these UK mobile numbers, you must submit a service quota increase * request. For more information, see Amazon Connect Service Quotas in the Amazon Connect Administrator * Guide. *

*
*

* Campaign calls are not allowed by default. Before you can make a call * with TrafficType = CAMPAIGN, you must submit a * service quota increase request to the quota Amazon Connect campaigns. *

*
* * @param startOutboundVoiceContactRequest * @return A Java Future object containing the response from the * StartOutboundVoiceContact service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws LimitExceededException * @throws DestinationNotAllowedException * @throws OutboundContactNotPermittedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future startOutboundVoiceContactAsync( final StartOutboundVoiceContactRequest startOutboundVoiceContactRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public StartOutboundVoiceContactResult call() throws Exception { StartOutboundVoiceContactResult result = null; try { result = startOutboundVoiceContact(startOutboundVoiceContactRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(startOutboundVoiceContactRequest, result); return result; } }); } /** *

* Initiates a flow to start a new task. *

* * @param startTaskContactRequest * @return A Java Future object containing the response from the * StartTaskContact service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws ServiceQuotaExceededException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future startTaskContactAsync( final StartTaskContactRequest startTaskContactRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public StartTaskContactResult call() throws Exception { return startTaskContact(startTaskContactRequest); } }); } /** *

* Initiates a flow to start a new task. *

* * @param startTaskContactRequest * @return A Java Future object containing the response from the * StartTaskContact service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws ServiceQuotaExceededException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future startTaskContactAsync( final StartTaskContactRequest startTaskContactRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public StartTaskContactResult call() throws Exception { StartTaskContactResult result = null; try { result = startTaskContact(startTaskContactRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(startTaskContactRequest, result); return result; } }); } /** *

* Ends the specified contact. This call does not work for the following * initiation methods: *

*
    *
  • *

    * DISCONNECT *

    *
  • *
  • *

    * TRANSFER *

    *
  • *
  • *

    * QUEUE_TRANSFER *

    *
  • *
* * @param stopContactRequest * @return A Java Future object containing the response from the StopContact * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws ContactNotFoundException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future stopContactAsync(final StopContactRequest stopContactRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public StopContactResult call() throws Exception { return stopContact(stopContactRequest); } }); } /** *

* Ends the specified contact. This call does not work for the following * initiation methods: *

*
    *
  • *

    * DISCONNECT *

    *
  • *
  • *

    * TRANSFER *

    *
  • *
  • *

    * QUEUE_TRANSFER *

    *
  • *
* * @param stopContactRequest * @return A Java Future object containing the response from the StopContact * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws ContactNotFoundException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future stopContactAsync(final StopContactRequest stopContactRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public StopContactResult call() throws Exception { StopContactResult result = null; try { result = stopContact(stopContactRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(stopContactRequest, result); return result; } }); } /** *

* Stops recording a call when a contact is being recorded. * StopContactRecording is a one-time action. If you use * StopContactRecording to stop recording an ongoing call, you can't use * StartContactRecording to restart it. For scenarios where the recording * has started and you want to suspend it for sensitive information (for * example, to collect a credit card number), and then restart it, use * SuspendContactRecording and ResumeContactRecording. *

*

* Only voice recordings are supported at this time. *

* * @param stopContactRecordingRequest * @return A Java Future object containing the response from the * StopContactRecording service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future stopContactRecordingAsync( final StopContactRecordingRequest stopContactRecordingRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public StopContactRecordingResult call() throws Exception { return stopContactRecording(stopContactRecordingRequest); } }); } /** *

* Stops recording a call when a contact is being recorded. * StopContactRecording is a one-time action. If you use * StopContactRecording to stop recording an ongoing call, you can't use * StartContactRecording to restart it. For scenarios where the recording * has started and you want to suspend it for sensitive information (for * example, to collect a credit card number), and then restart it, use * SuspendContactRecording and ResumeContactRecording. *

*

* Only voice recordings are supported at this time. *

* * @param stopContactRecordingRequest * @return A Java Future object containing the response from the * StopContactRecording service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future stopContactRecordingAsync( final StopContactRecordingRequest stopContactRecordingRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public StopContactRecordingResult call() throws Exception { StopContactRecordingResult result = null; try { result = stopContactRecording(stopContactRecordingRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(stopContactRecordingRequest, result); return result; } }); } /** *

* Ends message streaming on a specified contact. To restart message * streaming on that contact, call the StartContactStreaming API. *

* * @param stopContactStreamingRequest * @return A Java Future object containing the response from the * StopContactStreaming service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future stopContactStreamingAsync( final StopContactStreamingRequest stopContactStreamingRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public StopContactStreamingResult call() throws Exception { return stopContactStreaming(stopContactStreamingRequest); } }); } /** *

* Ends message streaming on a specified contact. To restart message * streaming on that contact, call the StartContactStreaming API. *

* * @param stopContactStreamingRequest * @return A Java Future object containing the response from the * StopContactStreaming service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future stopContactStreamingAsync( final StopContactStreamingRequest stopContactStreamingRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public StopContactStreamingResult call() throws Exception { StopContactStreamingResult result = null; try { result = stopContactStreaming(stopContactStreamingRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(stopContactStreamingRequest, result); return result; } }); } /** *

* Submits a contact evaluation in the specified Amazon Connect instance. * Answers included in the request are merged with existing answers for the * given evaluation. If no answers or notes are passed, the evaluation is * submitted with the existing answers and notes. You can delete an answer * or note by passing an empty object ({}) to the question * identifier. *

*

* If a contact evaluation is already in submitted state, this operation * will trigger a resubmission. *

* * @param submitContactEvaluationRequest * @return A Java Future object containing the response from the * SubmitContactEvaluation service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future submitContactEvaluationAsync( final SubmitContactEvaluationRequest submitContactEvaluationRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public SubmitContactEvaluationResult call() throws Exception { return submitContactEvaluation(submitContactEvaluationRequest); } }); } /** *

* Submits a contact evaluation in the specified Amazon Connect instance. * Answers included in the request are merged with existing answers for the * given evaluation. If no answers or notes are passed, the evaluation is * submitted with the existing answers and notes. You can delete an answer * or note by passing an empty object ({}) to the question * identifier. *

*

* If a contact evaluation is already in submitted state, this operation * will trigger a resubmission. *

* * @param submitContactEvaluationRequest * @return A Java Future object containing the response from the * SubmitContactEvaluation service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future submitContactEvaluationAsync( final SubmitContactEvaluationRequest submitContactEvaluationRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public SubmitContactEvaluationResult call() throws Exception { SubmitContactEvaluationResult result = null; try { result = submitContactEvaluation(submitContactEvaluationRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(submitContactEvaluationRequest, result); return result; } }); } /** *

* When a contact is being recorded, this API suspends recording the call or * screen. For example, you might suspend the call or screen recording while * collecting sensitive information, such as a credit card number. Then use * ResumeContactRecording to restart recording. *

*

* The period of time that the recording is suspended is filled with silence * in the final recording. *

*

* Voice and screen recordings are supported. *

* * @param suspendContactRecordingRequest * @return A Java Future object containing the response from the * SuspendContactRecording service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future suspendContactRecordingAsync( final SuspendContactRecordingRequest suspendContactRecordingRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public SuspendContactRecordingResult call() throws Exception { return suspendContactRecording(suspendContactRecordingRequest); } }); } /** *

* When a contact is being recorded, this API suspends recording the call or * screen. For example, you might suspend the call or screen recording while * collecting sensitive information, such as a credit card number. Then use * ResumeContactRecording to restart recording. *

*

* The period of time that the recording is suspended is filled with silence * in the final recording. *

*

* Voice and screen recordings are supported. *

* * @param suspendContactRecordingRequest * @return A Java Future object containing the response from the * SuspendContactRecording service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future suspendContactRecordingAsync( final SuspendContactRecordingRequest suspendContactRecordingRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public SuspendContactRecordingResult call() throws Exception { SuspendContactRecordingResult result = null; try { result = suspendContactRecording(suspendContactRecordingRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(suspendContactRecordingRequest, result); return result; } }); } /** *

* Adds the specified tags to the specified resource. *

*

* Some of the supported resource types are agents, routing profiles, * queues, quick connects, contact flows, agent statuses, hours of * operation, phone numbers, security profiles, and task templates. For a * complete list, see Tagging resources in Amazon Connect. *

*

* For sample policies that use tags, see Amazon Connect Identity-Based Policy Examples in the Amazon * Connect Administrator Guide. *

* * @param tagResourceRequest * @return A Java Future object containing the response from the TagResource * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws InternalServiceException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future tagResourceAsync(final TagResourceRequest tagResourceRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { tagResource(tagResourceRequest); return null; } }); } /** *

* Adds the specified tags to the specified resource. *

*

* Some of the supported resource types are agents, routing profiles, * queues, quick connects, contact flows, agent statuses, hours of * operation, phone numbers, security profiles, and task templates. For a * complete list, see Tagging resources in Amazon Connect. *

*

* For sample policies that use tags, see Amazon Connect Identity-Based Policy Examples in the Amazon * Connect Administrator Guide. *

* * @param tagResourceRequest * @return A Java Future object containing the response from the TagResource * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws InternalServiceException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future tagResourceAsync(final TagResourceRequest tagResourceRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { tagResource(tagResourceRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(tagResourceRequest, result); return result; } }); } /** *

* Transfers contacts from one agent or queue to another agent or queue at * any point after a contact is created. You can transfer a contact to * another queue by providing the flow which orchestrates the contact to the * destination queue. This gives you more control over contact handling and * helps you adhere to the service level agreement (SLA) guaranteed to your * customers. *

*

* Note the following requirements: *

*
    *
  • *

    * Transfer is supported for only TASK contacts. *

    *
  • *
  • *

    * Do not use both QueueId and UserId in the same * call. *

    *
  • *
  • *

    * The following flow types are supported: Inbound flow, Transfer to agent * flow, and Transfer to queue flow. *

    *
  • *
  • *

    * The TransferContact API can be called only on active * contacts. *

    *
  • *
  • *

    * A contact cannot be transferred more than 11 times. *

    *
  • *
* * @param transferContactRequest * @return A Java Future object containing the response from the * TransferContact service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws IdempotencyException * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future transferContactAsync( final TransferContactRequest transferContactRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public TransferContactResult call() throws Exception { return transferContact(transferContactRequest); } }); } /** *

* Transfers contacts from one agent or queue to another agent or queue at * any point after a contact is created. You can transfer a contact to * another queue by providing the flow which orchestrates the contact to the * destination queue. This gives you more control over contact handling and * helps you adhere to the service level agreement (SLA) guaranteed to your * customers. *

*

* Note the following requirements: *

*
    *
  • *

    * Transfer is supported for only TASK contacts. *

    *
  • *
  • *

    * Do not use both QueueId and UserId in the same * call. *

    *
  • *
  • *

    * The following flow types are supported: Inbound flow, Transfer to agent * flow, and Transfer to queue flow. *

    *
  • *
  • *

    * The TransferContact API can be called only on active * contacts. *

    *
  • *
  • *

    * A contact cannot be transferred more than 11 times. *

    *
  • *
* * @param transferContactRequest * @return A Java Future object containing the response from the * TransferContact service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws IdempotencyException * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future transferContactAsync( final TransferContactRequest transferContactRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public TransferContactResult call() throws Exception { TransferContactResult result = null; try { result = transferContact(transferContactRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(transferContactRequest, result); return result; } }); } /** *

* Removes the specified tags from the specified resource. *

* * @param untagResourceRequest * @return A Java Future object containing the response from the * UntagResource service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws InternalServiceException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future untagResourceAsync(final UntagResourceRequest untagResourceRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { untagResource(untagResourceRequest); return null; } }); } /** *

* Removes the specified tags from the specified resource. *

* * @param untagResourceRequest * @return A Java Future object containing the response from the * UntagResource service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws InternalServiceException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future untagResourceAsync(final UntagResourceRequest untagResourceRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { untagResource(untagResourceRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(untagResourceRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Updates agent status. *

* * @param updateAgentStatusRequest * @return A Java Future object containing the response from the * UpdateAgentStatus service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateAgentStatusAsync( final UpdateAgentStatusRequest updateAgentStatusRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { updateAgentStatus(updateAgentStatusRequest); return null; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Updates agent status. *

* * @param updateAgentStatusRequest * @return A Java Future object containing the response from the * UpdateAgentStatus service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateAgentStatusAsync( final UpdateAgentStatusRequest updateAgentStatusRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { updateAgentStatus(updateAgentStatusRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateAgentStatusRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Adds or updates user-defined contact information associated with the * specified contact. At least one field to be updated must be present in * the request. *

* *

* You can add or update user-defined contact information for both ongoing * and completed contacts. *

*
* * @param updateContactRequest * @return A Java Future object containing the response from the * UpdateContact service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateContactAsync( final UpdateContactRequest updateContactRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateContactResult call() throws Exception { return updateContact(updateContactRequest); } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Adds or updates user-defined contact information associated with the * specified contact. At least one field to be updated must be present in * the request. *

* *

* You can add or update user-defined contact information for both ongoing * and completed contacts. *

*
* * @param updateContactRequest * @return A Java Future object containing the response from the * UpdateContact service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateContactAsync( final UpdateContactRequest updateContactRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateContactResult call() throws Exception { UpdateContactResult result = null; try { result = updateContact(updateContactRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateContactRequest, result); return result; } }); } /** *

* Creates or updates user-defined contact attributes associated with the * specified contact. *

*

* You can create or update user-defined attributes for both ongoing and * completed contacts. For example, while the call is active, you can update * the customer's name or the reason the customer called. You can add notes * about steps that the agent took during the call that display to the next * agent that takes the call. You can also update attributes for a contact * using data from your CRM application and save the data with the contact * in Amazon Connect. You could also flag calls for additional analysis, * such as legal review or to identify abusive callers. *

*

* Contact attributes are available in Amazon Connect for 24 months, and are * then deleted. For information about contact record retention and the * maximum size of the contact record attributes section, see Feature specifications in the Amazon Connect Administrator * Guide. *

* * @param updateContactAttributesRequest * @return A Java Future object containing the response from the * UpdateContactAttributes service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateContactAttributesAsync( final UpdateContactAttributesRequest updateContactAttributesRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateContactAttributesResult call() throws Exception { return updateContactAttributes(updateContactAttributesRequest); } }); } /** *

* Creates or updates user-defined contact attributes associated with the * specified contact. *

*

* You can create or update user-defined attributes for both ongoing and * completed contacts. For example, while the call is active, you can update * the customer's name or the reason the customer called. You can add notes * about steps that the agent took during the call that display to the next * agent that takes the call. You can also update attributes for a contact * using data from your CRM application and save the data with the contact * in Amazon Connect. You could also flag calls for additional analysis, * such as legal review or to identify abusive callers. *

*

* Contact attributes are available in Amazon Connect for 24 months, and are * then deleted. For information about contact record retention and the * maximum size of the contact record attributes section, see Feature specifications in the Amazon Connect Administrator * Guide. *

* * @param updateContactAttributesRequest * @return A Java Future object containing the response from the * UpdateContactAttributes service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateContactAttributesAsync( final UpdateContactAttributesRequest updateContactAttributesRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateContactAttributesResult call() throws Exception { UpdateContactAttributesResult result = null; try { result = updateContactAttributes(updateContactAttributesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateContactAttributesRequest, result); return result; } }); } /** *

* Updates details about a contact evaluation in the specified Amazon * Connect instance. A contact evaluation must be in draft state. Answers * included in the request are merged with existing answers for the given * evaluation. An answer or note can be deleted by passing an empty object ( * {}) to the question identifier. *

* * @param updateContactEvaluationRequest * @return A Java Future object containing the response from the * UpdateContactEvaluation service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateContactEvaluationAsync( final UpdateContactEvaluationRequest updateContactEvaluationRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateContactEvaluationResult call() throws Exception { return updateContactEvaluation(updateContactEvaluationRequest); } }); } /** *

* Updates details about a contact evaluation in the specified Amazon * Connect instance. A contact evaluation must be in draft state. Answers * included in the request are merged with existing answers for the given * evaluation. An answer or note can be deleted by passing an empty object ( * {}) to the question identifier. *

* * @param updateContactEvaluationRequest * @return A Java Future object containing the response from the * UpdateContactEvaluation service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateContactEvaluationAsync( final UpdateContactEvaluationRequest updateContactEvaluationRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateContactEvaluationResult call() throws Exception { UpdateContactEvaluationResult result = null; try { result = updateContactEvaluation(updateContactEvaluationRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateContactEvaluationRequest, result); return result; } }); } /** *

* Updates the specified flow. *

*

* You can also create and update flows using the Amazon Connect Flow language. *

* * @param updateContactFlowContentRequest * @return A Java Future object containing the response from the * UpdateContactFlowContent service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidContactFlowException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateContactFlowContentAsync( final UpdateContactFlowContentRequest updateContactFlowContentRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateContactFlowContentResult call() throws Exception { return updateContactFlowContent(updateContactFlowContentRequest); } }); } /** *

* Updates the specified flow. *

*

* You can also create and update flows using the Amazon Connect Flow language. *

* * @param updateContactFlowContentRequest * @return A Java Future object containing the response from the * UpdateContactFlowContent service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidContactFlowException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateContactFlowContentAsync( final UpdateContactFlowContentRequest updateContactFlowContentRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateContactFlowContentResult call() throws Exception { UpdateContactFlowContentResult result = null; try { result = updateContactFlowContent(updateContactFlowContentRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateContactFlowContentRequest, result); return result; } }); } /** *

* Updates metadata about specified flow. *

* * @param updateContactFlowMetadataRequest * @return A Java Future object containing the response from the * UpdateContactFlowMetadata service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateContactFlowMetadataAsync( final UpdateContactFlowMetadataRequest updateContactFlowMetadataRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateContactFlowMetadataResult call() throws Exception { return updateContactFlowMetadata(updateContactFlowMetadataRequest); } }); } /** *

* Updates metadata about specified flow. *

* * @param updateContactFlowMetadataRequest * @return A Java Future object containing the response from the * UpdateContactFlowMetadata service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateContactFlowMetadataAsync( final UpdateContactFlowMetadataRequest updateContactFlowMetadataRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateContactFlowMetadataResult call() throws Exception { UpdateContactFlowMetadataResult result = null; try { result = updateContactFlowMetadata(updateContactFlowMetadataRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateContactFlowMetadataRequest, result); return result; } }); } /** *

* Updates specified flow module for the specified Amazon Connect instance. *

* * @param updateContactFlowModuleContentRequest * @return A Java Future object containing the response from the * UpdateContactFlowModuleContent service method, as returned by * Amazon Connect. * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidContactFlowModuleException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateContactFlowModuleContentAsync( final UpdateContactFlowModuleContentRequest updateContactFlowModuleContentRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateContactFlowModuleContentResult call() throws Exception { return updateContactFlowModuleContent(updateContactFlowModuleContentRequest); } }); } /** *

* Updates specified flow module for the specified Amazon Connect instance. *

* * @param updateContactFlowModuleContentRequest * @return A Java Future object containing the response from the * UpdateContactFlowModuleContent service method, as returned by * Amazon Connect. * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidContactFlowModuleException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateContactFlowModuleContentAsync( final UpdateContactFlowModuleContentRequest updateContactFlowModuleContentRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateContactFlowModuleContentResult call() throws Exception { UpdateContactFlowModuleContentResult result = null; try { result = updateContactFlowModuleContent(updateContactFlowModuleContentRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateContactFlowModuleContentRequest, result); return result; } }); } /** *

* Updates metadata about specified flow module. *

* * @param updateContactFlowModuleMetadataRequest * @return A Java Future object containing the response from the * UpdateContactFlowModuleMetadata service method, as returned by * Amazon Connect. * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateContactFlowModuleMetadataAsync( final UpdateContactFlowModuleMetadataRequest updateContactFlowModuleMetadataRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateContactFlowModuleMetadataResult call() throws Exception { return updateContactFlowModuleMetadata(updateContactFlowModuleMetadataRequest); } }); } /** *

* Updates metadata about specified flow module. *

* * @param updateContactFlowModuleMetadataRequest * @return A Java Future object containing the response from the * UpdateContactFlowModuleMetadata service method, as returned by * Amazon Connect. * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateContactFlowModuleMetadataAsync( final UpdateContactFlowModuleMetadataRequest updateContactFlowModuleMetadataRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateContactFlowModuleMetadataResult call() throws Exception { UpdateContactFlowModuleMetadataResult result = null; try { result = updateContactFlowModuleMetadata(updateContactFlowModuleMetadataRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateContactFlowModuleMetadataRequest, result); return result; } }); } /** *

* The name of the flow. *

*

* You can also create and update flows using the Amazon Connect Flow language. *

* * @param updateContactFlowNameRequest * @return A Java Future object containing the response from the * UpdateContactFlowName service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateContactFlowNameAsync( final UpdateContactFlowNameRequest updateContactFlowNameRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateContactFlowNameResult call() throws Exception { return updateContactFlowName(updateContactFlowNameRequest); } }); } /** *

* The name of the flow. *

*

* You can also create and update flows using the Amazon Connect Flow language. *

* * @param updateContactFlowNameRequest * @return A Java Future object containing the response from the * UpdateContactFlowName service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateContactFlowNameAsync( final UpdateContactFlowNameRequest updateContactFlowNameRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateContactFlowNameResult call() throws Exception { UpdateContactFlowNameResult result = null; try { result = updateContactFlowName(updateContactFlowNameRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateContactFlowNameRequest, result); return result; } }); } /** *

* Updates the scheduled time of a task contact that is already scheduled. *

* * @param updateContactScheduleRequest * @return A Java Future object containing the response from the * UpdateContactSchedule service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws LimitExceededException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateContactScheduleAsync( final UpdateContactScheduleRequest updateContactScheduleRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateContactScheduleResult call() throws Exception { return updateContactSchedule(updateContactScheduleRequest); } }); } /** *

* Updates the scheduled time of a task contact that is already scheduled. *

* * @param updateContactScheduleRequest * @return A Java Future object containing the response from the * UpdateContactSchedule service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws LimitExceededException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateContactScheduleAsync( final UpdateContactScheduleRequest updateContactScheduleRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateContactScheduleResult call() throws Exception { UpdateContactScheduleResult result = null; try { result = updateContactSchedule(updateContactScheduleRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateContactScheduleRequest, result); return result; } }); } /** *

* Updates details about a specific evaluation form version in the specified * Amazon Connect instance. Question and section identifiers cannot be * duplicated within the same evaluation form. *

*

* This operation does not support partial updates. Instead it does a full * update of evaluation form content. *

* * @param updateEvaluationFormRequest * @return A Java Future object containing the response from the * UpdateEvaluationForm service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws ServiceQuotaExceededException * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateEvaluationFormAsync( final UpdateEvaluationFormRequest updateEvaluationFormRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateEvaluationFormResult call() throws Exception { return updateEvaluationForm(updateEvaluationFormRequest); } }); } /** *

* Updates details about a specific evaluation form version in the specified * Amazon Connect instance. Question and section identifiers cannot be * duplicated within the same evaluation form. *

*

* This operation does not support partial updates. Instead it does a full * update of evaluation form content. *

* * @param updateEvaluationFormRequest * @return A Java Future object containing the response from the * UpdateEvaluationForm service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws ServiceQuotaExceededException * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateEvaluationFormAsync( final UpdateEvaluationFormRequest updateEvaluationFormRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateEvaluationFormResult call() throws Exception { UpdateEvaluationFormResult result = null; try { result = updateEvaluationForm(updateEvaluationFormRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateEvaluationFormRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Updates the hours of operation. *

* * @param updateHoursOfOperationRequest * @return A Java Future object containing the response from the * UpdateHoursOfOperation service method, as returned by Amazon * Connect. * @throws DuplicateResourceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateHoursOfOperationAsync( final UpdateHoursOfOperationRequest updateHoursOfOperationRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { updateHoursOfOperation(updateHoursOfOperationRequest); return null; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Updates the hours of operation. *

* * @param updateHoursOfOperationRequest * @return A Java Future object containing the response from the * UpdateHoursOfOperation service method, as returned by Amazon * Connect. * @throws DuplicateResourceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateHoursOfOperationAsync( final UpdateHoursOfOperationRequest updateHoursOfOperationRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { updateHoursOfOperation(updateHoursOfOperationRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateHoursOfOperationRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Updates the value for the specified attribute type. *

* * @param updateInstanceAttributeRequest * @return A Java Future object containing the response from the * UpdateInstanceAttribute service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateInstanceAttributeAsync( final UpdateInstanceAttributeRequest updateInstanceAttributeRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { updateInstanceAttribute(updateInstanceAttributeRequest); return null; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Updates the value for the specified attribute type. *

* * @param updateInstanceAttributeRequest * @return A Java Future object containing the response from the * UpdateInstanceAttribute service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateInstanceAttributeAsync( final UpdateInstanceAttributeRequest updateInstanceAttributeRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { updateInstanceAttribute(updateInstanceAttributeRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateInstanceAttributeRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Updates an existing configuration for a resource type. This API is * idempotent. *

* * @param updateInstanceStorageConfigRequest * @return A Java Future object containing the response from the * UpdateInstanceStorageConfig service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateInstanceStorageConfigAsync( final UpdateInstanceStorageConfigRequest updateInstanceStorageConfigRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { updateInstanceStorageConfig(updateInstanceStorageConfigRequest); return null; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Updates an existing configuration for a resource type. This API is * idempotent. *

* * @param updateInstanceStorageConfigRequest * @return A Java Future object containing the response from the * UpdateInstanceStorageConfig service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateInstanceStorageConfigAsync( final UpdateInstanceStorageConfigRequest updateInstanceStorageConfigRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { updateInstanceStorageConfig(updateInstanceStorageConfigRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateInstanceStorageConfigRequest, result); return result; } }); } /** *

* Updates timeouts for when human chat participants are to be considered * idle, and when agents are automatically disconnected from a chat due to * idleness. You can set four timers: *

*
    *
  • *

    * Customer idle timeout *

    *
  • *
  • *

    * Customer auto-disconnect timeout *

    *
  • *
  • *

    * Agent idle timeout *

    *
  • *
  • *

    * Agent auto-disconnect timeout *

    *
  • *
*

* For more information about how chat timeouts work, see Set up chat timeouts for human participants. *

* * @param updateParticipantRoleConfigRequest * @return A Java Future object containing the response from the * UpdateParticipantRoleConfig service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws AccessDeniedException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateParticipantRoleConfigAsync( final UpdateParticipantRoleConfigRequest updateParticipantRoleConfigRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateParticipantRoleConfigResult call() throws Exception { return updateParticipantRoleConfig(updateParticipantRoleConfigRequest); } }); } /** *

* Updates timeouts for when human chat participants are to be considered * idle, and when agents are automatically disconnected from a chat due to * idleness. You can set four timers: *

*
    *
  • *

    * Customer idle timeout *

    *
  • *
  • *

    * Customer auto-disconnect timeout *

    *
  • *
  • *

    * Agent idle timeout *

    *
  • *
  • *

    * Agent auto-disconnect timeout *

    *
  • *
*

* For more information about how chat timeouts work, see Set up chat timeouts for human participants. *

* * @param updateParticipantRoleConfigRequest * @return A Java Future object containing the response from the * UpdateParticipantRoleConfig service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws AccessDeniedException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateParticipantRoleConfigAsync( final UpdateParticipantRoleConfigRequest updateParticipantRoleConfigRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateParticipantRoleConfigResult call() throws Exception { UpdateParticipantRoleConfigResult result = null; try { result = updateParticipantRoleConfig(updateParticipantRoleConfigRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateParticipantRoleConfigRequest, result); return result; } }); } /** *

* Updates your claimed phone number from its current Amazon Connect * instance or traffic distribution group to another Amazon Connect instance * or traffic distribution group in the same Amazon Web Services Region. *

* *

* After using this API, you must verify that the phone number is attached * to the correct flow in the target instance or traffic distribution group. * You need to do this because the API switches only the phone number to a * new instance or traffic distribution group. It doesn't migrate the flow * configuration of the phone number, too. *

*

* You can call DescribePhoneNumber API to verify the status of a previous UpdatePhoneNumber operation. *

*
* * @param updatePhoneNumberRequest * @return A Java Future object containing the response from the * UpdatePhoneNumber service method, as returned by Amazon Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws ResourceInUseException * @throws IdempotencyException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updatePhoneNumberAsync( final UpdatePhoneNumberRequest updatePhoneNumberRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdatePhoneNumberResult call() throws Exception { return updatePhoneNumber(updatePhoneNumberRequest); } }); } /** *

* Updates your claimed phone number from its current Amazon Connect * instance or traffic distribution group to another Amazon Connect instance * or traffic distribution group in the same Amazon Web Services Region. *

* *

* After using this API, you must verify that the phone number is attached * to the correct flow in the target instance or traffic distribution group. * You need to do this because the API switches only the phone number to a * new instance or traffic distribution group. It doesn't migrate the flow * configuration of the phone number, too. *

*

* You can call DescribePhoneNumber API to verify the status of a previous UpdatePhoneNumber operation. *

*
* * @param updatePhoneNumberRequest * @return A Java Future object containing the response from the * UpdatePhoneNumber service method, as returned by Amazon Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws ResourceInUseException * @throws IdempotencyException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updatePhoneNumberAsync( final UpdatePhoneNumberRequest updatePhoneNumberRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdatePhoneNumberResult call() throws Exception { UpdatePhoneNumberResult result = null; try { result = updatePhoneNumber(updatePhoneNumberRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updatePhoneNumberRequest, result); return result; } }); } /** *

* Updates a prompt. *

* * @param updatePromptRequest * @return A Java Future object containing the response from the * UpdatePrompt service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updatePromptAsync( final UpdatePromptRequest updatePromptRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdatePromptResult call() throws Exception { return updatePrompt(updatePromptRequest); } }); } /** *

* Updates a prompt. *

* * @param updatePromptRequest * @return A Java Future object containing the response from the * UpdatePrompt service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updatePromptAsync( final UpdatePromptRequest updatePromptRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdatePromptResult call() throws Exception { UpdatePromptResult result = null; try { result = updatePrompt(updatePromptRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updatePromptRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Updates the hours of operation for the specified queue. *

* * @param updateQueueHoursOfOperationRequest * @return A Java Future object containing the response from the * UpdateQueueHoursOfOperation service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateQueueHoursOfOperationAsync( final UpdateQueueHoursOfOperationRequest updateQueueHoursOfOperationRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { updateQueueHoursOfOperation(updateQueueHoursOfOperationRequest); return null; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Updates the hours of operation for the specified queue. *

* * @param updateQueueHoursOfOperationRequest * @return A Java Future object containing the response from the * UpdateQueueHoursOfOperation service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateQueueHoursOfOperationAsync( final UpdateQueueHoursOfOperationRequest updateQueueHoursOfOperationRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { updateQueueHoursOfOperation(updateQueueHoursOfOperationRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateQueueHoursOfOperationRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Updates the maximum number of contacts allowed in a queue before it is * considered full. *

* * @param updateQueueMaxContactsRequest * @return A Java Future object containing the response from the * UpdateQueueMaxContacts service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateQueueMaxContactsAsync( final UpdateQueueMaxContactsRequest updateQueueMaxContactsRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { updateQueueMaxContacts(updateQueueMaxContactsRequest); return null; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Updates the maximum number of contacts allowed in a queue before it is * considered full. *

* * @param updateQueueMaxContactsRequest * @return A Java Future object containing the response from the * UpdateQueueMaxContacts service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateQueueMaxContactsAsync( final UpdateQueueMaxContactsRequest updateQueueMaxContactsRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { updateQueueMaxContacts(updateQueueMaxContactsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateQueueMaxContactsRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Updates the name and description of a queue. At least Name * or Description must be provided. *

* * @param updateQueueNameRequest * @return A Java Future object containing the response from the * UpdateQueueName service method, as returned by Amazon Connect. * @throws DuplicateResourceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateQueueNameAsync(final UpdateQueueNameRequest updateQueueNameRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { updateQueueName(updateQueueNameRequest); return null; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Updates the name and description of a queue. At least Name * or Description must be provided. *

* * @param updateQueueNameRequest * @return A Java Future object containing the response from the * UpdateQueueName service method, as returned by Amazon Connect. * @throws DuplicateResourceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateQueueNameAsync(final UpdateQueueNameRequest updateQueueNameRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { updateQueueName(updateQueueNameRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateQueueNameRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Updates the outbound caller ID name, number, and outbound whisper flow * for a specified queue. *

* *

* If the number being used in the input is claimed to a traffic * distribution group, and you are calling this API using an instance in the * Amazon Web Services Region where the traffic distribution group was * created, you can use either a full phone number ARN or UUID value for the * OutboundCallerIdNumberId value of the OutboundCallerConfig request body parameter. However, if the number * is claimed to a traffic distribution group and you are calling this API * using an instance in the alternate Amazon Web Services Region associated * with the traffic distribution group, you must provide a full phone number * ARN. If a UUID is provided in this scenario, you will receive a * ResourceNotFoundException. *

*
* * @param updateQueueOutboundCallerConfigRequest * @return A Java Future object containing the response from the * UpdateQueueOutboundCallerConfig service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateQueueOutboundCallerConfigAsync( final UpdateQueueOutboundCallerConfigRequest updateQueueOutboundCallerConfigRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { updateQueueOutboundCallerConfig(updateQueueOutboundCallerConfigRequest); return null; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Updates the outbound caller ID name, number, and outbound whisper flow * for a specified queue. *

* *

* If the number being used in the input is claimed to a traffic * distribution group, and you are calling this API using an instance in the * Amazon Web Services Region where the traffic distribution group was * created, you can use either a full phone number ARN or UUID value for the * OutboundCallerIdNumberId value of the OutboundCallerConfig request body parameter. However, if the number * is claimed to a traffic distribution group and you are calling this API * using an instance in the alternate Amazon Web Services Region associated * with the traffic distribution group, you must provide a full phone number * ARN. If a UUID is provided in this scenario, you will receive a * ResourceNotFoundException. *

*
* * @param updateQueueOutboundCallerConfigRequest * @return A Java Future object containing the response from the * UpdateQueueOutboundCallerConfig service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateQueueOutboundCallerConfigAsync( final UpdateQueueOutboundCallerConfigRequest updateQueueOutboundCallerConfigRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { updateQueueOutboundCallerConfig(updateQueueOutboundCallerConfigRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateQueueOutboundCallerConfigRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Updates the status of the queue. *

* * @param updateQueueStatusRequest * @return A Java Future object containing the response from the * UpdateQueueStatus service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateQueueStatusAsync( final UpdateQueueStatusRequest updateQueueStatusRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { updateQueueStatus(updateQueueStatusRequest); return null; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Updates the status of the queue. *

* * @param updateQueueStatusRequest * @return A Java Future object containing the response from the * UpdateQueueStatus service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateQueueStatusAsync( final UpdateQueueStatusRequest updateQueueStatusRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { updateQueueStatus(updateQueueStatusRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateQueueStatusRequest, result); return result; } }); } /** *

* Updates the configuration settings for the specified quick connect. *

* * @param updateQuickConnectConfigRequest * @return A Java Future object containing the response from the * UpdateQuickConnectConfig service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateQuickConnectConfigAsync( final UpdateQuickConnectConfigRequest updateQuickConnectConfigRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { updateQuickConnectConfig(updateQuickConnectConfigRequest); return null; } }); } /** *

* Updates the configuration settings for the specified quick connect. *

* * @param updateQuickConnectConfigRequest * @return A Java Future object containing the response from the * UpdateQuickConnectConfig service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateQuickConnectConfigAsync( final UpdateQuickConnectConfigRequest updateQuickConnectConfigRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { updateQuickConnectConfig(updateQuickConnectConfigRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateQuickConnectConfigRequest, result); return result; } }); } /** *

* Updates the name and description of a quick connect. The request accepts * the following data in JSON format. At least Name or * Description must be provided. *

* * @param updateQuickConnectNameRequest * @return A Java Future object containing the response from the * UpdateQuickConnectName service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateQuickConnectNameAsync( final UpdateQuickConnectNameRequest updateQuickConnectNameRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { updateQuickConnectName(updateQuickConnectNameRequest); return null; } }); } /** *

* Updates the name and description of a quick connect. The request accepts * the following data in JSON format. At least Name or * Description must be provided. *

* * @param updateQuickConnectNameRequest * @return A Java Future object containing the response from the * UpdateQuickConnectName service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateQuickConnectNameAsync( final UpdateQuickConnectNameRequest updateQuickConnectNameRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { updateQuickConnectName(updateQuickConnectNameRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateQuickConnectNameRequest, result); return result; } }); } /** *

* Updates the channels that agents can handle in the Contact Control Panel * (CCP) for a routing profile. *

* * @param updateRoutingProfileConcurrencyRequest * @return A Java Future object containing the response from the * UpdateRoutingProfileConcurrency service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateRoutingProfileConcurrencyAsync( final UpdateRoutingProfileConcurrencyRequest updateRoutingProfileConcurrencyRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { updateRoutingProfileConcurrency(updateRoutingProfileConcurrencyRequest); return null; } }); } /** *

* Updates the channels that agents can handle in the Contact Control Panel * (CCP) for a routing profile. *

* * @param updateRoutingProfileConcurrencyRequest * @return A Java Future object containing the response from the * UpdateRoutingProfileConcurrency service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateRoutingProfileConcurrencyAsync( final UpdateRoutingProfileConcurrencyRequest updateRoutingProfileConcurrencyRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { updateRoutingProfileConcurrency(updateRoutingProfileConcurrencyRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateRoutingProfileConcurrencyRequest, result); return result; } }); } /** *

* Updates the default outbound queue of a routing profile. *

* * @param updateRoutingProfileDefaultOutboundQueueRequest * @return A Java Future object containing the response from the * UpdateRoutingProfileDefaultOutboundQueue service method, as * returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateRoutingProfileDefaultOutboundQueueAsync( final UpdateRoutingProfileDefaultOutboundQueueRequest updateRoutingProfileDefaultOutboundQueueRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { updateRoutingProfileDefaultOutboundQueue(updateRoutingProfileDefaultOutboundQueueRequest); return null; } }); } /** *

* Updates the default outbound queue of a routing profile. *

* * @param updateRoutingProfileDefaultOutboundQueueRequest * @return A Java Future object containing the response from the * UpdateRoutingProfileDefaultOutboundQueue service method, as * returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateRoutingProfileDefaultOutboundQueueAsync( final UpdateRoutingProfileDefaultOutboundQueueRequest updateRoutingProfileDefaultOutboundQueueRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { updateRoutingProfileDefaultOutboundQueue(updateRoutingProfileDefaultOutboundQueueRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateRoutingProfileDefaultOutboundQueueRequest, result); return result; } }); } /** *

* Updates the name and description of a routing profile. The request * accepts the following data in JSON format. At least Name or * Description must be provided. *

* * @param updateRoutingProfileNameRequest * @return A Java Future object containing the response from the * UpdateRoutingProfileName service method, as returned by Amazon * Connect. * @throws DuplicateResourceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateRoutingProfileNameAsync( final UpdateRoutingProfileNameRequest updateRoutingProfileNameRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { updateRoutingProfileName(updateRoutingProfileNameRequest); return null; } }); } /** *

* Updates the name and description of a routing profile. The request * accepts the following data in JSON format. At least Name or * Description must be provided. *

* * @param updateRoutingProfileNameRequest * @return A Java Future object containing the response from the * UpdateRoutingProfileName service method, as returned by Amazon * Connect. * @throws DuplicateResourceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateRoutingProfileNameAsync( final UpdateRoutingProfileNameRequest updateRoutingProfileNameRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { updateRoutingProfileName(updateRoutingProfileNameRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateRoutingProfileNameRequest, result); return result; } }); } /** *

* Updates the properties associated with a set of queues for a routing * profile. *

* * @param updateRoutingProfileQueuesRequest * @return A Java Future object containing the response from the * UpdateRoutingProfileQueues service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateRoutingProfileQueuesAsync( final UpdateRoutingProfileQueuesRequest updateRoutingProfileQueuesRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { updateRoutingProfileQueues(updateRoutingProfileQueuesRequest); return null; } }); } /** *

* Updates the properties associated with a set of queues for a routing * profile. *

* * @param updateRoutingProfileQueuesRequest * @return A Java Future object containing the response from the * UpdateRoutingProfileQueues service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateRoutingProfileQueuesAsync( final UpdateRoutingProfileQueuesRequest updateRoutingProfileQueuesRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { updateRoutingProfileQueues(updateRoutingProfileQueuesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateRoutingProfileQueuesRequest, result); return result; } }); } /** *

* Updates a rule for the specified Amazon Connect instance. *

*

* Use the Rules Function language to code conditions for the rule. *

* * @param updateRuleRequest * @return A Java Future object containing the response from the UpdateRule * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AccessDeniedException * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateRuleAsync(final UpdateRuleRequest updateRuleRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { updateRule(updateRuleRequest); return null; } }); } /** *

* Updates a rule for the specified Amazon Connect instance. *

*

* Use the Rules Function language to code conditions for the rule. *

* * @param updateRuleRequest * @return A Java Future object containing the response from the UpdateRule * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException * @throws AccessDeniedException * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateRuleAsync(final UpdateRuleRequest updateRuleRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { updateRule(updateRuleRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateRuleRequest, result); return result; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Updates a security profile. *

* * @param updateSecurityProfileRequest * @return A Java Future object containing the response from the * UpdateSecurityProfile service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateSecurityProfileAsync( final UpdateSecurityProfileRequest updateSecurityProfileRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { updateSecurityProfile(updateSecurityProfileRequest); return null; } }); } /** *

* This API is in preview release for Amazon Connect and is subject to * change. *

*

* Updates a security profile. *

* * @param updateSecurityProfileRequest * @return A Java Future object containing the response from the * UpdateSecurityProfile service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateSecurityProfileAsync( final UpdateSecurityProfileRequest updateSecurityProfileRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { updateSecurityProfile(updateSecurityProfileRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateSecurityProfileRequest, result); return result; } }); } /** *

* Updates details about a specific task template in the specified Amazon * Connect instance. This operation does not support partial updates. * Instead it does a full update of template content. *

* * @param updateTaskTemplateRequest * @return A Java Future object containing the response from the * UpdateTaskTemplate service method, as returned by Amazon Connect. * @throws PropertyValidationException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws ServiceQuotaExceededException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateTaskTemplateAsync( final UpdateTaskTemplateRequest updateTaskTemplateRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateTaskTemplateResult call() throws Exception { return updateTaskTemplate(updateTaskTemplateRequest); } }); } /** *

* Updates details about a specific task template in the specified Amazon * Connect instance. This operation does not support partial updates. * Instead it does a full update of template content. *

* * @param updateTaskTemplateRequest * @return A Java Future object containing the response from the * UpdateTaskTemplate service method, as returned by Amazon Connect. * @throws PropertyValidationException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws ServiceQuotaExceededException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateTaskTemplateAsync( final UpdateTaskTemplateRequest updateTaskTemplateRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateTaskTemplateResult call() throws Exception { UpdateTaskTemplateResult result = null; try { result = updateTaskTemplate(updateTaskTemplateRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateTaskTemplateRequest, result); return result; } }); } /** *

* Updates the traffic distribution for a given traffic distribution group. *

*

* For more information about updating a traffic distribution group, see Update telephony traffic distribution across Amazon Web Services Regions * in the Amazon Connect Administrator Guide. *

* * @param updateTrafficDistributionRequest * @return A Java Future object containing the response from the * UpdateTrafficDistribution service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws ResourceConflictException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateTrafficDistributionAsync( final UpdateTrafficDistributionRequest updateTrafficDistributionRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateTrafficDistributionResult call() throws Exception { return updateTrafficDistribution(updateTrafficDistributionRequest); } }); } /** *

* Updates the traffic distribution for a given traffic distribution group. *

*

* For more information about updating a traffic distribution group, see Update telephony traffic distribution across Amazon Web Services Regions * in the Amazon Connect Administrator Guide. *

* * @param updateTrafficDistributionRequest * @return A Java Future object containing the response from the * UpdateTrafficDistribution service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws ResourceConflictException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateTrafficDistributionAsync( final UpdateTrafficDistributionRequest updateTrafficDistributionRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public UpdateTrafficDistributionResult call() throws Exception { UpdateTrafficDistributionResult result = null; try { result = updateTrafficDistribution(updateTrafficDistributionRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateTrafficDistributionRequest, result); return result; } }); } /** *

* Assigns the specified hierarchy group to the specified user. *

* * @param updateUserHierarchyRequest * @return A Java Future object containing the response from the * UpdateUserHierarchy service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateUserHierarchyAsync( final UpdateUserHierarchyRequest updateUserHierarchyRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { updateUserHierarchy(updateUserHierarchyRequest); return null; } }); } /** *

* Assigns the specified hierarchy group to the specified user. *

* * @param updateUserHierarchyRequest * @return A Java Future object containing the response from the * UpdateUserHierarchy service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateUserHierarchyAsync( final UpdateUserHierarchyRequest updateUserHierarchyRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { updateUserHierarchy(updateUserHierarchyRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateUserHierarchyRequest, result); return result; } }); } /** *

* Updates the name of the user hierarchy group. *

* * @param updateUserHierarchyGroupNameRequest * @return A Java Future object containing the response from the * UpdateUserHierarchyGroupName service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateUserHierarchyGroupNameAsync( final UpdateUserHierarchyGroupNameRequest updateUserHierarchyGroupNameRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { updateUserHierarchyGroupName(updateUserHierarchyGroupNameRequest); return null; } }); } /** *

* Updates the name of the user hierarchy group. *

* * @param updateUserHierarchyGroupNameRequest * @return A Java Future object containing the response from the * UpdateUserHierarchyGroupName service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateUserHierarchyGroupNameAsync( final UpdateUserHierarchyGroupNameRequest updateUserHierarchyGroupNameRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { updateUserHierarchyGroupName(updateUserHierarchyGroupNameRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateUserHierarchyGroupNameRequest, result); return result; } }); } /** *

* Updates the user hierarchy structure: add, remove, and rename user * hierarchy levels. *

* * @param updateUserHierarchyStructureRequest * @return A Java Future object containing the response from the * UpdateUserHierarchyStructure service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ResourceInUseException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateUserHierarchyStructureAsync( final UpdateUserHierarchyStructureRequest updateUserHierarchyStructureRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { updateUserHierarchyStructure(updateUserHierarchyStructureRequest); return null; } }); } /** *

* Updates the user hierarchy structure: add, remove, and rename user * hierarchy levels. *

* * @param updateUserHierarchyStructureRequest * @return A Java Future object containing the response from the * UpdateUserHierarchyStructure service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ResourceInUseException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateUserHierarchyStructureAsync( final UpdateUserHierarchyStructureRequest updateUserHierarchyStructureRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { updateUserHierarchyStructure(updateUserHierarchyStructureRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateUserHierarchyStructureRequest, result); return result; } }); } /** *

* Updates the identity information for the specified user. *

* *

* We strongly recommend limiting who has the ability to invoke * UpdateUserIdentityInfo. Someone with that ability can change * the login credentials of other users by changing their email address. * This poses a security risk to your organization. They can change the * email address of a user to the attacker's email address, and then reset * the password through email. For more information, see Best Practices for Security Profiles in the Amazon Connect * Administrator Guide. *

*
* * @param updateUserIdentityInfoRequest * @return A Java Future object containing the response from the * UpdateUserIdentityInfo service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateUserIdentityInfoAsync( final UpdateUserIdentityInfoRequest updateUserIdentityInfoRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { updateUserIdentityInfo(updateUserIdentityInfoRequest); return null; } }); } /** *

* Updates the identity information for the specified user. *

* *

* We strongly recommend limiting who has the ability to invoke * UpdateUserIdentityInfo. Someone with that ability can change * the login credentials of other users by changing their email address. * This poses a security risk to your organization. They can change the * email address of a user to the attacker's email address, and then reset * the password through email. For more information, see Best Practices for Security Profiles in the Amazon Connect * Administrator Guide. *

*
* * @param updateUserIdentityInfoRequest * @return A Java Future object containing the response from the * UpdateUserIdentityInfo service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateUserIdentityInfoAsync( final UpdateUserIdentityInfoRequest updateUserIdentityInfoRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { updateUserIdentityInfo(updateUserIdentityInfoRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateUserIdentityInfoRequest, result); return result; } }); } /** *

* Updates the phone configuration settings for the specified user. *

* * @param updateUserPhoneConfigRequest * @return A Java Future object containing the response from the * UpdateUserPhoneConfig service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateUserPhoneConfigAsync( final UpdateUserPhoneConfigRequest updateUserPhoneConfigRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { updateUserPhoneConfig(updateUserPhoneConfigRequest); return null; } }); } /** *

* Updates the phone configuration settings for the specified user. *

* * @param updateUserPhoneConfigRequest * @return A Java Future object containing the response from the * UpdateUserPhoneConfig service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateUserPhoneConfigAsync( final UpdateUserPhoneConfigRequest updateUserPhoneConfigRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { updateUserPhoneConfig(updateUserPhoneConfigRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateUserPhoneConfigRequest, result); return result; } }); } /** *

* Assigns the specified routing profile to the specified user. *

* * @param updateUserRoutingProfileRequest * @return A Java Future object containing the response from the * UpdateUserRoutingProfile service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateUserRoutingProfileAsync( final UpdateUserRoutingProfileRequest updateUserRoutingProfileRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { updateUserRoutingProfile(updateUserRoutingProfileRequest); return null; } }); } /** *

* Assigns the specified routing profile to the specified user. *

* * @param updateUserRoutingProfileRequest * @return A Java Future object containing the response from the * UpdateUserRoutingProfile service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateUserRoutingProfileAsync( final UpdateUserRoutingProfileRequest updateUserRoutingProfileRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { updateUserRoutingProfile(updateUserRoutingProfileRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateUserRoutingProfileRequest, result); return result; } }); } /** *

* Assigns the specified security profiles to the specified user. *

* * @param updateUserSecurityProfilesRequest * @return A Java Future object containing the response from the * UpdateUserSecurityProfiles service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateUserSecurityProfilesAsync( final UpdateUserSecurityProfilesRequest updateUserSecurityProfilesRequest) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { updateUserSecurityProfiles(updateUserSecurityProfilesRequest); return null; } }); } /** *

* Assigns the specified security profiles to the specified user. *

* * @param updateUserSecurityProfilesRequest * @return A Java Future object containing the response from the * UpdateUserSecurityProfiles service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ public Future updateUserSecurityProfilesAsync( final UpdateUserSecurityProfilesRequest updateUserSecurityProfilesRequest, final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { return executorService.submit(new Callable() { public Void call() throws Exception { Void result = null; try { updateUserSecurityProfiles(updateUserSecurityProfilesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(updateUserSecurityProfilesRequest, result); return result; } }); } }