/* * 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.*; import com.amazonaws.*; import com.amazonaws.auth.*; import com.amazonaws.handlers.*; import com.amazonaws.http.*; import com.amazonaws.internal.*; import com.amazonaws.metrics.*; import com.amazonaws.transform.*; import com.amazonaws.util.*; import com.amazonaws.util.AWSRequestMetrics.Field; import com.amazonaws.services.connect.model.*; import com.amazonaws.services.connect.model.transform.*; /** * Client for accessing Amazon Connect. All service calls made using this client * are blocking, and will not return until the service call completes. * <p> * <p> * 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. * </p> * <p> * 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. * </p> * <p> * 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 <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html" * >Amazon Connect Service Quotas</a> in the <i>Amazon Connect Administrator * Guide</i>. * </p> * <p> * You can connect programmatically to an Amazon Web Services service by using * an endpoint. For a list of Amazon Connect endpoints, see <a * href="https://docs.aws.amazon.com/general/latest/gr/connect_region.html" * >Amazon Connect Endpoints</a>. * </p> */ public class AmazonConnectClient extends AmazonWebServiceClient implements AmazonConnect { /** Provider for AWS credentials. */ private AWSCredentialsProvider awsCredentialsProvider; /** * List of exception unmarshallers for all Amazon Connect exceptions. */ protected List<JsonErrorUnmarshaller> jsonErrorUnmarshallers; /** * Constructs a new client to invoke service methods on AmazonConnect. A * credentials provider chain will be used that searches for credentials in * this order: * <ul> * <li>Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY</li> * <li>Java System Properties - aws.accessKeyId and aws.secretKey</li> * <li>Instance profile credentials delivered through the Amazon EC2 * metadata service</li> * </ul> * <p> * All service calls made using this new client object are blocking, and * will not return until the service call completes. * * @see DefaultAWSCredentialsProviderChain */ @Deprecated public AmazonConnectClient() { this(new DefaultAWSCredentialsProviderChain(), new ClientConfiguration()); } /** * Constructs a new client to invoke service methods on AmazonConnect. A * credentials provider chain will be used that searches for credentials in * this order: * <ul> * <li>Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY</li> * <li>Java System Properties - aws.accessKeyId and aws.secretKey</li> * <li>Instance profile credentials delivered through the Amazon EC2 * metadata service</li> * </ul> * <p> * 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 AmazonConnect (ex: proxy settings, * retry counts, etc.). * @see DefaultAWSCredentialsProviderChain */ @Deprecated public AmazonConnectClient(ClientConfiguration clientConfiguration) { this(new DefaultAWSCredentialsProviderChain(), clientConfiguration); } /** * Constructs a new client to invoke service methods on AmazonConnect using * the specified AWS account credentials. * <p> * The client requests are authenticated using the {@link AWSCredentials} * provided in this constructor. Static AWSCredentials can be passed for * quick testing. However, it is strongly recommended to use Amazon Cognito * vended temporary credentials for use in production. This can be achieved * by using {@link AWSMobileClient}. Please see * https://aws-amplify.github.io/docs/android/authentication for * instructions on how to enable {@link AWSMobileClient}. * * <pre> * AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() { * @Override * public void onResult(final UserStateDetails details) { * AmazonConnectClient client = new AmazonConnectClient(AWSMobileClient.getInstance()); * } * * @Override * public void onError(final Exception e) { * e.printStackTrace(); * } * }); * </pre> * <p> * All service calls made using this new client object are blocking, and * will not return until the service call completes. * * @param awsCredentials The AWS credentials (access key ID and secret key) * to use when authenticating with AWS services. */ public AmazonConnectClient(AWSCredentials awsCredentials) { this(awsCredentials, new ClientConfiguration()); } /** * Constructs a new client to invoke service methods on AmazonConnect using * the specified AWS account credentials and client configuration options. * <p> * The client requests are authenticated using the {@link AWSCredentials} * provided in this constructor. Static AWSCredentials can be passed for * quick testing. However, it is strongly recommended to use Amazon Cognito * vended temporary credentials for use in production. This can be achieved * by using {@link AWSMobileClient}. Please see * https://aws-amplify.github.io/docs/android/authentication for * instructions on how to enable {@link AWSMobileClient}. * * <pre> * AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() { * @Override * public void onResult(final UserStateDetails details) { * AmazonConnectClient client = new AmazonConnectClient(AWSMobileClient.getInstance()); * } * * @Override * public void onError(final Exception e) { * e.printStackTrace(); * } * }); * </pre> * <p> * All service calls made using this new client object are blocking, and * will not return until the service call completes. * * @param awsCredentials The AWS credentials (access key ID and secret key) * to use when authenticating with AWS services. * @param clientConfiguration The client configuration options controlling * how this client connects to AmazonConnect (ex: proxy settings, * retry counts, etc.). */ public AmazonConnectClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration) { this(new StaticCredentialsProvider(awsCredentials), clientConfiguration); } /** * Constructs a new client to invoke service methods on AmazonConnect using * the specified AWS account credentials provider. * <p> * The client requests are authenticated using the {@link AWSCredentials} * provided by the {@link AWSCredentialsProvider}. Static AWSCredentials can * be passed for quick testing. However, it is strongly recommended to use * Amazon Cognito vended temporary credentials for use in production. This * can be achieved by using {@link AWSMobileClient}. Please see * https://aws-amplify.github.io/docs/android/authentication for * instructions on how to enable {@link AWSMobileClient}. * * <pre> * AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() { * @Override * public void onResult(final UserStateDetails details) { * AmazonConnectClient client = new AmazonConnectClient(AWSMobileClient.getInstance()); * } * * @Override * public void onError(final Exception e) { * e.printStackTrace(); * } * }); * </pre> * <p> * All service calls made using this new client object are blocking, and * will not return until the service call completes. * * @param awsCredentialsProvider The AWS credentials provider which will * provide credentials to authenticate requests with AWS * services. */ public AmazonConnectClient(AWSCredentialsProvider awsCredentialsProvider) { this(awsCredentialsProvider, new ClientConfiguration()); } /** * Constructs a new client to invoke service methods on AmazonConnect using * the specified AWS account credentials provider and client configuration * options. * <p> * The client requests are authenticated using the {@link AWSCredentials} * provided by the {@link AWSCredentialsProvider}. Static AWSCredentials can * be passed for quick testing. However, it is strongly recommended to use * Amazon Cognito vended temporary credentials for use in production. This * can be achieved by using {@link AWSMobileClient}. Please see * https://aws-amplify.github.io/docs/android/authentication for * instructions on how to enable {@link AWSMobileClient}. * * <pre> * AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() { * @Override * public void onResult(final UserStateDetails details) { * AmazonConnectClient client = new AmazonConnectClient(AWSMobileClient.getInstance()); * } * * @Override * public void onError(final Exception e) { * e.printStackTrace(); * } * }); * </pre> * <p> * All service calls made using this new client object are blocking, and * will not return until the service call completes. * * @param awsCredentialsProvider The AWS credentials provider which will * provide credentials to authenticate requests with AWS * services. * @param clientConfiguration The client configuration options controlling * how this client connects to AmazonConnect (ex: proxy settings, * retry counts, etc.). */ public AmazonConnectClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) { this(awsCredentialsProvider, clientConfiguration, new UrlHttpClient(clientConfiguration)); } /** * Constructs a new client to invoke service methods on AmazonConnect using * the specified AWS account credentials provider, client configuration * options and request metric collector. * <p> * All service calls made using this new client object are blocking, and * will not return until the service call completes. * * @param awsCredentialsProvider The AWS credentials provider which will * provide credentials to authenticate requests with AWS * services. * @param clientConfiguration The client configuration options controlling * how this client connects to AmazonConnect (ex: proxy settings, * retry counts, etc.). * @param requestMetricCollector optional request metric collector */ @Deprecated public AmazonConnectClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, RequestMetricCollector requestMetricCollector) { super(adjustClientConfiguration(clientConfiguration), requestMetricCollector); this.awsCredentialsProvider = awsCredentialsProvider; init(); } /** * Constructs a new client to invoke service methods on AmazonConnect using * the specified AWS account credentials provider, client configuration * options and request metric collector. * <p> * The client requests are authenticated using the {@link AWSCredentials} * provided by the {@link AWSCredentialsProvider}. Static AWSCredentials can * be passed for quick testing. However, it is strongly recommended to use * Amazon Cognito vended temporary credentials for use in production. This * can be achieved by using {@link AWSMobileClient}. Please see * https://aws-amplify.github.io/docs/android/authentication for * instructions on how to enable {@link AWSMobileClient}. * * <pre> * AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() { * @Override * public void onResult(final UserStateDetails details) { * AmazonConnectClient client = new AmazonConnectClient(AWSMobileClient.getInstance()); * } * * @Override * public void onError(final Exception e) { * e.printStackTrace(); * } * }); * </pre> * <p> * All service calls made using this new client object are blocking, and * will not return until the service call completes. * * @param awsCredentialsProvider The AWS credentials provider which will * provide credentials to authenticate requests with AWS * services. * @param clientConfiguration The client configuration options controlling * how this client connects to AmazonConnect (ex: proxy settings, * retry counts, etc.). * @param httpClient A http client */ public AmazonConnectClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, HttpClient httpClient) { super(adjustClientConfiguration(clientConfiguration), httpClient); this.awsCredentialsProvider = awsCredentialsProvider; init(); } private void init() { jsonErrorUnmarshallers = new ArrayList<JsonErrorUnmarshaller>(); jsonErrorUnmarshallers.add(new AccessDeniedExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new ContactFlowNotPublishedExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new ContactNotFoundExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new DestinationNotAllowedExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new DuplicateResourceExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new IdempotencyExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new InternalServiceExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new InvalidContactFlowExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new InvalidContactFlowModuleExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new InvalidParameterExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new InvalidRequestExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new LimitExceededExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new MaximumResultReturnedExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new OutboundContactNotPermittedExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new PropertyValidationExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new ResourceConflictExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new ResourceInUseExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new ResourceNotFoundExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new ResourceNotReadyExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new ServiceQuotaExceededExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new ThrottlingExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new UserNotFoundExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new JsonErrorUnmarshaller()); // calling this.setEndPoint(...) will also modify the signer accordingly setServiceNameIntern("connect"); this.setEndpoint("connect.us-east-1.amazonaws.com"); this.endpointPrefix = "connect"; HandlerChainFactory chainFactory = new HandlerChainFactory(); requestHandler2s.addAll(chainFactory.newRequestHandlerChain( "/com/amazonaws/services/connect/request.handlers")); requestHandler2s.addAll(chainFactory.newRequestHandler2Chain( "/com/amazonaws/services/connect/request.handler2s")); } private static ClientConfiguration adjustClientConfiguration(ClientConfiguration orig) { ClientConfiguration config = orig; return config; } /** * <p> * 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. * </p> * * @param activateEvaluationFormRequest * @return activateEvaluationFormResult 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 ActivateEvaluationFormResult activateEvaluationForm( ActivateEvaluationFormRequest activateEvaluationFormRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(activateEvaluationFormRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ActivateEvaluationFormRequest> request = null; Response<ActivateEvaluationFormResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ActivateEvaluationFormRequestMarshaller() .marshall(activateEvaluationFormRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ActivateEvaluationFormResult, JsonUnmarshallerContext> unmarshaller = new ActivateEvaluationFormResultJsonUnmarshaller(); JsonResponseHandler<ActivateEvaluationFormResult> responseHandler = new JsonResponseHandler<ActivateEvaluationFormResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Associates an approved origin to an Amazon Connect instance. * </p> * * @param associateApprovedOriginRequest * @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 void associateApprovedOrigin( AssociateApprovedOriginRequest associateApprovedOriginRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(associateApprovedOriginRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<AssociateApprovedOriginRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new AssociateApprovedOriginRequestMarshaller() .marshall(associateApprovedOriginRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Allows the specified Amazon Connect instance to access the specified * Amazon Lex or Amazon Lex V2 bot. * </p> * * @param associateBotRequest * @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 void associateBot(AssociateBotRequest associateBotRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(associateBotRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<AssociateBotRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new AssociateBotRequestMarshaller().marshall(associateBotRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * 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. * </p> * * @param associateDefaultVocabularyRequest * @return associateDefaultVocabularyResult 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 AssociateDefaultVocabularyResult associateDefaultVocabulary( AssociateDefaultVocabularyRequest associateDefaultVocabularyRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(associateDefaultVocabularyRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<AssociateDefaultVocabularyRequest> request = null; Response<AssociateDefaultVocabularyResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new AssociateDefaultVocabularyRequestMarshaller() .marshall(associateDefaultVocabularyRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<AssociateDefaultVocabularyResult, JsonUnmarshallerContext> unmarshaller = new AssociateDefaultVocabularyResultJsonUnmarshaller(); JsonResponseHandler<AssociateDefaultVocabularyResult> responseHandler = new JsonResponseHandler<AssociateDefaultVocabularyResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * 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. * </p> * <p> * 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. * </p> * * @param associateInstanceStorageConfigRequest * @return associateInstanceStorageConfigResult 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 AssociateInstanceStorageConfigResult associateInstanceStorageConfig( AssociateInstanceStorageConfigRequest associateInstanceStorageConfigRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(associateInstanceStorageConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<AssociateInstanceStorageConfigRequest> request = null; Response<AssociateInstanceStorageConfigResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new AssociateInstanceStorageConfigRequestMarshaller() .marshall(associateInstanceStorageConfigRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<AssociateInstanceStorageConfigResult, JsonUnmarshallerContext> unmarshaller = new AssociateInstanceStorageConfigResultJsonUnmarshaller(); JsonResponseHandler<AssociateInstanceStorageConfigResult> responseHandler = new JsonResponseHandler<AssociateInstanceStorageConfigResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Allows the specified Amazon Connect instance to access the specified * Lambda function. * </p> * * @param associateLambdaFunctionRequest * @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 void associateLambdaFunction( AssociateLambdaFunctionRequest associateLambdaFunctionRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(associateLambdaFunctionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<AssociateLambdaFunctionRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new AssociateLambdaFunctionRequestMarshaller() .marshall(associateLambdaFunctionRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * 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. * </p> * * @param associateLexBotRequest * @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 void associateLexBot(AssociateLexBotRequest associateLexBotRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(associateLexBotRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<AssociateLexBotRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new AssociateLexBotRequestMarshaller().marshall(associateLexBotRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Associates a flow with a phone number claimed to your Amazon Connect * instance. * </p> * <important> * <p> * 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 <code>PhoneNumberId</code> * 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 * <code>ResourceNotFoundException</code>. * </p> * </important> * * @param associatePhoneNumberContactFlowRequest * @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 void associatePhoneNumberContactFlow( AssociatePhoneNumberContactFlowRequest associatePhoneNumberContactFlowRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(associatePhoneNumberContactFlowRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<AssociatePhoneNumberContactFlowRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new AssociatePhoneNumberContactFlowRequestMarshaller() .marshall(associatePhoneNumberContactFlowRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Associates a set of quick connects with a queue. * </p> * * @param associateQueueQuickConnectsRequest * @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 void associateQueueQuickConnects( AssociateQueueQuickConnectsRequest associateQueueQuickConnectsRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(associateQueueQuickConnectsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<AssociateQueueQuickConnectsRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new AssociateQueueQuickConnectsRequestMarshaller() .marshall(associateQueueQuickConnectsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Associates a set of queues with a routing profile. * </p> * * @param associateRoutingProfileQueuesRequest * @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 void associateRoutingProfileQueues( AssociateRoutingProfileQueuesRequest associateRoutingProfileQueuesRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(associateRoutingProfileQueuesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<AssociateRoutingProfileQueuesRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new AssociateRoutingProfileQueuesRequestMarshaller() .marshall(associateRoutingProfileQueuesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Associates a security key to the instance. * </p> * * @param associateSecurityKeyRequest * @return associateSecurityKeyResult 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 AssociateSecurityKeyResult associateSecurityKey( AssociateSecurityKeyRequest associateSecurityKeyRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(associateSecurityKeyRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<AssociateSecurityKeyRequest> request = null; Response<AssociateSecurityKeyResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new AssociateSecurityKeyRequestMarshaller() .marshall(associateSecurityKeyRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<AssociateSecurityKeyResult, JsonUnmarshallerContext> unmarshaller = new AssociateSecurityKeyResultJsonUnmarshaller(); JsonResponseHandler<AssociateSecurityKeyResult> responseHandler = new JsonResponseHandler<AssociateSecurityKeyResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * 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. * </p> * <p> * For more information about how to use this operation, see <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/claim-phone-number.html" * >Claim a phone number in your country</a> and <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/claim-phone-numbers-traffic-distribution-groups.html" * >Claim phone numbers to traffic distribution groups</a> in the <i>Amazon * Connect Administrator Guide</i>. * </p> * <important> * <p> * You can call the <a href= * "https://docs.aws.amazon.com/connect/latest/APIReference/API_SearchAvailablePhoneNumbers.html" * >SearchAvailablePhoneNumbers</a> API for available phone numbers that you * can claim. Call the <a href= * "https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribePhoneNumber.html" * >DescribePhoneNumber</a> API to verify the status of a previous <a href= * "https://docs.aws.amazon.com/connect/latest/APIReference/API_ClaimPhoneNumber.html" * >ClaimPhoneNumber</a> operation. * </p> * </important> * <p> * 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. * </p> * <p> * 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. * </p> * <p> * 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. * </p> * * @param claimPhoneNumberRequest * @return claimPhoneNumberResult 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 ClaimPhoneNumberResult claimPhoneNumber(ClaimPhoneNumberRequest claimPhoneNumberRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(claimPhoneNumberRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ClaimPhoneNumberRequest> request = null; Response<ClaimPhoneNumberResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ClaimPhoneNumberRequestMarshaller().marshall(claimPhoneNumberRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ClaimPhoneNumberResult, JsonUnmarshallerContext> unmarshaller = new ClaimPhoneNumberResultJsonUnmarshaller(); JsonResponseHandler<ClaimPhoneNumberResult> responseHandler = new JsonResponseHandler<ClaimPhoneNumberResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Creates an agent status for the specified Amazon Connect instance. * </p> * * @param createAgentStatusRequest * @return createAgentStatusResult 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 CreateAgentStatusResult createAgentStatus( CreateAgentStatusRequest createAgentStatusRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(createAgentStatusRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<CreateAgentStatusRequest> request = null; Response<CreateAgentStatusResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateAgentStatusRequestMarshaller() .marshall(createAgentStatusRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<CreateAgentStatusResult, JsonUnmarshallerContext> unmarshaller = new CreateAgentStatusResultJsonUnmarshaller(); JsonResponseHandler<CreateAgentStatusResult> responseHandler = new JsonResponseHandler<CreateAgentStatusResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Creates a flow for the specified Amazon Connect instance. * </p> * <p> * You can also create and update flows using the <a href= * "https://docs.aws.amazon.com/connect/latest/APIReference/flow-language.html" * >Amazon Connect Flow language</a>. * </p> * * @param createContactFlowRequest * @return createContactFlowResult 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 CreateContactFlowResult createContactFlow( CreateContactFlowRequest createContactFlowRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(createContactFlowRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<CreateContactFlowRequest> request = null; Response<CreateContactFlowResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateContactFlowRequestMarshaller() .marshall(createContactFlowRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<CreateContactFlowResult, JsonUnmarshallerContext> unmarshaller = new CreateContactFlowResultJsonUnmarshaller(); JsonResponseHandler<CreateContactFlowResult> responseHandler = new JsonResponseHandler<CreateContactFlowResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Creates a flow module for the specified Amazon Connect instance. * </p> * * @param createContactFlowModuleRequest * @return createContactFlowModuleResult 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 CreateContactFlowModuleResult createContactFlowModule( CreateContactFlowModuleRequest createContactFlowModuleRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(createContactFlowModuleRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<CreateContactFlowModuleRequest> request = null; Response<CreateContactFlowModuleResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateContactFlowModuleRequestMarshaller() .marshall(createContactFlowModuleRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<CreateContactFlowModuleResult, JsonUnmarshallerContext> unmarshaller = new CreateContactFlowModuleResultJsonUnmarshaller(); JsonResponseHandler<CreateContactFlowModuleResult> responseHandler = new JsonResponseHandler<CreateContactFlowModuleResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * 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. * </p> * * @param createEvaluationFormRequest * @return createEvaluationFormResult 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 CreateEvaluationFormResult createEvaluationForm( CreateEvaluationFormRequest createEvaluationFormRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(createEvaluationFormRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<CreateEvaluationFormRequest> request = null; Response<CreateEvaluationFormResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateEvaluationFormRequestMarshaller() .marshall(createEvaluationFormRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<CreateEvaluationFormResult, JsonUnmarshallerContext> unmarshaller = new CreateEvaluationFormResultJsonUnmarshaller(); JsonResponseHandler<CreateEvaluationFormResult> responseHandler = new JsonResponseHandler<CreateEvaluationFormResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Creates hours of operation. * </p> * * @param createHoursOfOperationRequest * @return createHoursOfOperationResult 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 CreateHoursOfOperationResult createHoursOfOperation( CreateHoursOfOperationRequest createHoursOfOperationRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(createHoursOfOperationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<CreateHoursOfOperationRequest> request = null; Response<CreateHoursOfOperationResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateHoursOfOperationRequestMarshaller() .marshall(createHoursOfOperationRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<CreateHoursOfOperationResult, JsonUnmarshallerContext> unmarshaller = new CreateHoursOfOperationResultJsonUnmarshaller(); JsonResponseHandler<CreateHoursOfOperationResult> responseHandler = new JsonResponseHandler<CreateHoursOfOperationResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * 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. * </p> * <p> * 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. * </p> * * @param createInstanceRequest * @return createInstanceResult 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 CreateInstanceResult createInstance(CreateInstanceRequest createInstanceRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(createInstanceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<CreateInstanceRequest> request = null; Response<CreateInstanceResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateInstanceRequestMarshaller().marshall(createInstanceRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<CreateInstanceResult, JsonUnmarshallerContext> unmarshaller = new CreateInstanceResultJsonUnmarshaller(); JsonResponseHandler<CreateInstanceResult> responseHandler = new JsonResponseHandler<CreateInstanceResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Creates an Amazon Web Services resource association with an Amazon * Connect instance. * </p> * * @param createIntegrationAssociationRequest * @return createIntegrationAssociationResult 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 CreateIntegrationAssociationResult createIntegrationAssociation( CreateIntegrationAssociationRequest createIntegrationAssociationRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(createIntegrationAssociationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<CreateIntegrationAssociationRequest> request = null; Response<CreateIntegrationAssociationResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateIntegrationAssociationRequestMarshaller() .marshall(createIntegrationAssociationRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<CreateIntegrationAssociationResult, JsonUnmarshallerContext> unmarshaller = new CreateIntegrationAssociationResultJsonUnmarshaller(); JsonResponseHandler<CreateIntegrationAssociationResult> responseHandler = new JsonResponseHandler<CreateIntegrationAssociationResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Adds a new participant into an on-going chat contact. For more * information, see <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/chat-customize-flow.html" * >Customize chat flow experiences by integrating custom participants</a>. * </p> * * @param createParticipantRequest * @return createParticipantResult 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 CreateParticipantResult createParticipant( CreateParticipantRequest createParticipantRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(createParticipantRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<CreateParticipantRequest> request = null; Response<CreateParticipantResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateParticipantRequestMarshaller() .marshall(createParticipantRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<CreateParticipantResult, JsonUnmarshallerContext> unmarshaller = new CreateParticipantResultJsonUnmarshaller(); JsonResponseHandler<CreateParticipantResult> responseHandler = new JsonResponseHandler<CreateParticipantResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Creates a prompt. For more information about prompts, such as supported * file types and maximum length, see <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/prompts.html" * >Create prompts</a> in the <i>Amazon Connect Administrator's Guide</i>. * </p> * * @param createPromptRequest * @return createPromptResult 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 CreatePromptResult createPrompt(CreatePromptRequest createPromptRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(createPromptRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<CreatePromptRequest> request = null; Response<CreatePromptResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreatePromptRequestMarshaller().marshall(createPromptRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<CreatePromptResult, JsonUnmarshallerContext> unmarshaller = new CreatePromptResultJsonUnmarshaller(); JsonResponseHandler<CreatePromptResult> responseHandler = new JsonResponseHandler<CreatePromptResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Creates a new queue for the specified Amazon Connect instance. * </p> * <important> * <p> * 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 * <code>OutboundCallerIdNumberId</code> value of the <a href= * "https://docs.aws.amazon.com/connect/latest/APIReference/API_OutboundCallerConfig" * >OutboundCallerConfig</a> 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 * <code>ResourceNotFoundException</code>. * </p> * </important> * * @param createQueueRequest * @return createQueueResult 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 CreateQueueResult createQueue(CreateQueueRequest createQueueRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(createQueueRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<CreateQueueRequest> request = null; Response<CreateQueueResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateQueueRequestMarshaller().marshall(createQueueRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<CreateQueueResult, JsonUnmarshallerContext> unmarshaller = new CreateQueueResultJsonUnmarshaller(); JsonResponseHandler<CreateQueueResult> responseHandler = new JsonResponseHandler<CreateQueueResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Creates a quick connect for the specified Amazon Connect instance. * </p> * * @param createQuickConnectRequest * @return createQuickConnectResult 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 CreateQuickConnectResult createQuickConnect( CreateQuickConnectRequest createQuickConnectRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(createQuickConnectRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<CreateQuickConnectRequest> request = null; Response<CreateQuickConnectResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateQuickConnectRequestMarshaller() .marshall(createQuickConnectRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<CreateQuickConnectResult, JsonUnmarshallerContext> unmarshaller = new CreateQuickConnectResultJsonUnmarshaller(); JsonResponseHandler<CreateQuickConnectResult> responseHandler = new JsonResponseHandler<CreateQuickConnectResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Creates a new routing profile. * </p> * * @param createRoutingProfileRequest * @return createRoutingProfileResult 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 CreateRoutingProfileResult createRoutingProfile( CreateRoutingProfileRequest createRoutingProfileRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(createRoutingProfileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<CreateRoutingProfileRequest> request = null; Response<CreateRoutingProfileResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateRoutingProfileRequestMarshaller() .marshall(createRoutingProfileRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<CreateRoutingProfileResult, JsonUnmarshallerContext> unmarshaller = new CreateRoutingProfileResultJsonUnmarshaller(); JsonResponseHandler<CreateRoutingProfileResult> responseHandler = new JsonResponseHandler<CreateRoutingProfileResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Creates a rule for the specified Amazon Connect instance. * </p> * <p> * Use the <a href= * "https://docs.aws.amazon.com/connect/latest/APIReference/connect-rules-language.html" * >Rules Function language</a> to code conditions for the rule. * </p> * * @param createRuleRequest * @return createRuleResult 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 CreateRuleResult createRule(CreateRuleRequest createRuleRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(createRuleRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<CreateRuleRequest> request = null; Response<CreateRuleResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateRuleRequestMarshaller().marshall(createRuleRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<CreateRuleResult, JsonUnmarshallerContext> unmarshaller = new CreateRuleResultJsonUnmarshaller(); JsonResponseHandler<CreateRuleResult> responseHandler = new JsonResponseHandler<CreateRuleResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Creates a security profile. * </p> * * @param createSecurityProfileRequest * @return createSecurityProfileResult 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 CreateSecurityProfileResult createSecurityProfile( CreateSecurityProfileRequest createSecurityProfileRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(createSecurityProfileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<CreateSecurityProfileRequest> request = null; Response<CreateSecurityProfileResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateSecurityProfileRequestMarshaller() .marshall(createSecurityProfileRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<CreateSecurityProfileResult, JsonUnmarshallerContext> unmarshaller = new CreateSecurityProfileResultJsonUnmarshaller(); JsonResponseHandler<CreateSecurityProfileResult> responseHandler = new JsonResponseHandler<CreateSecurityProfileResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Creates a new task template in the specified Amazon Connect instance. * </p> * * @param createTaskTemplateRequest * @return createTaskTemplateResult 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 CreateTaskTemplateResult createTaskTemplate( CreateTaskTemplateRequest createTaskTemplateRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(createTaskTemplateRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<CreateTaskTemplateRequest> request = null; Response<CreateTaskTemplateResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateTaskTemplateRequestMarshaller() .marshall(createTaskTemplateRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<CreateTaskTemplateResult, JsonUnmarshallerContext> unmarshaller = new CreateTaskTemplateResultJsonUnmarshaller(); JsonResponseHandler<CreateTaskTemplateResult> responseHandler = new JsonResponseHandler<CreateTaskTemplateResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Creates a traffic distribution group given an Amazon Connect instance * that has been replicated. * </p> * <p> * For more information about creating traffic distribution groups, see <a * href= * "https://docs.aws.amazon.com/connect/latest/adminguide/setup-traffic-distribution-groups.html" * >Set up traffic distribution groups</a> in the <i>Amazon Connect * Administrator Guide</i>. * </p> * * @param createTrafficDistributionGroupRequest * @return createTrafficDistributionGroupResult 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 CreateTrafficDistributionGroupResult createTrafficDistributionGroup( CreateTrafficDistributionGroupRequest createTrafficDistributionGroupRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(createTrafficDistributionGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<CreateTrafficDistributionGroupRequest> request = null; Response<CreateTrafficDistributionGroupResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateTrafficDistributionGroupRequestMarshaller() .marshall(createTrafficDistributionGroupRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<CreateTrafficDistributionGroupResult, JsonUnmarshallerContext> unmarshaller = new CreateTrafficDistributionGroupResultJsonUnmarshaller(); JsonResponseHandler<CreateTrafficDistributionGroupResult> responseHandler = new JsonResponseHandler<CreateTrafficDistributionGroupResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Creates a use case for an integration association. * </p> * * @param createUseCaseRequest * @return createUseCaseResult 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 CreateUseCaseResult createUseCase(CreateUseCaseRequest createUseCaseRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(createUseCaseRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<CreateUseCaseRequest> request = null; Response<CreateUseCaseResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateUseCaseRequestMarshaller().marshall(createUseCaseRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<CreateUseCaseResult, JsonUnmarshallerContext> unmarshaller = new CreateUseCaseResultJsonUnmarshaller(); JsonResponseHandler<CreateUseCaseResult> responseHandler = new JsonResponseHandler<CreateUseCaseResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Creates a user account for the specified Amazon Connect instance. * </p> * <p> * For information about how to create user accounts using the Amazon * Connect console, see <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/user-management.html" * >Add Users</a> in the <i>Amazon Connect Administrator Guide</i>. * </p> * * @param createUserRequest * @return createUserResult 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 CreateUserResult createUser(CreateUserRequest createUserRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(createUserRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<CreateUserRequest> request = null; Response<CreateUserResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateUserRequestMarshaller().marshall(createUserRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<CreateUserResult, JsonUnmarshallerContext> unmarshaller = new CreateUserResultJsonUnmarshaller(); JsonResponseHandler<CreateUserResult> responseHandler = new JsonResponseHandler<CreateUserResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Creates a new user hierarchy group. * </p> * * @param createUserHierarchyGroupRequest * @return createUserHierarchyGroupResult 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 CreateUserHierarchyGroupResult createUserHierarchyGroup( CreateUserHierarchyGroupRequest createUserHierarchyGroupRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(createUserHierarchyGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<CreateUserHierarchyGroupRequest> request = null; Response<CreateUserHierarchyGroupResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateUserHierarchyGroupRequestMarshaller() .marshall(createUserHierarchyGroupRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<CreateUserHierarchyGroupResult, JsonUnmarshallerContext> unmarshaller = new CreateUserHierarchyGroupResultJsonUnmarshaller(); JsonResponseHandler<CreateUserHierarchyGroupResult> responseHandler = new JsonResponseHandler<CreateUserHierarchyGroupResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * 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. * </p> * * @param createVocabularyRequest * @return createVocabularyResult 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 CreateVocabularyResult createVocabulary(CreateVocabularyRequest createVocabularyRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(createVocabularyRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<CreateVocabularyRequest> request = null; Response<CreateVocabularyResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateVocabularyRequestMarshaller().marshall(createVocabularyRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<CreateVocabularyResult, JsonUnmarshallerContext> unmarshaller = new CreateVocabularyResultJsonUnmarshaller(); JsonResponseHandler<CreateVocabularyResult> responseHandler = new JsonResponseHandler<CreateVocabularyResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * 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. * </p> * * @param deactivateEvaluationFormRequest * @return deactivateEvaluationFormResult 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 DeactivateEvaluationFormResult deactivateEvaluationForm( DeactivateEvaluationFormRequest deactivateEvaluationFormRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(deactivateEvaluationFormRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DeactivateEvaluationFormRequest> request = null; Response<DeactivateEvaluationFormResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeactivateEvaluationFormRequestMarshaller() .marshall(deactivateEvaluationFormRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DeactivateEvaluationFormResult, JsonUnmarshallerContext> unmarshaller = new DeactivateEvaluationFormResultJsonUnmarshaller(); JsonResponseHandler<DeactivateEvaluationFormResult> responseHandler = new JsonResponseHandler<DeactivateEvaluationFormResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Deletes a contact evaluation in the specified Amazon Connect instance. * </p> * * @param deleteContactEvaluationRequest * @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 void deleteContactEvaluation( DeleteContactEvaluationRequest deleteContactEvaluationRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(deleteContactEvaluationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DeleteContactEvaluationRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteContactEvaluationRequestMarshaller() .marshall(deleteContactEvaluationRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Deletes a flow for the specified Amazon Connect instance. * </p> * * @param deleteContactFlowRequest * @return deleteContactFlowResult 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 DeleteContactFlowResult deleteContactFlow( DeleteContactFlowRequest deleteContactFlowRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(deleteContactFlowRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DeleteContactFlowRequest> request = null; Response<DeleteContactFlowResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteContactFlowRequestMarshaller() .marshall(deleteContactFlowRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DeleteContactFlowResult, JsonUnmarshallerContext> unmarshaller = new DeleteContactFlowResultJsonUnmarshaller(); JsonResponseHandler<DeleteContactFlowResult> responseHandler = new JsonResponseHandler<DeleteContactFlowResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Deletes the specified flow module. * </p> * * @param deleteContactFlowModuleRequest * @return deleteContactFlowModuleResult 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 DeleteContactFlowModuleResult deleteContactFlowModule( DeleteContactFlowModuleRequest deleteContactFlowModuleRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(deleteContactFlowModuleRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DeleteContactFlowModuleRequest> request = null; Response<DeleteContactFlowModuleResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteContactFlowModuleRequestMarshaller() .marshall(deleteContactFlowModuleRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DeleteContactFlowModuleResult, JsonUnmarshallerContext> unmarshaller = new DeleteContactFlowModuleResultJsonUnmarshaller(); JsonResponseHandler<DeleteContactFlowModuleResult> responseHandler = new JsonResponseHandler<DeleteContactFlowModuleResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Deletes an evaluation form in the specified Amazon Connect instance. * </p> * <ul> * <li> * <p> * If the version property is provided, only the specified version of the * evaluation form is deleted. * </p> * </li> * <li> * <p> * If no version is provided, then the full form (all versions) is deleted. * </p> * </li> * </ul> * * @param deleteEvaluationFormRequest * @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 void deleteEvaluationForm(DeleteEvaluationFormRequest deleteEvaluationFormRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(deleteEvaluationFormRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DeleteEvaluationFormRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteEvaluationFormRequestMarshaller() .marshall(deleteEvaluationFormRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Deletes an hours of operation. * </p> * * @param deleteHoursOfOperationRequest * @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 void deleteHoursOfOperation(DeleteHoursOfOperationRequest deleteHoursOfOperationRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(deleteHoursOfOperationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DeleteHoursOfOperationRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteHoursOfOperationRequestMarshaller() .marshall(deleteHoursOfOperationRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Deletes the Amazon Connect instance. * </p> * <p> * 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. * </p> * * @param deleteInstanceRequest * @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 void deleteInstance(DeleteInstanceRequest deleteInstanceRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(deleteInstanceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DeleteInstanceRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteInstanceRequestMarshaller().marshall(deleteInstanceRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Deletes an Amazon Web Services resource association from an Amazon * Connect instance. The association must not have any use cases associated * with it. * </p> * * @param deleteIntegrationAssociationRequest * @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 void deleteIntegrationAssociation( DeleteIntegrationAssociationRequest deleteIntegrationAssociationRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(deleteIntegrationAssociationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DeleteIntegrationAssociationRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteIntegrationAssociationRequestMarshaller() .marshall(deleteIntegrationAssociationRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Deletes a prompt. * </p> * * @param deletePromptRequest * @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 void deletePrompt(DeletePromptRequest deletePromptRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(deletePromptRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DeletePromptRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeletePromptRequestMarshaller().marshall(deletePromptRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Deletes a quick connect. * </p> * * @param deleteQuickConnectRequest * @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 void deleteQuickConnect(DeleteQuickConnectRequest deleteQuickConnectRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(deleteQuickConnectRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DeleteQuickConnectRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteQuickConnectRequestMarshaller() .marshall(deleteQuickConnectRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Deletes a rule for the specified Amazon Connect instance. * </p> * * @param deleteRuleRequest * @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 void deleteRule(DeleteRuleRequest deleteRuleRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(deleteRuleRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DeleteRuleRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteRuleRequestMarshaller().marshall(deleteRuleRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Deletes a security profile. * </p> * * @param deleteSecurityProfileRequest * @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 void deleteSecurityProfile(DeleteSecurityProfileRequest deleteSecurityProfileRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(deleteSecurityProfileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DeleteSecurityProfileRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteSecurityProfileRequestMarshaller() .marshall(deleteSecurityProfileRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Deletes the task template. * </p> * * @param deleteTaskTemplateRequest * @return deleteTaskTemplateResult 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 DeleteTaskTemplateResult deleteTaskTemplate( DeleteTaskTemplateRequest deleteTaskTemplateRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(deleteTaskTemplateRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DeleteTaskTemplateRequest> request = null; Response<DeleteTaskTemplateResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteTaskTemplateRequestMarshaller() .marshall(deleteTaskTemplateRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DeleteTaskTemplateResult, JsonUnmarshallerContext> unmarshaller = new DeleteTaskTemplateResultJsonUnmarshaller(); JsonResponseHandler<DeleteTaskTemplateResult> responseHandler = new JsonResponseHandler<DeleteTaskTemplateResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Deletes a traffic distribution group. This API can be called only in the * Region where the traffic distribution group is created. * </p> * <p> * For more information about deleting traffic distribution groups, see <a * href= * "https://docs.aws.amazon.com/connect/latest/adminguide/delete-traffic-distribution-groups.html" * >Delete traffic distribution groups</a> in the <i>Amazon Connect * Administrator Guide</i>. * </p> * * @param deleteTrafficDistributionGroupRequest * @return deleteTrafficDistributionGroupResult 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 DeleteTrafficDistributionGroupResult deleteTrafficDistributionGroup( DeleteTrafficDistributionGroupRequest deleteTrafficDistributionGroupRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(deleteTrafficDistributionGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DeleteTrafficDistributionGroupRequest> request = null; Response<DeleteTrafficDistributionGroupResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteTrafficDistributionGroupRequestMarshaller() .marshall(deleteTrafficDistributionGroupRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DeleteTrafficDistributionGroupResult, JsonUnmarshallerContext> unmarshaller = new DeleteTrafficDistributionGroupResultJsonUnmarshaller(); JsonResponseHandler<DeleteTrafficDistributionGroupResult> responseHandler = new JsonResponseHandler<DeleteTrafficDistributionGroupResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Deletes a use case from an integration association. * </p> * * @param deleteUseCaseRequest * @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 void deleteUseCase(DeleteUseCaseRequest deleteUseCaseRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(deleteUseCaseRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DeleteUseCaseRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteUseCaseRequestMarshaller().marshall(deleteUseCaseRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Deletes a user account from the specified Amazon Connect instance. * </p> * <p> * For information about what happens to a user's data when their account is * deleted, see <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/delete-users.html" * >Delete Users from Your Amazon Connect Instance</a> in the <i>Amazon * Connect Administrator Guide</i>. * </p> * * @param deleteUserRequest * @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 void deleteUser(DeleteUserRequest deleteUserRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(deleteUserRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DeleteUserRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteUserRequestMarshaller().marshall(deleteUserRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Deletes an existing user hierarchy group. It must not be associated with * any agents or have any active child groups. * </p> * * @param deleteUserHierarchyGroupRequest * @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 void deleteUserHierarchyGroup( DeleteUserHierarchyGroupRequest deleteUserHierarchyGroupRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(deleteUserHierarchyGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DeleteUserHierarchyGroupRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteUserHierarchyGroupRequestMarshaller() .marshall(deleteUserHierarchyGroupRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Deletes the vocabulary that has the given identifier. * </p> * * @param deleteVocabularyRequest * @return deleteVocabularyResult 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 DeleteVocabularyResult deleteVocabulary(DeleteVocabularyRequest deleteVocabularyRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(deleteVocabularyRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DeleteVocabularyRequest> request = null; Response<DeleteVocabularyResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteVocabularyRequestMarshaller().marshall(deleteVocabularyRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DeleteVocabularyResult, JsonUnmarshallerContext> unmarshaller = new DeleteVocabularyResultJsonUnmarshaller(); JsonResponseHandler<DeleteVocabularyResult> responseHandler = new JsonResponseHandler<DeleteVocabularyResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Describes an agent status. * </p> * * @param describeAgentStatusRequest * @return describeAgentStatusResult 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 DescribeAgentStatusResult describeAgentStatus( DescribeAgentStatusRequest describeAgentStatusRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(describeAgentStatusRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DescribeAgentStatusRequest> request = null; Response<DescribeAgentStatusResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeAgentStatusRequestMarshaller() .marshall(describeAgentStatusRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DescribeAgentStatusResult, JsonUnmarshallerContext> unmarshaller = new DescribeAgentStatusResultJsonUnmarshaller(); JsonResponseHandler<DescribeAgentStatusResult> responseHandler = new JsonResponseHandler<DescribeAgentStatusResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Describes the specified contact. * </p> * <important> * <p> * Contact information remains available in Amazon Connect for 24 months, * and then it is deleted. * </p> * <p> * Only data from November 12, 2021, and later is returned by this API. * </p> * </important> * * @param describeContactRequest * @return describeContactResult 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 DescribeContactResult describeContact(DescribeContactRequest describeContactRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(describeContactRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DescribeContactRequest> request = null; Response<DescribeContactResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeContactRequestMarshaller().marshall(describeContactRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DescribeContactResult, JsonUnmarshallerContext> unmarshaller = new DescribeContactResultJsonUnmarshaller(); JsonResponseHandler<DescribeContactResult> responseHandler = new JsonResponseHandler<DescribeContactResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Describes a contact evaluation in the specified Amazon Connect instance. * </p> * * @param describeContactEvaluationRequest * @return describeContactEvaluationResult 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 DescribeContactEvaluationResult describeContactEvaluation( DescribeContactEvaluationRequest describeContactEvaluationRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(describeContactEvaluationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DescribeContactEvaluationRequest> request = null; Response<DescribeContactEvaluationResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeContactEvaluationRequestMarshaller() .marshall(describeContactEvaluationRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DescribeContactEvaluationResult, JsonUnmarshallerContext> unmarshaller = new DescribeContactEvaluationResultJsonUnmarshaller(); JsonResponseHandler<DescribeContactEvaluationResult> responseHandler = new JsonResponseHandler<DescribeContactEvaluationResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Describes the specified flow. * </p> * <p> * You can also create and update flows using the <a href= * "https://docs.aws.amazon.com/connect/latest/APIReference/flow-language.html" * >Amazon Connect Flow language</a>. * </p> * * @param describeContactFlowRequest * @return describeContactFlowResult 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 DescribeContactFlowResult describeContactFlow( DescribeContactFlowRequest describeContactFlowRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(describeContactFlowRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DescribeContactFlowRequest> request = null; Response<DescribeContactFlowResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeContactFlowRequestMarshaller() .marshall(describeContactFlowRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DescribeContactFlowResult, JsonUnmarshallerContext> unmarshaller = new DescribeContactFlowResultJsonUnmarshaller(); JsonResponseHandler<DescribeContactFlowResult> responseHandler = new JsonResponseHandler<DescribeContactFlowResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Describes the specified flow module. * </p> * * @param describeContactFlowModuleRequest * @return describeContactFlowModuleResult 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 DescribeContactFlowModuleResult describeContactFlowModule( DescribeContactFlowModuleRequest describeContactFlowModuleRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(describeContactFlowModuleRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DescribeContactFlowModuleRequest> request = null; Response<DescribeContactFlowModuleResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeContactFlowModuleRequestMarshaller() .marshall(describeContactFlowModuleRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DescribeContactFlowModuleResult, JsonUnmarshallerContext> unmarshaller = new DescribeContactFlowModuleResultJsonUnmarshaller(); JsonResponseHandler<DescribeContactFlowModuleResult> responseHandler = new JsonResponseHandler<DescribeContactFlowModuleResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * 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. * </p> * * @param describeEvaluationFormRequest * @return describeEvaluationFormResult 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 DescribeEvaluationFormResult describeEvaluationForm( DescribeEvaluationFormRequest describeEvaluationFormRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(describeEvaluationFormRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DescribeEvaluationFormRequest> request = null; Response<DescribeEvaluationFormResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeEvaluationFormRequestMarshaller() .marshall(describeEvaluationFormRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DescribeEvaluationFormResult, JsonUnmarshallerContext> unmarshaller = new DescribeEvaluationFormResultJsonUnmarshaller(); JsonResponseHandler<DescribeEvaluationFormResult> responseHandler = new JsonResponseHandler<DescribeEvaluationFormResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Describes the hours of operation. * </p> * * @param describeHoursOfOperationRequest * @return describeHoursOfOperationResult 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 DescribeHoursOfOperationResult describeHoursOfOperation( DescribeHoursOfOperationRequest describeHoursOfOperationRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(describeHoursOfOperationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DescribeHoursOfOperationRequest> request = null; Response<DescribeHoursOfOperationResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeHoursOfOperationRequestMarshaller() .marshall(describeHoursOfOperationRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DescribeHoursOfOperationResult, JsonUnmarshallerContext> unmarshaller = new DescribeHoursOfOperationResultJsonUnmarshaller(); JsonResponseHandler<DescribeHoursOfOperationResult> responseHandler = new JsonResponseHandler<DescribeHoursOfOperationResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * 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. * </p> * <p> * 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. * </p> * * @param describeInstanceRequest * @return describeInstanceResult 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 DescribeInstanceResult describeInstance(DescribeInstanceRequest describeInstanceRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(describeInstanceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DescribeInstanceRequest> request = null; Response<DescribeInstanceResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeInstanceRequestMarshaller().marshall(describeInstanceRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DescribeInstanceResult, JsonUnmarshallerContext> unmarshaller = new DescribeInstanceResultJsonUnmarshaller(); JsonResponseHandler<DescribeInstanceResult> responseHandler = new JsonResponseHandler<DescribeInstanceResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Describes the specified instance attribute. * </p> * * @param describeInstanceAttributeRequest * @return describeInstanceAttributeResult 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 DescribeInstanceAttributeResult describeInstanceAttribute( DescribeInstanceAttributeRequest describeInstanceAttributeRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(describeInstanceAttributeRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DescribeInstanceAttributeRequest> request = null; Response<DescribeInstanceAttributeResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeInstanceAttributeRequestMarshaller() .marshall(describeInstanceAttributeRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DescribeInstanceAttributeResult, JsonUnmarshallerContext> unmarshaller = new DescribeInstanceAttributeResultJsonUnmarshaller(); JsonResponseHandler<DescribeInstanceAttributeResult> responseHandler = new JsonResponseHandler<DescribeInstanceAttributeResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Retrieves the current storage configurations for the specified resource * type, association ID, and instance ID. * </p> * * @param describeInstanceStorageConfigRequest * @return describeInstanceStorageConfigResult 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 DescribeInstanceStorageConfigResult describeInstanceStorageConfig( DescribeInstanceStorageConfigRequest describeInstanceStorageConfigRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(describeInstanceStorageConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DescribeInstanceStorageConfigRequest> request = null; Response<DescribeInstanceStorageConfigResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeInstanceStorageConfigRequestMarshaller() .marshall(describeInstanceStorageConfigRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DescribeInstanceStorageConfigResult, JsonUnmarshallerContext> unmarshaller = new DescribeInstanceStorageConfigResultJsonUnmarshaller(); JsonResponseHandler<DescribeInstanceStorageConfigResult> responseHandler = new JsonResponseHandler<DescribeInstanceStorageConfigResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Gets details and status of a phone number that’s claimed to your Amazon * Connect instance or traffic distribution group. * </p> * <important> * <p> * 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 <code>PhoneNumberId</code> 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 * <code>ResourceNotFoundException</code>. * </p> * </important> * * @param describePhoneNumberRequest * @return describePhoneNumberResult 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 DescribePhoneNumberResult describePhoneNumber( DescribePhoneNumberRequest describePhoneNumberRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(describePhoneNumberRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DescribePhoneNumberRequest> request = null; Response<DescribePhoneNumberResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribePhoneNumberRequestMarshaller() .marshall(describePhoneNumberRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DescribePhoneNumberResult, JsonUnmarshallerContext> unmarshaller = new DescribePhoneNumberResultJsonUnmarshaller(); JsonResponseHandler<DescribePhoneNumberResult> responseHandler = new JsonResponseHandler<DescribePhoneNumberResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Describes the prompt. * </p> * * @param describePromptRequest * @return describePromptResult 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 DescribePromptResult describePrompt(DescribePromptRequest describePromptRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(describePromptRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DescribePromptRequest> request = null; Response<DescribePromptResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribePromptRequestMarshaller().marshall(describePromptRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DescribePromptResult, JsonUnmarshallerContext> unmarshaller = new DescribePromptResultJsonUnmarshaller(); JsonResponseHandler<DescribePromptResult> responseHandler = new JsonResponseHandler<DescribePromptResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Describes the specified queue. * </p> * * @param describeQueueRequest * @return describeQueueResult 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 DescribeQueueResult describeQueue(DescribeQueueRequest describeQueueRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(describeQueueRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DescribeQueueRequest> request = null; Response<DescribeQueueResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeQueueRequestMarshaller().marshall(describeQueueRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DescribeQueueResult, JsonUnmarshallerContext> unmarshaller = new DescribeQueueResultJsonUnmarshaller(); JsonResponseHandler<DescribeQueueResult> responseHandler = new JsonResponseHandler<DescribeQueueResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Describes the quick connect. * </p> * * @param describeQuickConnectRequest * @return describeQuickConnectResult 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 DescribeQuickConnectResult describeQuickConnect( DescribeQuickConnectRequest describeQuickConnectRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(describeQuickConnectRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DescribeQuickConnectRequest> request = null; Response<DescribeQuickConnectResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeQuickConnectRequestMarshaller() .marshall(describeQuickConnectRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DescribeQuickConnectResult, JsonUnmarshallerContext> unmarshaller = new DescribeQuickConnectResultJsonUnmarshaller(); JsonResponseHandler<DescribeQuickConnectResult> responseHandler = new JsonResponseHandler<DescribeQuickConnectResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Describes the specified routing profile. * </p> * * @param describeRoutingProfileRequest * @return describeRoutingProfileResult 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 DescribeRoutingProfileResult describeRoutingProfile( DescribeRoutingProfileRequest describeRoutingProfileRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(describeRoutingProfileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DescribeRoutingProfileRequest> request = null; Response<DescribeRoutingProfileResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeRoutingProfileRequestMarshaller() .marshall(describeRoutingProfileRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DescribeRoutingProfileResult, JsonUnmarshallerContext> unmarshaller = new DescribeRoutingProfileResultJsonUnmarshaller(); JsonResponseHandler<DescribeRoutingProfileResult> responseHandler = new JsonResponseHandler<DescribeRoutingProfileResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Describes a rule for the specified Amazon Connect instance. * </p> * * @param describeRuleRequest * @return describeRuleResult 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 DescribeRuleResult describeRule(DescribeRuleRequest describeRuleRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(describeRuleRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DescribeRuleRequest> request = null; Response<DescribeRuleResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeRuleRequestMarshaller().marshall(describeRuleRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DescribeRuleResult, JsonUnmarshallerContext> unmarshaller = new DescribeRuleResultJsonUnmarshaller(); JsonResponseHandler<DescribeRuleResult> responseHandler = new JsonResponseHandler<DescribeRuleResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Gets basic information about the security profle. * </p> * * @param describeSecurityProfileRequest * @return describeSecurityProfileResult 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 DescribeSecurityProfileResult describeSecurityProfile( DescribeSecurityProfileRequest describeSecurityProfileRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(describeSecurityProfileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DescribeSecurityProfileRequest> request = null; Response<DescribeSecurityProfileResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeSecurityProfileRequestMarshaller() .marshall(describeSecurityProfileRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DescribeSecurityProfileResult, JsonUnmarshallerContext> unmarshaller = new DescribeSecurityProfileResultJsonUnmarshaller(); JsonResponseHandler<DescribeSecurityProfileResult> responseHandler = new JsonResponseHandler<DescribeSecurityProfileResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Gets details and status of a traffic distribution group. * </p> * * @param describeTrafficDistributionGroupRequest * @return describeTrafficDistributionGroupResult 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 DescribeTrafficDistributionGroupResult describeTrafficDistributionGroup( DescribeTrafficDistributionGroupRequest describeTrafficDistributionGroupRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(describeTrafficDistributionGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DescribeTrafficDistributionGroupRequest> request = null; Response<DescribeTrafficDistributionGroupResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeTrafficDistributionGroupRequestMarshaller() .marshall(describeTrafficDistributionGroupRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DescribeTrafficDistributionGroupResult, JsonUnmarshallerContext> unmarshaller = new DescribeTrafficDistributionGroupResultJsonUnmarshaller(); JsonResponseHandler<DescribeTrafficDistributionGroupResult> responseHandler = new JsonResponseHandler<DescribeTrafficDistributionGroupResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Describes the specified user account. You can <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html" * >find the instance ID in the Amazon Connect console</a> (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. * </p> * * @param describeUserRequest * @return describeUserResult 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 DescribeUserResult describeUser(DescribeUserRequest describeUserRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(describeUserRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DescribeUserRequest> request = null; Response<DescribeUserResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeUserRequestMarshaller().marshall(describeUserRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DescribeUserResult, JsonUnmarshallerContext> unmarshaller = new DescribeUserResultJsonUnmarshaller(); JsonResponseHandler<DescribeUserResult> responseHandler = new JsonResponseHandler<DescribeUserResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Describes the specified hierarchy group. * </p> * * @param describeUserHierarchyGroupRequest * @return describeUserHierarchyGroupResult 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 DescribeUserHierarchyGroupResult describeUserHierarchyGroup( DescribeUserHierarchyGroupRequest describeUserHierarchyGroupRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(describeUserHierarchyGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DescribeUserHierarchyGroupRequest> request = null; Response<DescribeUserHierarchyGroupResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeUserHierarchyGroupRequestMarshaller() .marshall(describeUserHierarchyGroupRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DescribeUserHierarchyGroupResult, JsonUnmarshallerContext> unmarshaller = new DescribeUserHierarchyGroupResultJsonUnmarshaller(); JsonResponseHandler<DescribeUserHierarchyGroupResult> responseHandler = new JsonResponseHandler<DescribeUserHierarchyGroupResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Describes the hierarchy structure of the specified Amazon Connect * instance. * </p> * * @param describeUserHierarchyStructureRequest * @return describeUserHierarchyStructureResult 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 DescribeUserHierarchyStructureResult describeUserHierarchyStructure( DescribeUserHierarchyStructureRequest describeUserHierarchyStructureRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(describeUserHierarchyStructureRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DescribeUserHierarchyStructureRequest> request = null; Response<DescribeUserHierarchyStructureResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeUserHierarchyStructureRequestMarshaller() .marshall(describeUserHierarchyStructureRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DescribeUserHierarchyStructureResult, JsonUnmarshallerContext> unmarshaller = new DescribeUserHierarchyStructureResultJsonUnmarshaller(); JsonResponseHandler<DescribeUserHierarchyStructureResult> responseHandler = new JsonResponseHandler<DescribeUserHierarchyStructureResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Describes the specified vocabulary. * </p> * * @param describeVocabularyRequest * @return describeVocabularyResult 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 DescribeVocabularyResult describeVocabulary( DescribeVocabularyRequest describeVocabularyRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(describeVocabularyRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DescribeVocabularyRequest> request = null; Response<DescribeVocabularyResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeVocabularyRequestMarshaller() .marshall(describeVocabularyRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DescribeVocabularyResult, JsonUnmarshallerContext> unmarshaller = new DescribeVocabularyResultJsonUnmarshaller(); JsonResponseHandler<DescribeVocabularyResult> responseHandler = new JsonResponseHandler<DescribeVocabularyResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Revokes access to integrated applications from Amazon Connect. * </p> * * @param disassociateApprovedOriginRequest * @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 void disassociateApprovedOrigin( DisassociateApprovedOriginRequest disassociateApprovedOriginRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(disassociateApprovedOriginRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DisassociateApprovedOriginRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DisassociateApprovedOriginRequestMarshaller() .marshall(disassociateApprovedOriginRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Revokes authorization from the specified instance to access the specified * Amazon Lex or Amazon Lex V2 bot. * </p> * * @param disassociateBotRequest * @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 void disassociateBot(DisassociateBotRequest disassociateBotRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(disassociateBotRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DisassociateBotRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DisassociateBotRequestMarshaller().marshall(disassociateBotRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Removes the storage type configurations for the specified resource type * and association ID. * </p> * * @param disassociateInstanceStorageConfigRequest * @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 void disassociateInstanceStorageConfig( DisassociateInstanceStorageConfigRequest disassociateInstanceStorageConfigRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(disassociateInstanceStorageConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DisassociateInstanceStorageConfigRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DisassociateInstanceStorageConfigRequestMarshaller() .marshall(disassociateInstanceStorageConfigRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Remove the Lambda function from the dropdown options available in the * relevant flow blocks. * </p> * * @param disassociateLambdaFunctionRequest * @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 void disassociateLambdaFunction( DisassociateLambdaFunctionRequest disassociateLambdaFunctionRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(disassociateLambdaFunctionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DisassociateLambdaFunctionRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DisassociateLambdaFunctionRequestMarshaller() .marshall(disassociateLambdaFunctionRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Revokes authorization from the specified instance to access the specified * Amazon Lex bot. * </p> * * @param disassociateLexBotRequest * @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 void disassociateLexBot(DisassociateLexBotRequest disassociateLexBotRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(disassociateLexBotRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DisassociateLexBotRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DisassociateLexBotRequestMarshaller() .marshall(disassociateLexBotRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Removes the flow association from a phone number claimed to your Amazon * Connect instance. * </p> * <important> * <p> * 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 <code>PhoneNumberId</code> * 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 * <code>ResourceNotFoundException</code>. * </p> * </important> * * @param disassociatePhoneNumberContactFlowRequest * @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 void disassociatePhoneNumberContactFlow( DisassociatePhoneNumberContactFlowRequest disassociatePhoneNumberContactFlowRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(disassociatePhoneNumberContactFlowRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DisassociatePhoneNumberContactFlowRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DisassociatePhoneNumberContactFlowRequestMarshaller() .marshall(disassociatePhoneNumberContactFlowRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Disassociates a set of quick connects from a queue. * </p> * * @param disassociateQueueQuickConnectsRequest * @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 void disassociateQueueQuickConnects( DisassociateQueueQuickConnectsRequest disassociateQueueQuickConnectsRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(disassociateQueueQuickConnectsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DisassociateQueueQuickConnectsRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DisassociateQueueQuickConnectsRequestMarshaller() .marshall(disassociateQueueQuickConnectsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Disassociates a set of queues from a routing profile. * </p> * * @param disassociateRoutingProfileQueuesRequest * @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 void disassociateRoutingProfileQueues( DisassociateRoutingProfileQueuesRequest disassociateRoutingProfileQueuesRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(disassociateRoutingProfileQueuesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DisassociateRoutingProfileQueuesRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DisassociateRoutingProfileQueuesRequestMarshaller() .marshall(disassociateRoutingProfileQueuesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Deletes the specified security key. * </p> * * @param disassociateSecurityKeyRequest * @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 void disassociateSecurityKey( DisassociateSecurityKeyRequest disassociateSecurityKeyRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(disassociateSecurityKeyRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DisassociateSecurityKeyRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DisassociateSecurityKeyRequestMarshaller() .marshall(disassociateSecurityKeyRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * 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 <code>MISSED</code>, * <code>ERROR</code>, <code>ENDED</code>, or <code>REJECTED</code> state in * the <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/about-contact-states.html" * >Agent Event Stream</a>. * </p> * * @param dismissUserContactRequest * @return dismissUserContactResult 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 DismissUserContactResult dismissUserContact( DismissUserContactRequest dismissUserContactRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(dismissUserContactRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<DismissUserContactRequest> request = null; Response<DismissUserContactResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DismissUserContactRequestMarshaller() .marshall(dismissUserContactRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<DismissUserContactResult, JsonUnmarshallerContext> unmarshaller = new DismissUserContactResultJsonUnmarshaller(); JsonResponseHandler<DismissUserContactResult> responseHandler = new JsonResponseHandler<DismissUserContactResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Retrieves the contact attributes for the specified contact. * </p> * * @param getContactAttributesRequest * @return getContactAttributesResult 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 GetContactAttributesResult getContactAttributes( GetContactAttributesRequest getContactAttributesRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(getContactAttributesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<GetContactAttributesRequest> request = null; Response<GetContactAttributesResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetContactAttributesRequestMarshaller() .marshall(getContactAttributesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<GetContactAttributesResult, JsonUnmarshallerContext> unmarshaller = new GetContactAttributesResultJsonUnmarshaller(); JsonResponseHandler<GetContactAttributesResult> responseHandler = new JsonResponseHandler<GetContactAttributesResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Gets the real-time metric data from the specified Amazon Connect * instance. * </p> * <p> * For a description of each metric, see <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html" * >Real-time Metrics Definitions</a> in the <i>Amazon Connect Administrator * Guide</i>. * </p> * * @param getCurrentMetricDataRequest * @return getCurrentMetricDataResult 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 GetCurrentMetricDataResult getCurrentMetricData( GetCurrentMetricDataRequest getCurrentMetricDataRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(getCurrentMetricDataRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<GetCurrentMetricDataRequest> request = null; Response<GetCurrentMetricDataResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetCurrentMetricDataRequestMarshaller() .marshall(getCurrentMetricDataRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<GetCurrentMetricDataResult, JsonUnmarshallerContext> unmarshaller = new GetCurrentMetricDataResultJsonUnmarshaller(); JsonResponseHandler<GetCurrentMetricDataResult> responseHandler = new JsonResponseHandler<GetCurrentMetricDataResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Gets the real-time active user data from the specified Amazon Connect * instance. * </p> * * @param getCurrentUserDataRequest * @return getCurrentUserDataResult 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 GetCurrentUserDataResult getCurrentUserData( GetCurrentUserDataRequest getCurrentUserDataRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(getCurrentUserDataRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<GetCurrentUserDataRequest> request = null; Response<GetCurrentUserDataResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetCurrentUserDataRequestMarshaller() .marshall(getCurrentUserDataRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<GetCurrentUserDataResult, JsonUnmarshallerContext> unmarshaller = new GetCurrentUserDataResultJsonUnmarshaller(); JsonResponseHandler<GetCurrentUserDataResult> responseHandler = new JsonResponseHandler<GetCurrentUserDataResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Retrieves a token for federation. * </p> * <note> * <p> * 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: * </p> * <p> * <code>Provided identity: Principal: .... User: .... cannot be used for federation with Amazon Connect</code> * </p> * </note> * * @param getFederationTokenRequest * @return getFederationTokenResult 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 GetFederationTokenResult getFederationToken( GetFederationTokenRequest getFederationTokenRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(getFederationTokenRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<GetFederationTokenRequest> request = null; Response<GetFederationTokenResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetFederationTokenRequestMarshaller() .marshall(getFederationTokenRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<GetFederationTokenResult, JsonUnmarshallerContext> unmarshaller = new GetFederationTokenResultJsonUnmarshaller(); JsonResponseHandler<GetFederationTokenResult> responseHandler = new JsonResponseHandler<GetFederationTokenResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Gets historical metric data from the specified Amazon Connect instance. * </p> * <p> * For a description of each historical metric, see <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html" * >Historical Metrics Definitions</a> in the <i>Amazon Connect * Administrator Guide</i>. * </p> * * @param getMetricDataRequest * @return getMetricDataResult 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 GetMetricDataResult getMetricData(GetMetricDataRequest getMetricDataRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(getMetricDataRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<GetMetricDataRequest> request = null; Response<GetMetricDataResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetMetricDataRequestMarshaller().marshall(getMetricDataRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<GetMetricDataResult, JsonUnmarshallerContext> unmarshaller = new GetMetricDataResultJsonUnmarshaller(); JsonResponseHandler<GetMetricDataResult> responseHandler = new JsonResponseHandler<GetMetricDataResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Gets metric data from the specified Amazon Connect instance. * </p> * <p> * <code>GetMetricDataV2</code> offers more features than <a href= * "https://docs.aws.amazon.com/connect/latest/APIReference/API_GetMetricData.html" * >GetMetricData</a>, 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. * </p> * <p> * For a description of the historical metrics that are supported by * <code>GetMetricDataV2</code> and <code>GetMetricData</code>, see <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html" * >Historical metrics definitions</a> in the <i>Amazon Connect * Administrator's Guide</i>. * </p> * * @param getMetricDataV2Request * @return getMetricDataV2Result 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 GetMetricDataV2Result getMetricDataV2(GetMetricDataV2Request getMetricDataV2Request) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(getMetricDataV2Request); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<GetMetricDataV2Request> request = null; Response<GetMetricDataV2Result> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetMetricDataV2RequestMarshaller().marshall(getMetricDataV2Request); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<GetMetricDataV2Result, JsonUnmarshallerContext> unmarshaller = new GetMetricDataV2ResultJsonUnmarshaller(); JsonResponseHandler<GetMetricDataV2Result> responseHandler = new JsonResponseHandler<GetMetricDataV2Result>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Gets the prompt file. * </p> * * @param getPromptFileRequest * @return getPromptFileResult 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 GetPromptFileResult getPromptFile(GetPromptFileRequest getPromptFileRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(getPromptFileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<GetPromptFileRequest> request = null; Response<GetPromptFileResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetPromptFileRequestMarshaller().marshall(getPromptFileRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<GetPromptFileResult, JsonUnmarshallerContext> unmarshaller = new GetPromptFileResultJsonUnmarshaller(); JsonResponseHandler<GetPromptFileResult> responseHandler = new JsonResponseHandler<GetPromptFileResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Gets details about a specific task template in the specified Amazon * Connect instance. * </p> * * @param getTaskTemplateRequest * @return getTaskTemplateResult 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 GetTaskTemplateResult getTaskTemplate(GetTaskTemplateRequest getTaskTemplateRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(getTaskTemplateRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<GetTaskTemplateRequest> request = null; Response<GetTaskTemplateResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetTaskTemplateRequestMarshaller().marshall(getTaskTemplateRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<GetTaskTemplateResult, JsonUnmarshallerContext> unmarshaller = new GetTaskTemplateResultJsonUnmarshaller(); JsonResponseHandler<GetTaskTemplateResult> responseHandler = new JsonResponseHandler<GetTaskTemplateResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Retrieves the current traffic distribution for a given traffic * distribution group. * </p> * * @param getTrafficDistributionRequest * @return getTrafficDistributionResult 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 GetTrafficDistributionResult getTrafficDistribution( GetTrafficDistributionRequest getTrafficDistributionRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(getTrafficDistributionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<GetTrafficDistributionRequest> request = null; Response<GetTrafficDistributionResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetTrafficDistributionRequestMarshaller() .marshall(getTrafficDistributionRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<GetTrafficDistributionResult, JsonUnmarshallerContext> unmarshaller = new GetTrafficDistributionResultJsonUnmarshaller(); JsonResponseHandler<GetTrafficDistributionResult> responseHandler = new JsonResponseHandler<GetTrafficDistributionResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Lists agent statuses. * </p> * * @param listAgentStatusesRequest * @return listAgentStatusesResult 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 ListAgentStatusesResult listAgentStatuses( ListAgentStatusesRequest listAgentStatusesRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listAgentStatusesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListAgentStatusesRequest> request = null; Response<ListAgentStatusesResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListAgentStatusesRequestMarshaller() .marshall(listAgentStatusesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListAgentStatusesResult, JsonUnmarshallerContext> unmarshaller = new ListAgentStatusesResultJsonUnmarshaller(); JsonResponseHandler<ListAgentStatusesResult> responseHandler = new JsonResponseHandler<ListAgentStatusesResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Returns a paginated list of all approved origins associated with the * instance. * </p> * * @param listApprovedOriginsRequest * @return listApprovedOriginsResult 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 ListApprovedOriginsResult listApprovedOrigins( ListApprovedOriginsRequest listApprovedOriginsRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listApprovedOriginsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListApprovedOriginsRequest> request = null; Response<ListApprovedOriginsResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListApprovedOriginsRequestMarshaller() .marshall(listApprovedOriginsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListApprovedOriginsResult, JsonUnmarshallerContext> unmarshaller = new ListApprovedOriginsResultJsonUnmarshaller(); JsonResponseHandler<ListApprovedOriginsResult> responseHandler = new JsonResponseHandler<ListApprovedOriginsResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * 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. * </p> * * @param listBotsRequest * @return listBotsResult 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 ListBotsResult listBots(ListBotsRequest listBotsRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listBotsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListBotsRequest> request = null; Response<ListBotsResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListBotsRequestMarshaller().marshall(listBotsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListBotsResult, JsonUnmarshallerContext> unmarshaller = new ListBotsResultJsonUnmarshaller(); JsonResponseHandler<ListBotsResult> responseHandler = new JsonResponseHandler<ListBotsResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Lists contact evaluations in the specified Amazon Connect instance. * </p> * * @param listContactEvaluationsRequest * @return listContactEvaluationsResult 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 ListContactEvaluationsResult listContactEvaluations( ListContactEvaluationsRequest listContactEvaluationsRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listContactEvaluationsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListContactEvaluationsRequest> request = null; Response<ListContactEvaluationsResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListContactEvaluationsRequestMarshaller() .marshall(listContactEvaluationsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListContactEvaluationsResult, JsonUnmarshallerContext> unmarshaller = new ListContactEvaluationsResultJsonUnmarshaller(); JsonResponseHandler<ListContactEvaluationsResult> responseHandler = new JsonResponseHandler<ListContactEvaluationsResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Provides information about the flow modules for the specified Amazon * Connect instance. * </p> * * @param listContactFlowModulesRequest * @return listContactFlowModulesResult 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 ListContactFlowModulesResult listContactFlowModules( ListContactFlowModulesRequest listContactFlowModulesRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listContactFlowModulesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListContactFlowModulesRequest> request = null; Response<ListContactFlowModulesResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListContactFlowModulesRequestMarshaller() .marshall(listContactFlowModulesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListContactFlowModulesResult, JsonUnmarshallerContext> unmarshaller = new ListContactFlowModulesResultJsonUnmarshaller(); JsonResponseHandler<ListContactFlowModulesResult> responseHandler = new JsonResponseHandler<ListContactFlowModulesResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Provides information about the flows for the specified Amazon Connect * instance. * </p> * <p> * You can also create and update flows using the <a href= * "https://docs.aws.amazon.com/connect/latest/APIReference/flow-language.html" * >Amazon Connect Flow language</a>. * </p> * <p> * For more information about flows, see <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/concepts-contact-flows.html" * >Flows</a> in the <i>Amazon Connect Administrator Guide</i>. * </p> * * @param listContactFlowsRequest * @return listContactFlowsResult 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 ListContactFlowsResult listContactFlows(ListContactFlowsRequest listContactFlowsRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listContactFlowsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListContactFlowsRequest> request = null; Response<ListContactFlowsResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListContactFlowsRequestMarshaller().marshall(listContactFlowsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListContactFlowsResult, JsonUnmarshallerContext> unmarshaller = new ListContactFlowsResultJsonUnmarshaller(); JsonResponseHandler<ListContactFlowsResult> responseHandler = new JsonResponseHandler<ListContactFlowsResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * For the specified <code>referenceTypes</code>, returns a list of * references associated with the contact. * </p> * * @param listContactReferencesRequest * @return listContactReferencesResult 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 ListContactReferencesResult listContactReferences( ListContactReferencesRequest listContactReferencesRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listContactReferencesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListContactReferencesRequest> request = null; Response<ListContactReferencesResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListContactReferencesRequestMarshaller() .marshall(listContactReferencesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListContactReferencesResult, JsonUnmarshallerContext> unmarshaller = new ListContactReferencesResultJsonUnmarshaller(); JsonResponseHandler<ListContactReferencesResult> responseHandler = new JsonResponseHandler<ListContactReferencesResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Lists the default vocabularies for the specified Amazon Connect instance. * </p> * * @param listDefaultVocabulariesRequest * @return listDefaultVocabulariesResult 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 ListDefaultVocabulariesResult listDefaultVocabularies( ListDefaultVocabulariesRequest listDefaultVocabulariesRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listDefaultVocabulariesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListDefaultVocabulariesRequest> request = null; Response<ListDefaultVocabulariesResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListDefaultVocabulariesRequestMarshaller() .marshall(listDefaultVocabulariesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListDefaultVocabulariesResult, JsonUnmarshallerContext> unmarshaller = new ListDefaultVocabulariesResultJsonUnmarshaller(); JsonResponseHandler<ListDefaultVocabulariesResult> responseHandler = new JsonResponseHandler<ListDefaultVocabulariesResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Lists versions of an evaluation form in the specified Amazon Connect * instance. * </p> * * @param listEvaluationFormVersionsRequest * @return listEvaluationFormVersionsResult 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 ListEvaluationFormVersionsResult listEvaluationFormVersions( ListEvaluationFormVersionsRequest listEvaluationFormVersionsRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listEvaluationFormVersionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListEvaluationFormVersionsRequest> request = null; Response<ListEvaluationFormVersionsResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListEvaluationFormVersionsRequestMarshaller() .marshall(listEvaluationFormVersionsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListEvaluationFormVersionsResult, JsonUnmarshallerContext> unmarshaller = new ListEvaluationFormVersionsResultJsonUnmarshaller(); JsonResponseHandler<ListEvaluationFormVersionsResult> responseHandler = new JsonResponseHandler<ListEvaluationFormVersionsResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Lists evaluation forms in the specified Amazon Connect instance. * </p> * * @param listEvaluationFormsRequest * @return listEvaluationFormsResult 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 ListEvaluationFormsResult listEvaluationForms( ListEvaluationFormsRequest listEvaluationFormsRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listEvaluationFormsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListEvaluationFormsRequest> request = null; Response<ListEvaluationFormsResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListEvaluationFormsRequestMarshaller() .marshall(listEvaluationFormsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListEvaluationFormsResult, JsonUnmarshallerContext> unmarshaller = new ListEvaluationFormsResultJsonUnmarshaller(); JsonResponseHandler<ListEvaluationFormsResult> responseHandler = new JsonResponseHandler<ListEvaluationFormsResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Provides information about the hours of operation for the specified * Amazon Connect instance. * </p> * <p> * For more information about hours of operation, see <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/set-hours-operation.html" * >Set the Hours of Operation for a Queue</a> in the <i>Amazon Connect * Administrator Guide</i>. * </p> * * @param listHoursOfOperationsRequest * @return listHoursOfOperationsResult 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 ListHoursOfOperationsResult listHoursOfOperations( ListHoursOfOperationsRequest listHoursOfOperationsRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listHoursOfOperationsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListHoursOfOperationsRequest> request = null; Response<ListHoursOfOperationsResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListHoursOfOperationsRequestMarshaller() .marshall(listHoursOfOperationsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListHoursOfOperationsResult, JsonUnmarshallerContext> unmarshaller = new ListHoursOfOperationsResultJsonUnmarshaller(); JsonResponseHandler<ListHoursOfOperationsResult> responseHandler = new JsonResponseHandler<ListHoursOfOperationsResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Returns a paginated list of all attribute types for the given instance. * </p> * * @param listInstanceAttributesRequest * @return listInstanceAttributesResult 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 ListInstanceAttributesResult listInstanceAttributes( ListInstanceAttributesRequest listInstanceAttributesRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listInstanceAttributesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListInstanceAttributesRequest> request = null; Response<ListInstanceAttributesResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListInstanceAttributesRequestMarshaller() .marshall(listInstanceAttributesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListInstanceAttributesResult, JsonUnmarshallerContext> unmarshaller = new ListInstanceAttributesResultJsonUnmarshaller(); JsonResponseHandler<ListInstanceAttributesResult> responseHandler = new JsonResponseHandler<ListInstanceAttributesResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Returns a paginated list of storage configs for the identified instance * and resource type. * </p> * * @param listInstanceStorageConfigsRequest * @return listInstanceStorageConfigsResult 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 ListInstanceStorageConfigsResult listInstanceStorageConfigs( ListInstanceStorageConfigsRequest listInstanceStorageConfigsRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listInstanceStorageConfigsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListInstanceStorageConfigsRequest> request = null; Response<ListInstanceStorageConfigsResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListInstanceStorageConfigsRequestMarshaller() .marshall(listInstanceStorageConfigsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListInstanceStorageConfigsResult, JsonUnmarshallerContext> unmarshaller = new ListInstanceStorageConfigsResultJsonUnmarshaller(); JsonResponseHandler<ListInstanceStorageConfigsResult> responseHandler = new JsonResponseHandler<ListInstanceStorageConfigsResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * 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. * </p> * * @param listInstancesRequest * @return listInstancesResult 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 ListInstancesResult listInstances(ListInstancesRequest listInstancesRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listInstancesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListInstancesRequest> request = null; Response<ListInstancesResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListInstancesRequestMarshaller().marshall(listInstancesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListInstancesResult, JsonUnmarshallerContext> unmarshaller = new ListInstancesResultJsonUnmarshaller(); JsonResponseHandler<ListInstancesResult> responseHandler = new JsonResponseHandler<ListInstancesResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Provides summary information about the Amazon Web Services resource * associations for the specified Amazon Connect instance. * </p> * * @param listIntegrationAssociationsRequest * @return listIntegrationAssociationsResult 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 ListIntegrationAssociationsResult listIntegrationAssociations( ListIntegrationAssociationsRequest listIntegrationAssociationsRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listIntegrationAssociationsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListIntegrationAssociationsRequest> request = null; Response<ListIntegrationAssociationsResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListIntegrationAssociationsRequestMarshaller() .marshall(listIntegrationAssociationsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListIntegrationAssociationsResult, JsonUnmarshallerContext> unmarshaller = new ListIntegrationAssociationsResultJsonUnmarshaller(); JsonResponseHandler<ListIntegrationAssociationsResult> responseHandler = new JsonResponseHandler<ListIntegrationAssociationsResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Returns a paginated list of all Lambda functions that display in the * dropdown options in the relevant flow blocks. * </p> * * @param listLambdaFunctionsRequest * @return listLambdaFunctionsResult 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 ListLambdaFunctionsResult listLambdaFunctions( ListLambdaFunctionsRequest listLambdaFunctionsRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listLambdaFunctionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListLambdaFunctionsRequest> request = null; Response<ListLambdaFunctionsResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListLambdaFunctionsRequestMarshaller() .marshall(listLambdaFunctionsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListLambdaFunctionsResult, JsonUnmarshallerContext> unmarshaller = new ListLambdaFunctionsResultJsonUnmarshaller(); JsonResponseHandler<ListLambdaFunctionsResult> responseHandler = new JsonResponseHandler<ListLambdaFunctionsResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * 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 <a href= * "https://docs.aws.amazon.com/connect/latest/APIReference/API_ListBots.html" * >ListBots</a> API. * </p> * * @param listLexBotsRequest * @return listLexBotsResult 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 ListLexBotsResult listLexBots(ListLexBotsRequest listLexBotsRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listLexBotsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListLexBotsRequest> request = null; Response<ListLexBotsResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListLexBotsRequestMarshaller().marshall(listLexBotsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListLexBotsResult, JsonUnmarshallerContext> unmarshaller = new ListLexBotsResultJsonUnmarshaller(); JsonResponseHandler<ListLexBotsResult> responseHandler = new JsonResponseHandler<ListLexBotsResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Provides information about the phone numbers for the specified Amazon * Connect instance. * </p> * <p> * For more information about phone numbers, see <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/contact-center-phone-number.html" * >Set Up Phone Numbers for Your Contact Center</a> in the <i>Amazon * Connect Administrator Guide</i>. * </p> * <important> * <p> * The phone number <code>Arn</code> value that is returned from each of the * items in the <a href= * "https://docs.aws.amazon.com/connect/latest/APIReference/API_ListPhoneNumbers.html#connect-ListPhoneNumbers-response-PhoneNumberSummaryList" * >PhoneNumberSummaryList</a> cannot be used to tag phone number resources. * It will fail with a <code>ResourceNotFoundException</code>. Instead, use * the <a href= * "https://docs.aws.amazon.com/connect/latest/APIReference/API_ListPhoneNumbersV2.html" * >ListPhoneNumbersV2</a> API. It returns the new phone number ARN that can * be used to tag phone number resources. * </p> * </important> * * @param listPhoneNumbersRequest * @return listPhoneNumbersResult 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 ListPhoneNumbersResult listPhoneNumbers(ListPhoneNumbersRequest listPhoneNumbersRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listPhoneNumbersRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListPhoneNumbersRequest> request = null; Response<ListPhoneNumbersResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListPhoneNumbersRequestMarshaller().marshall(listPhoneNumbersRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListPhoneNumbersResult, JsonUnmarshallerContext> unmarshaller = new ListPhoneNumbersResultJsonUnmarshaller(); JsonResponseHandler<ListPhoneNumbersResult> responseHandler = new JsonResponseHandler<ListPhoneNumbersResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Lists phone numbers claimed to your Amazon Connect instance or traffic * distribution group. If the provided <code>TargetArn</code> is a traffic * distribution group, you can call this API in both Amazon Web Services * Regions associated with traffic distribution group. * </p> * <p> * For more information about phone numbers, see <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/contact-center-phone-number.html" * >Set Up Phone Numbers for Your Contact Center</a> in the <i>Amazon * Connect Administrator Guide</i>. * </p> * * @param listPhoneNumbersV2Request * @return listPhoneNumbersV2Result 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 ListPhoneNumbersV2Result listPhoneNumbersV2( ListPhoneNumbersV2Request listPhoneNumbersV2Request) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listPhoneNumbersV2Request); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListPhoneNumbersV2Request> request = null; Response<ListPhoneNumbersV2Result> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListPhoneNumbersV2RequestMarshaller() .marshall(listPhoneNumbersV2Request); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListPhoneNumbersV2Result, JsonUnmarshallerContext> unmarshaller = new ListPhoneNumbersV2ResultJsonUnmarshaller(); JsonResponseHandler<ListPhoneNumbersV2Result> responseHandler = new JsonResponseHandler<ListPhoneNumbersV2Result>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Provides information about the prompts for the specified Amazon Connect * instance. * </p> * * @param listPromptsRequest * @return listPromptsResult 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 ListPromptsResult listPrompts(ListPromptsRequest listPromptsRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listPromptsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListPromptsRequest> request = null; Response<ListPromptsResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListPromptsRequestMarshaller().marshall(listPromptsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListPromptsResult, JsonUnmarshallerContext> unmarshaller = new ListPromptsResultJsonUnmarshaller(); JsonResponseHandler<ListPromptsResult> responseHandler = new JsonResponseHandler<ListPromptsResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Lists the quick connects associated with a queue. * </p> * * @param listQueueQuickConnectsRequest * @return listQueueQuickConnectsResult 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 ListQueueQuickConnectsResult listQueueQuickConnects( ListQueueQuickConnectsRequest listQueueQuickConnectsRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listQueueQuickConnectsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListQueueQuickConnectsRequest> request = null; Response<ListQueueQuickConnectsResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListQueueQuickConnectsRequestMarshaller() .marshall(listQueueQuickConnectsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListQueueQuickConnectsResult, JsonUnmarshallerContext> unmarshaller = new ListQueueQuickConnectsResultJsonUnmarshaller(); JsonResponseHandler<ListQueueQuickConnectsResult> responseHandler = new JsonResponseHandler<ListQueueQuickConnectsResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Provides information about the queues for the specified Amazon Connect * instance. * </p> * <p> * If you do not specify a <code>QueueTypes</code> 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. * </p> * <p> * For more information about queues, see <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/concepts-queues-standard-and-agent.html" * >Queues: Standard and Agent</a> in the <i>Amazon Connect Administrator * Guide</i>. * </p> * * @param listQueuesRequest * @return listQueuesResult 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 ListQueuesResult listQueues(ListQueuesRequest listQueuesRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listQueuesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListQueuesRequest> request = null; Response<ListQueuesResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListQueuesRequestMarshaller().marshall(listQueuesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListQueuesResult, JsonUnmarshallerContext> unmarshaller = new ListQueuesResultJsonUnmarshaller(); JsonResponseHandler<ListQueuesResult> responseHandler = new JsonResponseHandler<ListQueuesResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Provides information about the quick connects for the specified Amazon * Connect instance. * </p> * * @param listQuickConnectsRequest * @return listQuickConnectsResult 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 ListQuickConnectsResult listQuickConnects( ListQuickConnectsRequest listQuickConnectsRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listQuickConnectsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListQuickConnectsRequest> request = null; Response<ListQuickConnectsResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListQuickConnectsRequestMarshaller() .marshall(listQuickConnectsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListQuickConnectsResult, JsonUnmarshallerContext> unmarshaller = new ListQuickConnectsResultJsonUnmarshaller(); JsonResponseHandler<ListQuickConnectsResult> responseHandler = new JsonResponseHandler<ListQuickConnectsResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Lists the queues associated with a routing profile. * </p> * * @param listRoutingProfileQueuesRequest * @return listRoutingProfileQueuesResult 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 ListRoutingProfileQueuesResult listRoutingProfileQueues( ListRoutingProfileQueuesRequest listRoutingProfileQueuesRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listRoutingProfileQueuesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListRoutingProfileQueuesRequest> request = null; Response<ListRoutingProfileQueuesResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListRoutingProfileQueuesRequestMarshaller() .marshall(listRoutingProfileQueuesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListRoutingProfileQueuesResult, JsonUnmarshallerContext> unmarshaller = new ListRoutingProfileQueuesResultJsonUnmarshaller(); JsonResponseHandler<ListRoutingProfileQueuesResult> responseHandler = new JsonResponseHandler<ListRoutingProfileQueuesResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Provides summary information about the routing profiles for the specified * Amazon Connect instance. * </p> * <p> * For more information about routing profiles, see <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/concepts-routing.html" * >Routing Profiles</a> and <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/routing-profiles.html" * >Create a Routing Profile</a> in the <i>Amazon Connect Administrator * Guide</i>. * </p> * * @param listRoutingProfilesRequest * @return listRoutingProfilesResult 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 ListRoutingProfilesResult listRoutingProfiles( ListRoutingProfilesRequest listRoutingProfilesRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listRoutingProfilesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListRoutingProfilesRequest> request = null; Response<ListRoutingProfilesResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListRoutingProfilesRequestMarshaller() .marshall(listRoutingProfilesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListRoutingProfilesResult, JsonUnmarshallerContext> unmarshaller = new ListRoutingProfilesResultJsonUnmarshaller(); JsonResponseHandler<ListRoutingProfilesResult> responseHandler = new JsonResponseHandler<ListRoutingProfilesResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * List all rules for the specified Amazon Connect instance. * </p> * * @param listRulesRequest * @return listRulesResult 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 ListRulesResult listRules(ListRulesRequest listRulesRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listRulesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListRulesRequest> request = null; Response<ListRulesResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListRulesRequestMarshaller().marshall(listRulesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListRulesResult, JsonUnmarshallerContext> unmarshaller = new ListRulesResultJsonUnmarshaller(); JsonResponseHandler<ListRulesResult> responseHandler = new JsonResponseHandler<ListRulesResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Returns a paginated list of all security keys associated with the * instance. * </p> * * @param listSecurityKeysRequest * @return listSecurityKeysResult 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 ListSecurityKeysResult listSecurityKeys(ListSecurityKeysRequest listSecurityKeysRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listSecurityKeysRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListSecurityKeysRequest> request = null; Response<ListSecurityKeysResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListSecurityKeysRequestMarshaller().marshall(listSecurityKeysRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListSecurityKeysResult, JsonUnmarshallerContext> unmarshaller = new ListSecurityKeysResultJsonUnmarshaller(); JsonResponseHandler<ListSecurityKeysResult> responseHandler = new JsonResponseHandler<ListSecurityKeysResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Lists the permissions granted to a security profile. * </p> * * @param listSecurityProfilePermissionsRequest * @return listSecurityProfilePermissionsResult 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 ListSecurityProfilePermissionsResult listSecurityProfilePermissions( ListSecurityProfilePermissionsRequest listSecurityProfilePermissionsRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listSecurityProfilePermissionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListSecurityProfilePermissionsRequest> request = null; Response<ListSecurityProfilePermissionsResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListSecurityProfilePermissionsRequestMarshaller() .marshall(listSecurityProfilePermissionsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListSecurityProfilePermissionsResult, JsonUnmarshallerContext> unmarshaller = new ListSecurityProfilePermissionsResultJsonUnmarshaller(); JsonResponseHandler<ListSecurityProfilePermissionsResult> responseHandler = new JsonResponseHandler<ListSecurityProfilePermissionsResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Provides summary information about the security profiles for the * specified Amazon Connect instance. * </p> * <p> * For more information about security profiles, see <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/connect-security-profiles.html" * >Security Profiles</a> in the <i>Amazon Connect Administrator Guide</i>. * </p> * * @param listSecurityProfilesRequest * @return listSecurityProfilesResult 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 ListSecurityProfilesResult listSecurityProfiles( ListSecurityProfilesRequest listSecurityProfilesRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listSecurityProfilesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListSecurityProfilesRequest> request = null; Response<ListSecurityProfilesResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListSecurityProfilesRequestMarshaller() .marshall(listSecurityProfilesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListSecurityProfilesResult, JsonUnmarshallerContext> unmarshaller = new ListSecurityProfilesResultJsonUnmarshaller(); JsonResponseHandler<ListSecurityProfilesResult> responseHandler = new JsonResponseHandler<ListSecurityProfilesResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Lists the tags for the specified resource. * </p> * <p> * For sample policies that use tags, see <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/security_iam_id-based-policy-examples.html" * >Amazon Connect Identity-Based Policy Examples</a> in the <i>Amazon * Connect Administrator Guide</i>. * </p> * * @param listTagsForResourceRequest * @return listTagsForResourceResult 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 ListTagsForResourceResult listTagsForResource( ListTagsForResourceRequest listTagsForResourceRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListTagsForResourceRequest> request = null; Response<ListTagsForResourceResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListTagsForResourceRequestMarshaller() .marshall(listTagsForResourceRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListTagsForResourceResult, JsonUnmarshallerContext> unmarshaller = new ListTagsForResourceResultJsonUnmarshaller(); JsonResponseHandler<ListTagsForResourceResult> responseHandler = new JsonResponseHandler<ListTagsForResourceResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Lists task templates for the specified Amazon Connect instance. * </p> * * @param listTaskTemplatesRequest * @return listTaskTemplatesResult 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 ListTaskTemplatesResult listTaskTemplates( ListTaskTemplatesRequest listTaskTemplatesRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listTaskTemplatesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListTaskTemplatesRequest> request = null; Response<ListTaskTemplatesResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListTaskTemplatesRequestMarshaller() .marshall(listTaskTemplatesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListTaskTemplatesResult, JsonUnmarshallerContext> unmarshaller = new ListTaskTemplatesResultJsonUnmarshaller(); JsonResponseHandler<ListTaskTemplatesResult> responseHandler = new JsonResponseHandler<ListTaskTemplatesResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Lists traffic distribution groups. * </p> * * @param listTrafficDistributionGroupsRequest * @return listTrafficDistributionGroupsResult 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 ListTrafficDistributionGroupsResult listTrafficDistributionGroups( ListTrafficDistributionGroupsRequest listTrafficDistributionGroupsRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listTrafficDistributionGroupsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListTrafficDistributionGroupsRequest> request = null; Response<ListTrafficDistributionGroupsResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListTrafficDistributionGroupsRequestMarshaller() .marshall(listTrafficDistributionGroupsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListTrafficDistributionGroupsResult, JsonUnmarshallerContext> unmarshaller = new ListTrafficDistributionGroupsResultJsonUnmarshaller(); JsonResponseHandler<ListTrafficDistributionGroupsResult> responseHandler = new JsonResponseHandler<ListTrafficDistributionGroupsResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Lists the use cases for the integration association. * </p> * * @param listUseCasesRequest <p> * Provides summary information about the use cases for the * specified integration association. * </p> * @return listUseCasesResult 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 ListUseCasesResult listUseCases(ListUseCasesRequest listUseCasesRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listUseCasesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListUseCasesRequest> request = null; Response<ListUseCasesResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListUseCasesRequestMarshaller().marshall(listUseCasesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListUseCasesResult, JsonUnmarshallerContext> unmarshaller = new ListUseCasesResultJsonUnmarshaller(); JsonResponseHandler<ListUseCasesResult> responseHandler = new JsonResponseHandler<ListUseCasesResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Provides summary information about the hierarchy groups for the specified * Amazon Connect instance. * </p> * <p> * For more information about agent hierarchies, see <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/agent-hierarchy.html" * >Set Up Agent Hierarchies</a> in the <i>Amazon Connect Administrator * Guide</i>. * </p> * * @param listUserHierarchyGroupsRequest * @return listUserHierarchyGroupsResult 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 ListUserHierarchyGroupsResult listUserHierarchyGroups( ListUserHierarchyGroupsRequest listUserHierarchyGroupsRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listUserHierarchyGroupsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListUserHierarchyGroupsRequest> request = null; Response<ListUserHierarchyGroupsResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListUserHierarchyGroupsRequestMarshaller() .marshall(listUserHierarchyGroupsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListUserHierarchyGroupsResult, JsonUnmarshallerContext> unmarshaller = new ListUserHierarchyGroupsResultJsonUnmarshaller(); JsonResponseHandler<ListUserHierarchyGroupsResult> responseHandler = new JsonResponseHandler<ListUserHierarchyGroupsResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Provides summary information about the users for the specified Amazon * Connect instance. * </p> * * @param listUsersRequest * @return listUsersResult 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 ListUsersResult listUsers(ListUsersRequest listUsersRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(listUsersRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListUsersRequest> request = null; Response<ListUsersResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListUsersRequestMarshaller().marshall(listUsersRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ListUsersResult, JsonUnmarshallerContext> unmarshaller = new ListUsersResultJsonUnmarshaller(); JsonResponseHandler<ListUsersResult> responseHandler = new JsonResponseHandler<ListUsersResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Initiates silent monitoring of a contact. The Contact Control Panel (CCP) * of the user specified by <i>userId</i> will be set to silent monitoring * mode on the contact. * </p> * * @param monitorContactRequest * @return monitorContactResult 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 MonitorContactResult monitorContact(MonitorContactRequest monitorContactRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(monitorContactRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<MonitorContactRequest> request = null; Response<MonitorContactResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new MonitorContactRequestMarshaller().marshall(monitorContactRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<MonitorContactResult, JsonUnmarshallerContext> unmarshaller = new MonitorContactResultJsonUnmarshaller(); JsonResponseHandler<MonitorContactResult> responseHandler = new JsonResponseHandler<MonitorContactResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * 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. * </p> * <p> * For more information, see <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/metrics-agent-status.html" * >Agent status</a> and <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/set-next-status.html" * >Set your next status</a> in the <i>Amazon Connect Administrator * Guide</i>. * </p> * * @param putUserStatusRequest * @return putUserStatusResult 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 PutUserStatusResult putUserStatus(PutUserStatusRequest putUserStatusRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(putUserStatusRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<PutUserStatusRequest> request = null; Response<PutUserStatusResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new PutUserStatusRequestMarshaller().marshall(putUserStatusRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<PutUserStatusResult, JsonUnmarshallerContext> unmarshaller = new PutUserStatusResultJsonUnmarshaller(); JsonResponseHandler<PutUserStatusResult> responseHandler = new JsonResponseHandler<PutUserStatusResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * 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. * </p> * <important> * <p> * To release phone numbers from a traffic distribution group, use the * <code>ReleasePhoneNumber</code> API, not the Amazon Connect console. * </p> * <p> * 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. * </p> * </important> * <p> * 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. * </p> * <p> * 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. * </p> * <p> * 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. * </p> * * @param releasePhoneNumberRequest * @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 void releasePhoneNumber(ReleasePhoneNumberRequest releasePhoneNumberRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(releasePhoneNumberRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ReleasePhoneNumberRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ReleasePhoneNumberRequestMarshaller() .marshall(releasePhoneNumberRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Replicates an Amazon Connect instance in the specified Amazon Web * Services Region. * </p> * <p> * For more information about replicating an Amazon Connect instance, see <a * href= * "https://docs.aws.amazon.com/connect/latest/adminguide/create-replica-connect-instance.html" * >Create a replica of your existing Amazon Connect instance</a> in the * <i>Amazon Connect Administrator Guide</i>. * </p> * * @param replicateInstanceRequest * @return replicateInstanceResult 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 ReplicateInstanceResult replicateInstance( ReplicateInstanceRequest replicateInstanceRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(replicateInstanceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ReplicateInstanceRequest> request = null; Response<ReplicateInstanceResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ReplicateInstanceRequestMarshaller() .marshall(replicateInstanceRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ReplicateInstanceResult, JsonUnmarshallerContext> unmarshaller = new ReplicateInstanceResultJsonUnmarshaller(); JsonResponseHandler<ReplicateInstanceResult> responseHandler = new JsonResponseHandler<ReplicateInstanceResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * When a contact is being recorded, and the recording has been suspended * using SuspendContactRecording, this API resumes recording the call or * screen. * </p> * <p> * Voice and screen recordings are supported. * </p> * * @param resumeContactRecordingRequest * @return resumeContactRecordingResult 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 ResumeContactRecordingResult resumeContactRecording( ResumeContactRecordingRequest resumeContactRecordingRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(resumeContactRecordingRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ResumeContactRecordingRequest> request = null; Response<ResumeContactRecordingResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ResumeContactRecordingRequestMarshaller() .marshall(resumeContactRecordingRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<ResumeContactRecordingResult, JsonUnmarshallerContext> unmarshaller = new ResumeContactRecordingResultJsonUnmarshaller(); JsonResponseHandler<ResumeContactRecordingResult> responseHandler = new JsonResponseHandler<ResumeContactRecordingResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Searches for available phone numbers that you can claim to your Amazon * Connect instance or traffic distribution group. If the provided * <code>TargetArn</code> is a traffic distribution group, you can call this * API in both Amazon Web Services Regions associated with the traffic * distribution group. * </p> * * @param searchAvailablePhoneNumbersRequest * @return searchAvailablePhoneNumbersResult 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 SearchAvailablePhoneNumbersResult searchAvailablePhoneNumbers( SearchAvailablePhoneNumbersRequest searchAvailablePhoneNumbersRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(searchAvailablePhoneNumbersRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<SearchAvailablePhoneNumbersRequest> request = null; Response<SearchAvailablePhoneNumbersResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SearchAvailablePhoneNumbersRequestMarshaller() .marshall(searchAvailablePhoneNumbersRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<SearchAvailablePhoneNumbersResult, JsonUnmarshallerContext> unmarshaller = new SearchAvailablePhoneNumbersResultJsonUnmarshaller(); JsonResponseHandler<SearchAvailablePhoneNumbersResult> responseHandler = new JsonResponseHandler<SearchAvailablePhoneNumbersResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Searches the hours of operation in an Amazon Connect instance, with * optional filtering. * </p> * * @param searchHoursOfOperationsRequest * @return searchHoursOfOperationsResult 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 SearchHoursOfOperationsResult searchHoursOfOperations( SearchHoursOfOperationsRequest searchHoursOfOperationsRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(searchHoursOfOperationsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<SearchHoursOfOperationsRequest> request = null; Response<SearchHoursOfOperationsResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SearchHoursOfOperationsRequestMarshaller() .marshall(searchHoursOfOperationsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<SearchHoursOfOperationsResult, JsonUnmarshallerContext> unmarshaller = new SearchHoursOfOperationsResultJsonUnmarshaller(); JsonResponseHandler<SearchHoursOfOperationsResult> responseHandler = new JsonResponseHandler<SearchHoursOfOperationsResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Searches prompts in an Amazon Connect instance, with optional filtering. * </p> * * @param searchPromptsRequest * @return searchPromptsResult 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 SearchPromptsResult searchPrompts(SearchPromptsRequest searchPromptsRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(searchPromptsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<SearchPromptsRequest> request = null; Response<SearchPromptsResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SearchPromptsRequestMarshaller().marshall(searchPromptsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<SearchPromptsResult, JsonUnmarshallerContext> unmarshaller = new SearchPromptsResultJsonUnmarshaller(); JsonResponseHandler<SearchPromptsResult> responseHandler = new JsonResponseHandler<SearchPromptsResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Searches queues in an Amazon Connect instance, with optional filtering. * </p> * * @param searchQueuesRequest * @return searchQueuesResult 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 SearchQueuesResult searchQueues(SearchQueuesRequest searchQueuesRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(searchQueuesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<SearchQueuesRequest> request = null; Response<SearchQueuesResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SearchQueuesRequestMarshaller().marshall(searchQueuesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<SearchQueuesResult, JsonUnmarshallerContext> unmarshaller = new SearchQueuesResultJsonUnmarshaller(); JsonResponseHandler<SearchQueuesResult> responseHandler = new JsonResponseHandler<SearchQueuesResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Searches quick connects in an Amazon Connect instance, with optional * filtering. * </p> * * @param searchQuickConnectsRequest * @return searchQuickConnectsResult 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 SearchQuickConnectsResult searchQuickConnects( SearchQuickConnectsRequest searchQuickConnectsRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(searchQuickConnectsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<SearchQuickConnectsRequest> request = null; Response<SearchQuickConnectsResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SearchQuickConnectsRequestMarshaller() .marshall(searchQuickConnectsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<SearchQuickConnectsResult, JsonUnmarshallerContext> unmarshaller = new SearchQuickConnectsResultJsonUnmarshaller(); JsonResponseHandler<SearchQuickConnectsResult> responseHandler = new JsonResponseHandler<SearchQuickConnectsResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Searches tags used in an Amazon Connect instance using optional search * criteria. * </p> * * @param searchResourceTagsRequest * @return searchResourceTagsResult 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 SearchResourceTagsResult searchResourceTags( SearchResourceTagsRequest searchResourceTagsRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(searchResourceTagsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<SearchResourceTagsRequest> request = null; Response<SearchResourceTagsResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SearchResourceTagsRequestMarshaller() .marshall(searchResourceTagsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<SearchResourceTagsResult, JsonUnmarshallerContext> unmarshaller = new SearchResourceTagsResultJsonUnmarshaller(); JsonResponseHandler<SearchResourceTagsResult> responseHandler = new JsonResponseHandler<SearchResourceTagsResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Searches routing profiles in an Amazon Connect instance, with optional * filtering. * </p> * * @param searchRoutingProfilesRequest * @return searchRoutingProfilesResult 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 SearchRoutingProfilesResult searchRoutingProfiles( SearchRoutingProfilesRequest searchRoutingProfilesRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(searchRoutingProfilesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<SearchRoutingProfilesRequest> request = null; Response<SearchRoutingProfilesResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SearchRoutingProfilesRequestMarshaller() .marshall(searchRoutingProfilesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<SearchRoutingProfilesResult, JsonUnmarshallerContext> unmarshaller = new SearchRoutingProfilesResultJsonUnmarshaller(); JsonResponseHandler<SearchRoutingProfilesResult> responseHandler = new JsonResponseHandler<SearchRoutingProfilesResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Searches security profiles in an Amazon Connect instance, with optional * filtering. * </p> * * @param searchSecurityProfilesRequest * @return searchSecurityProfilesResult 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 SearchSecurityProfilesResult searchSecurityProfiles( SearchSecurityProfilesRequest searchSecurityProfilesRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(searchSecurityProfilesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<SearchSecurityProfilesRequest> request = null; Response<SearchSecurityProfilesResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SearchSecurityProfilesRequestMarshaller() .marshall(searchSecurityProfilesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<SearchSecurityProfilesResult, JsonUnmarshallerContext> unmarshaller = new SearchSecurityProfilesResultJsonUnmarshaller(); JsonResponseHandler<SearchSecurityProfilesResult> responseHandler = new JsonResponseHandler<SearchSecurityProfilesResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Searches users in an Amazon Connect instance, with optional filtering. * </p> * <note> * <p> * <code>AfterContactWorkTimeLimit</code> is returned in milliseconds. * </p> * </note> * * @param searchUsersRequest * @return searchUsersResult 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 SearchUsersResult searchUsers(SearchUsersRequest searchUsersRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(searchUsersRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<SearchUsersRequest> request = null; Response<SearchUsersResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SearchUsersRequestMarshaller().marshall(searchUsersRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<SearchUsersResult, JsonUnmarshallerContext> unmarshaller = new SearchUsersResultJsonUnmarshaller(); JsonResponseHandler<SearchUsersResult> responseHandler = new JsonResponseHandler<SearchUsersResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Searches for vocabularies within a specific Amazon Connect instance using * <code>State</code>, <code>NameStartsWith</code>, and * <code>LanguageCode</code>. * </p> * * @param searchVocabulariesRequest * @return searchVocabulariesResult 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 SearchVocabulariesResult searchVocabularies( SearchVocabulariesRequest searchVocabulariesRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(searchVocabulariesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<SearchVocabulariesRequest> request = null; Response<SearchVocabulariesResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SearchVocabulariesRequestMarshaller() .marshall(searchVocabulariesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<SearchVocabulariesResult, JsonUnmarshallerContext> unmarshaller = new SearchVocabulariesResultJsonUnmarshaller(); JsonResponseHandler<SearchVocabulariesResult> responseHandler = new JsonResponseHandler<SearchVocabulariesResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Initiates a flow to start a new chat for the customer. Response of this * API provides a token required to obtain credentials from the <a href= * "https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_CreateParticipantConnection.html" * >CreateParticipantConnection</a> API in the Amazon Connect Participant * Service. * </p> * <p> * 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 <a href= * "https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_CreateParticipantConnection.html" * >CreateParticipantConnection</a> with WEBSOCKET and * CONNECTION_CREDENTIALS. * </p> * <p> * A 429 error occurs in the following situations: * </p> * <ul> * <li> * <p> * API rate limit is exceeded. API TPS throttling returns a * <code>TooManyRequests</code> exception. * </p> * </li> * <li> * <p> * The <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html" * >quota for concurrent active chats</a> is exceeded. Active chat * throttling returns a <code>LimitExceededException</code>. * </p> * </li> * </ul> * <p> * If you use the <code>ChatDurationInMinutes</code> 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. * </p> * <p> * For more information about chat, see <a * href="https://docs.aws.amazon.com/connect/latest/adminguide/chat.html" * >Chat</a> in the <i>Amazon Connect Administrator Guide</i>. * </p> * * @param startChatContactRequest * @return startChatContactResult 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 StartChatContactResult startChatContact(StartChatContactRequest startChatContactRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(startChatContactRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<StartChatContactRequest> request = null; Response<StartChatContactResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StartChatContactRequestMarshaller().marshall(startChatContactRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<StartChatContactResult, JsonUnmarshallerContext> unmarshaller = new StartChatContactResultJsonUnmarshaller(); JsonResponseHandler<StartChatContactResult> responseHandler = new JsonResponseHandler<StartChatContactResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * 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. * </p> * <note> * <p> * Evaluations created through the public API do not contain answer values * suggested from automation. * </p> * </note> * * @param startContactEvaluationRequest * @return startContactEvaluationResult 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 StartContactEvaluationResult startContactEvaluation( StartContactEvaluationRequest startContactEvaluationRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(startContactEvaluationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<StartContactEvaluationRequest> request = null; Response<StartContactEvaluationResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StartContactEvaluationRequestMarshaller() .marshall(startContactEvaluationRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<StartContactEvaluationResult, JsonUnmarshallerContext> unmarshaller = new StartContactEvaluationResultJsonUnmarshaller(); JsonResponseHandler<StartContactEvaluationResult> responseHandler = new JsonResponseHandler<StartContactEvaluationResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Starts recording the contact: * </p> * <ul> * <li> * <p> * If the API is called <i>before</i> the agent joins the call, recording * starts when the agent joins the call. * </p> * </li> * <li> * <p> * If the API is called <i>after</i> the agent joins the call, recording * starts at the time of the API call. * </p> * </li> * </ul> * <p> * 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. * </p> * <p> * You can use this API to override the recording behavior configured in the * <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/set-recording-behavior.html" * >Set recording behavior</a> block. * </p> * <p> * Only voice recordings are supported at this time. * </p> * * @param startContactRecordingRequest * @return startContactRecordingResult 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 StartContactRecordingResult startContactRecording( StartContactRecordingRequest startContactRecordingRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(startContactRecordingRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<StartContactRecordingRequest> request = null; Response<StartContactRecordingResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StartContactRecordingRequestMarshaller() .marshall(startContactRecordingRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<StartContactRecordingResult, JsonUnmarshallerContext> unmarshaller = new StartContactRecordingResultJsonUnmarshaller(); JsonResponseHandler<StartContactRecordingResult> responseHandler = new JsonResponseHandler<StartContactRecordingResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Initiates real-time message streaming for a new chat contact. * </p> * <p> * For more information about message streaming, see <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/chat-message-streaming.html" * >Enable real-time chat message streaming</a> in the <i>Amazon Connect * Administrator Guide</i>. * </p> * * @param startContactStreamingRequest * @return startContactStreamingResult 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 StartContactStreamingResult startContactStreaming( StartContactStreamingRequest startContactStreamingRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(startContactStreamingRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<StartContactStreamingRequest> request = null; Response<StartContactStreamingResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StartContactStreamingRequestMarshaller() .marshall(startContactStreamingRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<StartContactStreamingResult, JsonUnmarshallerContext> unmarshaller = new StartContactStreamingResultJsonUnmarshaller(); JsonResponseHandler<StartContactStreamingResult> responseHandler = new JsonResponseHandler<StartContactStreamingResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Places an outbound call to a contact, and then initiates the flow. It * performs the actions in the flow that's specified (in * <code>ContactFlowId</code>). * </p> * <p> * 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. * </p> * <p> * There is a 60-second dialing timeout for this operation. If the call is * not connected after 60 seconds, it fails. * </p> * <note> * <p> * 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 <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html" * >Amazon Connect Service Quotas</a> in the <i>Amazon Connect Administrator * Guide</i>. * </p> * </note> <note> * <p> * Campaign calls are not allowed by default. Before you can make a call * with <code>TrafficType</code> = <code>CAMPAIGN</code>, you must submit a * service quota increase request to the quota <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#outbound-communications-quotas" * >Amazon Connect campaigns</a>. * </p> * </note> * * @param startOutboundVoiceContactRequest * @return startOutboundVoiceContactResult 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 StartOutboundVoiceContactResult startOutboundVoiceContact( StartOutboundVoiceContactRequest startOutboundVoiceContactRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(startOutboundVoiceContactRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<StartOutboundVoiceContactRequest> request = null; Response<StartOutboundVoiceContactResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StartOutboundVoiceContactRequestMarshaller() .marshall(startOutboundVoiceContactRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<StartOutboundVoiceContactResult, JsonUnmarshallerContext> unmarshaller = new StartOutboundVoiceContactResultJsonUnmarshaller(); JsonResponseHandler<StartOutboundVoiceContactResult> responseHandler = new JsonResponseHandler<StartOutboundVoiceContactResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Initiates a flow to start a new task. * </p> * * @param startTaskContactRequest * @return startTaskContactResult 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 StartTaskContactResult startTaskContact(StartTaskContactRequest startTaskContactRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(startTaskContactRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<StartTaskContactRequest> request = null; Response<StartTaskContactResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StartTaskContactRequestMarshaller().marshall(startTaskContactRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<StartTaskContactResult, JsonUnmarshallerContext> unmarshaller = new StartTaskContactResultJsonUnmarshaller(); JsonResponseHandler<StartTaskContactResult> responseHandler = new JsonResponseHandler<StartTaskContactResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Ends the specified contact. This call does not work for the following * initiation methods: * </p> * <ul> * <li> * <p> * DISCONNECT * </p> * </li> * <li> * <p> * TRANSFER * </p> * </li> * <li> * <p> * QUEUE_TRANSFER * </p> * </li> * </ul> * * @param stopContactRequest * @return stopContactResult 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 StopContactResult stopContact(StopContactRequest stopContactRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(stopContactRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<StopContactRequest> request = null; Response<StopContactResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StopContactRequestMarshaller().marshall(stopContactRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<StopContactResult, JsonUnmarshallerContext> unmarshaller = new StopContactResultJsonUnmarshaller(); JsonResponseHandler<StopContactResult> responseHandler = new JsonResponseHandler<StopContactResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * 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. * </p> * <p> * Only voice recordings are supported at this time. * </p> * * @param stopContactRecordingRequest * @return stopContactRecordingResult 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 StopContactRecordingResult stopContactRecording( StopContactRecordingRequest stopContactRecordingRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(stopContactRecordingRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<StopContactRecordingRequest> request = null; Response<StopContactRecordingResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StopContactRecordingRequestMarshaller() .marshall(stopContactRecordingRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<StopContactRecordingResult, JsonUnmarshallerContext> unmarshaller = new StopContactRecordingResultJsonUnmarshaller(); JsonResponseHandler<StopContactRecordingResult> responseHandler = new JsonResponseHandler<StopContactRecordingResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Ends message streaming on a specified contact. To restart message * streaming on that contact, call the <a href= * "https://docs.aws.amazon.com/connect/latest/APIReference/API_StartContactStreaming.html" * >StartContactStreaming</a> API. * </p> * * @param stopContactStreamingRequest * @return stopContactStreamingResult 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 StopContactStreamingResult stopContactStreaming( StopContactStreamingRequest stopContactStreamingRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(stopContactStreamingRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<StopContactStreamingRequest> request = null; Response<StopContactStreamingResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StopContactStreamingRequestMarshaller() .marshall(stopContactStreamingRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<StopContactStreamingResult, JsonUnmarshallerContext> unmarshaller = new StopContactStreamingResultJsonUnmarshaller(); JsonResponseHandler<StopContactStreamingResult> responseHandler = new JsonResponseHandler<StopContactStreamingResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * 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 (<code>{}</code>) to the question * identifier. * </p> * <p> * If a contact evaluation is already in submitted state, this operation * will trigger a resubmission. * </p> * * @param submitContactEvaluationRequest * @return submitContactEvaluationResult 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 SubmitContactEvaluationResult submitContactEvaluation( SubmitContactEvaluationRequest submitContactEvaluationRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(submitContactEvaluationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<SubmitContactEvaluationRequest> request = null; Response<SubmitContactEvaluationResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SubmitContactEvaluationRequestMarshaller() .marshall(submitContactEvaluationRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<SubmitContactEvaluationResult, JsonUnmarshallerContext> unmarshaller = new SubmitContactEvaluationResultJsonUnmarshaller(); JsonResponseHandler<SubmitContactEvaluationResult> responseHandler = new JsonResponseHandler<SubmitContactEvaluationResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * 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. * </p> * <p> * The period of time that the recording is suspended is filled with silence * in the final recording. * </p> * <p> * Voice and screen recordings are supported. * </p> * * @param suspendContactRecordingRequest * @return suspendContactRecordingResult 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 SuspendContactRecordingResult suspendContactRecording( SuspendContactRecordingRequest suspendContactRecordingRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(suspendContactRecordingRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<SuspendContactRecordingRequest> request = null; Response<SuspendContactRecordingResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SuspendContactRecordingRequestMarshaller() .marshall(suspendContactRecordingRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<SuspendContactRecordingResult, JsonUnmarshallerContext> unmarshaller = new SuspendContactRecordingResultJsonUnmarshaller(); JsonResponseHandler<SuspendContactRecordingResult> responseHandler = new JsonResponseHandler<SuspendContactRecordingResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Adds the specified tags to the specified resource. * </p> * <p> * 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 <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/tagging.html" * >Tagging resources in Amazon Connect</a>. * </p> * <p> * For sample policies that use tags, see <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/security_iam_id-based-policy-examples.html" * >Amazon Connect Identity-Based Policy Examples</a> in the <i>Amazon * Connect Administrator Guide</i>. * </p> * * @param tagResourceRequest * @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 void tagResource(TagResourceRequest tagResourceRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(tagResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<TagResourceRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new TagResourceRequestMarshaller().marshall(tagResourceRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * 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. * </p> * <p> * Note the following requirements: * </p> * <ul> * <li> * <p> * Transfer is supported for only <code>TASK</code> contacts. * </p> * </li> * <li> * <p> * Do not use both <code>QueueId</code> and <code>UserId</code> in the same * call. * </p> * </li> * <li> * <p> * The following flow types are supported: Inbound flow, Transfer to agent * flow, and Transfer to queue flow. * </p> * </li> * <li> * <p> * The <code>TransferContact</code> API can be called only on active * contacts. * </p> * </li> * <li> * <p> * A contact cannot be transferred more than 11 times. * </p> * </li> * </ul> * * @param transferContactRequest * @return transferContactResult 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 TransferContactResult transferContact(TransferContactRequest transferContactRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(transferContactRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<TransferContactRequest> request = null; Response<TransferContactResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new TransferContactRequestMarshaller().marshall(transferContactRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<TransferContactResult, JsonUnmarshallerContext> unmarshaller = new TransferContactResultJsonUnmarshaller(); JsonResponseHandler<TransferContactResult> responseHandler = new JsonResponseHandler<TransferContactResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Removes the specified tags from the specified resource. * </p> * * @param untagResourceRequest * @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 void untagResource(UntagResourceRequest untagResourceRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(untagResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UntagResourceRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UntagResourceRequestMarshaller().marshall(untagResourceRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Updates agent status. * </p> * * @param updateAgentStatusRequest * @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 void updateAgentStatus(UpdateAgentStatusRequest updateAgentStatusRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateAgentStatusRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateAgentStatusRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateAgentStatusRequestMarshaller() .marshall(updateAgentStatusRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * 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. * </p> * <important> * <p> * You can add or update user-defined contact information for both ongoing * and completed contacts. * </p> * </important> * * @param updateContactRequest * @return updateContactResult 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 UpdateContactResult updateContact(UpdateContactRequest updateContactRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateContactRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateContactRequest> request = null; Response<UpdateContactResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateContactRequestMarshaller().marshall(updateContactRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<UpdateContactResult, JsonUnmarshallerContext> unmarshaller = new UpdateContactResultJsonUnmarshaller(); JsonResponseHandler<UpdateContactResult> responseHandler = new JsonResponseHandler<UpdateContactResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Creates or updates user-defined contact attributes associated with the * specified contact. * </p> * <p> * 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. * </p> * <p> * 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 <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#feature-limits" * >Feature specifications</a> in the <i>Amazon Connect Administrator * Guide</i>. * </p> * * @param updateContactAttributesRequest * @return updateContactAttributesResult 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 UpdateContactAttributesResult updateContactAttributes( UpdateContactAttributesRequest updateContactAttributesRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateContactAttributesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateContactAttributesRequest> request = null; Response<UpdateContactAttributesResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateContactAttributesRequestMarshaller() .marshall(updateContactAttributesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<UpdateContactAttributesResult, JsonUnmarshallerContext> unmarshaller = new UpdateContactAttributesResultJsonUnmarshaller(); JsonResponseHandler<UpdateContactAttributesResult> responseHandler = new JsonResponseHandler<UpdateContactAttributesResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * 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 ( * <code>{}</code>) to the question identifier. * </p> * * @param updateContactEvaluationRequest * @return updateContactEvaluationResult 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 UpdateContactEvaluationResult updateContactEvaluation( UpdateContactEvaluationRequest updateContactEvaluationRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateContactEvaluationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateContactEvaluationRequest> request = null; Response<UpdateContactEvaluationResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateContactEvaluationRequestMarshaller() .marshall(updateContactEvaluationRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<UpdateContactEvaluationResult, JsonUnmarshallerContext> unmarshaller = new UpdateContactEvaluationResultJsonUnmarshaller(); JsonResponseHandler<UpdateContactEvaluationResult> responseHandler = new JsonResponseHandler<UpdateContactEvaluationResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Updates the specified flow. * </p> * <p> * You can also create and update flows using the <a href= * "https://docs.aws.amazon.com/connect/latest/APIReference/flow-language.html" * >Amazon Connect Flow language</a>. * </p> * * @param updateContactFlowContentRequest * @return updateContactFlowContentResult 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 UpdateContactFlowContentResult updateContactFlowContent( UpdateContactFlowContentRequest updateContactFlowContentRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateContactFlowContentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateContactFlowContentRequest> request = null; Response<UpdateContactFlowContentResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateContactFlowContentRequestMarshaller() .marshall(updateContactFlowContentRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<UpdateContactFlowContentResult, JsonUnmarshallerContext> unmarshaller = new UpdateContactFlowContentResultJsonUnmarshaller(); JsonResponseHandler<UpdateContactFlowContentResult> responseHandler = new JsonResponseHandler<UpdateContactFlowContentResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Updates metadata about specified flow. * </p> * * @param updateContactFlowMetadataRequest * @return updateContactFlowMetadataResult 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 UpdateContactFlowMetadataResult updateContactFlowMetadata( UpdateContactFlowMetadataRequest updateContactFlowMetadataRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateContactFlowMetadataRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateContactFlowMetadataRequest> request = null; Response<UpdateContactFlowMetadataResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateContactFlowMetadataRequestMarshaller() .marshall(updateContactFlowMetadataRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<UpdateContactFlowMetadataResult, JsonUnmarshallerContext> unmarshaller = new UpdateContactFlowMetadataResultJsonUnmarshaller(); JsonResponseHandler<UpdateContactFlowMetadataResult> responseHandler = new JsonResponseHandler<UpdateContactFlowMetadataResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Updates specified flow module for the specified Amazon Connect instance. * </p> * * @param updateContactFlowModuleContentRequest * @return updateContactFlowModuleContentResult 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 UpdateContactFlowModuleContentResult updateContactFlowModuleContent( UpdateContactFlowModuleContentRequest updateContactFlowModuleContentRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateContactFlowModuleContentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateContactFlowModuleContentRequest> request = null; Response<UpdateContactFlowModuleContentResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateContactFlowModuleContentRequestMarshaller() .marshall(updateContactFlowModuleContentRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<UpdateContactFlowModuleContentResult, JsonUnmarshallerContext> unmarshaller = new UpdateContactFlowModuleContentResultJsonUnmarshaller(); JsonResponseHandler<UpdateContactFlowModuleContentResult> responseHandler = new JsonResponseHandler<UpdateContactFlowModuleContentResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Updates metadata about specified flow module. * </p> * * @param updateContactFlowModuleMetadataRequest * @return updateContactFlowModuleMetadataResult 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 UpdateContactFlowModuleMetadataResult updateContactFlowModuleMetadata( UpdateContactFlowModuleMetadataRequest updateContactFlowModuleMetadataRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateContactFlowModuleMetadataRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateContactFlowModuleMetadataRequest> request = null; Response<UpdateContactFlowModuleMetadataResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateContactFlowModuleMetadataRequestMarshaller() .marshall(updateContactFlowModuleMetadataRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<UpdateContactFlowModuleMetadataResult, JsonUnmarshallerContext> unmarshaller = new UpdateContactFlowModuleMetadataResultJsonUnmarshaller(); JsonResponseHandler<UpdateContactFlowModuleMetadataResult> responseHandler = new JsonResponseHandler<UpdateContactFlowModuleMetadataResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * The name of the flow. * </p> * <p> * You can also create and update flows using the <a href= * "https://docs.aws.amazon.com/connect/latest/APIReference/flow-language.html" * >Amazon Connect Flow language</a>. * </p> * * @param updateContactFlowNameRequest * @return updateContactFlowNameResult 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 UpdateContactFlowNameResult updateContactFlowName( UpdateContactFlowNameRequest updateContactFlowNameRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateContactFlowNameRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateContactFlowNameRequest> request = null; Response<UpdateContactFlowNameResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateContactFlowNameRequestMarshaller() .marshall(updateContactFlowNameRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<UpdateContactFlowNameResult, JsonUnmarshallerContext> unmarshaller = new UpdateContactFlowNameResultJsonUnmarshaller(); JsonResponseHandler<UpdateContactFlowNameResult> responseHandler = new JsonResponseHandler<UpdateContactFlowNameResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Updates the scheduled time of a task contact that is already scheduled. * </p> * * @param updateContactScheduleRequest * @return updateContactScheduleResult 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 UpdateContactScheduleResult updateContactSchedule( UpdateContactScheduleRequest updateContactScheduleRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateContactScheduleRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateContactScheduleRequest> request = null; Response<UpdateContactScheduleResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateContactScheduleRequestMarshaller() .marshall(updateContactScheduleRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<UpdateContactScheduleResult, JsonUnmarshallerContext> unmarshaller = new UpdateContactScheduleResultJsonUnmarshaller(); JsonResponseHandler<UpdateContactScheduleResult> responseHandler = new JsonResponseHandler<UpdateContactScheduleResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * 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. * </p> * <p> * This operation does not support partial updates. Instead it does a full * update of evaluation form content. * </p> * * @param updateEvaluationFormRequest * @return updateEvaluationFormResult 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 UpdateEvaluationFormResult updateEvaluationForm( UpdateEvaluationFormRequest updateEvaluationFormRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateEvaluationFormRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateEvaluationFormRequest> request = null; Response<UpdateEvaluationFormResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateEvaluationFormRequestMarshaller() .marshall(updateEvaluationFormRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<UpdateEvaluationFormResult, JsonUnmarshallerContext> unmarshaller = new UpdateEvaluationFormResultJsonUnmarshaller(); JsonResponseHandler<UpdateEvaluationFormResult> responseHandler = new JsonResponseHandler<UpdateEvaluationFormResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Updates the hours of operation. * </p> * * @param updateHoursOfOperationRequest * @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 void updateHoursOfOperation(UpdateHoursOfOperationRequest updateHoursOfOperationRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateHoursOfOperationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateHoursOfOperationRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateHoursOfOperationRequestMarshaller() .marshall(updateHoursOfOperationRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Updates the value for the specified attribute type. * </p> * * @param updateInstanceAttributeRequest * @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 void updateInstanceAttribute( UpdateInstanceAttributeRequest updateInstanceAttributeRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateInstanceAttributeRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateInstanceAttributeRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateInstanceAttributeRequestMarshaller() .marshall(updateInstanceAttributeRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Updates an existing configuration for a resource type. This API is * idempotent. * </p> * * @param updateInstanceStorageConfigRequest * @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 void updateInstanceStorageConfig( UpdateInstanceStorageConfigRequest updateInstanceStorageConfigRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateInstanceStorageConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateInstanceStorageConfigRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateInstanceStorageConfigRequestMarshaller() .marshall(updateInstanceStorageConfigRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * 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: * </p> * <ul> * <li> * <p> * Customer idle timeout * </p> * </li> * <li> * <p> * Customer auto-disconnect timeout * </p> * </li> * <li> * <p> * Agent idle timeout * </p> * </li> * <li> * <p> * Agent auto-disconnect timeout * </p> * </li> * </ul> * <p> * For more information about how chat timeouts work, see <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/setup-chat-timeouts.html" * >Set up chat timeouts for human participants</a>. * </p> * * @param updateParticipantRoleConfigRequest * @return updateParticipantRoleConfigResult 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 UpdateParticipantRoleConfigResult updateParticipantRoleConfig( UpdateParticipantRoleConfigRequest updateParticipantRoleConfigRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateParticipantRoleConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateParticipantRoleConfigRequest> request = null; Response<UpdateParticipantRoleConfigResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateParticipantRoleConfigRequestMarshaller() .marshall(updateParticipantRoleConfigRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<UpdateParticipantRoleConfigResult, JsonUnmarshallerContext> unmarshaller = new UpdateParticipantRoleConfigResultJsonUnmarshaller(); JsonResponseHandler<UpdateParticipantRoleConfigResult> responseHandler = new JsonResponseHandler<UpdateParticipantRoleConfigResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * 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. * </p> * <important> * <p> * 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. * </p> * <p> * You can call <a href= * "https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribePhoneNumber.html" * >DescribePhoneNumber</a> API to verify the status of a previous <a href= * "https://docs.aws.amazon.com/connect/latest/APIReference/API_UpdatePhoneNumber.html" * >UpdatePhoneNumber</a> operation. * </p> * </important> * * @param updatePhoneNumberRequest * @return updatePhoneNumberResult 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 UpdatePhoneNumberResult updatePhoneNumber( UpdatePhoneNumberRequest updatePhoneNumberRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updatePhoneNumberRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdatePhoneNumberRequest> request = null; Response<UpdatePhoneNumberResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdatePhoneNumberRequestMarshaller() .marshall(updatePhoneNumberRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<UpdatePhoneNumberResult, JsonUnmarshallerContext> unmarshaller = new UpdatePhoneNumberResultJsonUnmarshaller(); JsonResponseHandler<UpdatePhoneNumberResult> responseHandler = new JsonResponseHandler<UpdatePhoneNumberResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Updates a prompt. * </p> * * @param updatePromptRequest * @return updatePromptResult 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 UpdatePromptResult updatePrompt(UpdatePromptRequest updatePromptRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updatePromptRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdatePromptRequest> request = null; Response<UpdatePromptResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdatePromptRequestMarshaller().marshall(updatePromptRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<UpdatePromptResult, JsonUnmarshallerContext> unmarshaller = new UpdatePromptResultJsonUnmarshaller(); JsonResponseHandler<UpdatePromptResult> responseHandler = new JsonResponseHandler<UpdatePromptResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Updates the hours of operation for the specified queue. * </p> * * @param updateQueueHoursOfOperationRequest * @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 void updateQueueHoursOfOperation( UpdateQueueHoursOfOperationRequest updateQueueHoursOfOperationRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateQueueHoursOfOperationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateQueueHoursOfOperationRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateQueueHoursOfOperationRequestMarshaller() .marshall(updateQueueHoursOfOperationRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Updates the maximum number of contacts allowed in a queue before it is * considered full. * </p> * * @param updateQueueMaxContactsRequest * @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 void updateQueueMaxContacts(UpdateQueueMaxContactsRequest updateQueueMaxContactsRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateQueueMaxContactsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateQueueMaxContactsRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateQueueMaxContactsRequestMarshaller() .marshall(updateQueueMaxContactsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Updates the name and description of a queue. At least <code>Name</code> * or <code>Description</code> must be provided. * </p> * * @param updateQueueNameRequest * @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 void updateQueueName(UpdateQueueNameRequest updateQueueNameRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateQueueNameRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateQueueNameRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateQueueNameRequestMarshaller().marshall(updateQueueNameRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Updates the outbound caller ID name, number, and outbound whisper flow * for a specified queue. * </p> * <important> * <p> * 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 * <code>OutboundCallerIdNumberId</code> value of the <a href= * "https://docs.aws.amazon.com/connect/latest/APIReference/API_OutboundCallerConfig" * >OutboundCallerConfig</a> 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 * <code>ResourceNotFoundException</code>. * </p> * </important> * * @param updateQueueOutboundCallerConfigRequest * @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 void updateQueueOutboundCallerConfig( UpdateQueueOutboundCallerConfigRequest updateQueueOutboundCallerConfigRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateQueueOutboundCallerConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateQueueOutboundCallerConfigRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateQueueOutboundCallerConfigRequestMarshaller() .marshall(updateQueueOutboundCallerConfigRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Updates the status of the queue. * </p> * * @param updateQueueStatusRequest * @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 void updateQueueStatus(UpdateQueueStatusRequest updateQueueStatusRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateQueueStatusRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateQueueStatusRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateQueueStatusRequestMarshaller() .marshall(updateQueueStatusRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Updates the configuration settings for the specified quick connect. * </p> * * @param updateQuickConnectConfigRequest * @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 void updateQuickConnectConfig( UpdateQuickConnectConfigRequest updateQuickConnectConfigRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateQuickConnectConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateQuickConnectConfigRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateQuickConnectConfigRequestMarshaller() .marshall(updateQuickConnectConfigRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Updates the name and description of a quick connect. The request accepts * the following data in JSON format. At least <code>Name</code> or * <code>Description</code> must be provided. * </p> * * @param updateQuickConnectNameRequest * @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 void updateQuickConnectName(UpdateQuickConnectNameRequest updateQuickConnectNameRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateQuickConnectNameRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateQuickConnectNameRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateQuickConnectNameRequestMarshaller() .marshall(updateQuickConnectNameRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Updates the channels that agents can handle in the Contact Control Panel * (CCP) for a routing profile. * </p> * * @param updateRoutingProfileConcurrencyRequest * @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 void updateRoutingProfileConcurrency( UpdateRoutingProfileConcurrencyRequest updateRoutingProfileConcurrencyRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateRoutingProfileConcurrencyRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateRoutingProfileConcurrencyRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateRoutingProfileConcurrencyRequestMarshaller() .marshall(updateRoutingProfileConcurrencyRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Updates the default outbound queue of a routing profile. * </p> * * @param updateRoutingProfileDefaultOutboundQueueRequest * @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 void updateRoutingProfileDefaultOutboundQueue( UpdateRoutingProfileDefaultOutboundQueueRequest updateRoutingProfileDefaultOutboundQueueRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateRoutingProfileDefaultOutboundQueueRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateRoutingProfileDefaultOutboundQueueRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateRoutingProfileDefaultOutboundQueueRequestMarshaller() .marshall(updateRoutingProfileDefaultOutboundQueueRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Updates the name and description of a routing profile. The request * accepts the following data in JSON format. At least <code>Name</code> or * <code>Description</code> must be provided. * </p> * * @param updateRoutingProfileNameRequest * @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 void updateRoutingProfileName( UpdateRoutingProfileNameRequest updateRoutingProfileNameRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateRoutingProfileNameRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateRoutingProfileNameRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateRoutingProfileNameRequestMarshaller() .marshall(updateRoutingProfileNameRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Updates the properties associated with a set of queues for a routing * profile. * </p> * * @param updateRoutingProfileQueuesRequest * @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 void updateRoutingProfileQueues( UpdateRoutingProfileQueuesRequest updateRoutingProfileQueuesRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateRoutingProfileQueuesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateRoutingProfileQueuesRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateRoutingProfileQueuesRequestMarshaller() .marshall(updateRoutingProfileQueuesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Updates a rule for the specified Amazon Connect instance. * </p> * <p> * Use the <a href= * "https://docs.aws.amazon.com/connect/latest/APIReference/connect-rules-language.html" * >Rules Function language</a> to code conditions for the rule. * </p> * * @param updateRuleRequest * @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 void updateRule(UpdateRuleRequest updateRuleRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateRuleRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateRuleRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateRuleRequestMarshaller().marshall(updateRuleRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * This API is in preview release for Amazon Connect and is subject to * change. * </p> * <p> * Updates a security profile. * </p> * * @param updateSecurityProfileRequest * @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 void updateSecurityProfile(UpdateSecurityProfileRequest updateSecurityProfileRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateSecurityProfileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateSecurityProfileRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateSecurityProfileRequestMarshaller() .marshall(updateSecurityProfileRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * 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. * </p> * * @param updateTaskTemplateRequest * @return updateTaskTemplateResult 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 UpdateTaskTemplateResult updateTaskTemplate( UpdateTaskTemplateRequest updateTaskTemplateRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateTaskTemplateRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateTaskTemplateRequest> request = null; Response<UpdateTaskTemplateResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateTaskTemplateRequestMarshaller() .marshall(updateTaskTemplateRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<UpdateTaskTemplateResult, JsonUnmarshallerContext> unmarshaller = new UpdateTaskTemplateResultJsonUnmarshaller(); JsonResponseHandler<UpdateTaskTemplateResult> responseHandler = new JsonResponseHandler<UpdateTaskTemplateResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Updates the traffic distribution for a given traffic distribution group. * </p> * <p> * For more information about updating a traffic distribution group, see <a * href= * "https://docs.aws.amazon.com/connect/latest/adminguide/update-telephony-traffic-distribution.html" * >Update telephony traffic distribution across Amazon Web Services Regions * </a> in the <i>Amazon Connect Administrator Guide</i>. * </p> * * @param updateTrafficDistributionRequest * @return updateTrafficDistributionResult 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 UpdateTrafficDistributionResult updateTrafficDistribution( UpdateTrafficDistributionRequest updateTrafficDistributionRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateTrafficDistributionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateTrafficDistributionRequest> request = null; Response<UpdateTrafficDistributionResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateTrafficDistributionRequestMarshaller() .marshall(updateTrafficDistributionRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } Unmarshaller<UpdateTrafficDistributionResult, JsonUnmarshallerContext> unmarshaller = new UpdateTrafficDistributionResultJsonUnmarshaller(); JsonResponseHandler<UpdateTrafficDistributionResult> responseHandler = new JsonResponseHandler<UpdateTrafficDistributionResult>( unmarshaller); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Assigns the specified hierarchy group to the specified user. * </p> * * @param updateUserHierarchyRequest * @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 void updateUserHierarchy(UpdateUserHierarchyRequest updateUserHierarchyRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateUserHierarchyRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateUserHierarchyRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateUserHierarchyRequestMarshaller() .marshall(updateUserHierarchyRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Updates the name of the user hierarchy group. * </p> * * @param updateUserHierarchyGroupNameRequest * @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 void updateUserHierarchyGroupName( UpdateUserHierarchyGroupNameRequest updateUserHierarchyGroupNameRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateUserHierarchyGroupNameRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateUserHierarchyGroupNameRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateUserHierarchyGroupNameRequestMarshaller() .marshall(updateUserHierarchyGroupNameRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Updates the user hierarchy structure: add, remove, and rename user * hierarchy levels. * </p> * * @param updateUserHierarchyStructureRequest * @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 void updateUserHierarchyStructure( UpdateUserHierarchyStructureRequest updateUserHierarchyStructureRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateUserHierarchyStructureRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateUserHierarchyStructureRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateUserHierarchyStructureRequestMarshaller() .marshall(updateUserHierarchyStructureRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Updates the identity information for the specified user. * </p> * <important> * <p> * We strongly recommend limiting who has the ability to invoke * <code>UpdateUserIdentityInfo</code>. 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 <a href= * "https://docs.aws.amazon.com/connect/latest/adminguide/security-profile-best-practices.html" * >Best Practices for Security Profiles</a> in the <i>Amazon Connect * Administrator Guide</i>. * </p> * </important> * * @param updateUserIdentityInfoRequest * @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 void updateUserIdentityInfo(UpdateUserIdentityInfoRequest updateUserIdentityInfoRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateUserIdentityInfoRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateUserIdentityInfoRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateUserIdentityInfoRequestMarshaller() .marshall(updateUserIdentityInfoRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Updates the phone configuration settings for the specified user. * </p> * * @param updateUserPhoneConfigRequest * @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 void updateUserPhoneConfig(UpdateUserPhoneConfigRequest updateUserPhoneConfigRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateUserPhoneConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateUserPhoneConfigRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateUserPhoneConfigRequestMarshaller() .marshall(updateUserPhoneConfigRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Assigns the specified routing profile to the specified user. * </p> * * @param updateUserRoutingProfileRequest * @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 void updateUserRoutingProfile( UpdateUserRoutingProfileRequest updateUserRoutingProfileRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateUserRoutingProfileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateUserRoutingProfileRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateUserRoutingProfileRequestMarshaller() .marshall(updateUserRoutingProfileRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * <p> * Assigns the specified security profiles to the specified user. * </p> * * @param updateUserSecurityProfilesRequest * @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 void updateUserSecurityProfiles( UpdateUserSecurityProfilesRequest updateUserSecurityProfilesRequest) throws AmazonServiceException, AmazonClientException { ExecutionContext executionContext = createExecutionContext(updateUserSecurityProfilesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<UpdateUserSecurityProfilesRequest> request = null; Response<Void> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateUserSecurityProfilesRequestMarshaller() .marshall(updateUserSecurityProfilesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null); invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); } } /** * Returns additional metadata for a previously executed successful, * request, typically used for debugging issues where a service isn't acting * as expected. This data isn't considered part of the result data returned * by an operation, so it's available through this separate, diagnostic * interface. * <p> * Response metadata is only cached for a limited period of time, so if you * need to access this extra diagnostic information for an executed request, * you should use this method to retrieve it as soon as possible after * executing the request. * * @param request The originally executed request * @return The response metadata for the specified request, or null if none * is available. * @deprecated ResponseMetadata cache can hold up to 50 requests and * responses in memory and will cause memory issue. This method * now always returns null. */ @Deprecated public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) { return client.getResponseMetadataForRequest(request); } private <X, Y extends AmazonWebServiceRequest> Response<X> invoke(Request<Y> request, HttpResponseHandler<AmazonWebServiceResponse<X>> responseHandler, ExecutionContext executionContext) { request.setEndpoint(endpoint); request.setTimeOffset(timeOffset); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); AWSCredentials credentials; awsRequestMetrics.startEvent(Field.CredentialsRequestTime); try { credentials = awsCredentialsProvider.getCredentials(); } finally { awsRequestMetrics.endEvent(Field.CredentialsRequestTime); } AmazonWebServiceRequest originalRequest = request.getOriginalRequest(); if (originalRequest != null && originalRequest.getRequestCredentials() != null) { credentials = originalRequest.getRequestCredentials(); } executionContext.setCredentials(credentials); JsonErrorResponseHandler errorResponseHandler = new JsonErrorResponseHandler( jsonErrorUnmarshallers); Response<X> result = client.execute(request, responseHandler, errorResponseHandler, executionContext); return result; } }