Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2015 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.cloudsearchv2;
  
  
  
Asynchronous client for accessing AmazonCloudSearchv2. All asynchronous calls made using this client are non-blocking. Callers could either process the result and handle the exceptions in the worker thread by providing a callback handler when making the call, or use the returned Future object to check the result of the call in the calling thread. Amazon CloudSearch Configuration Service

You use the Amazon CloudSearch configuration service to create, configure, and manage search domains. Configuration service requests are submitted using the AWS Query protocol. AWS Query requests are HTTP or HTTPS requests submitted via HTTP GET or POST with a query parameter named Action.

The endpoint for configuration service requests is region-specific: cloudsearch. region .amazonaws.com. For example, cloudsearch.us-east-1.amazonaws.com. For a current list of supported regions and endpoints, see Regions and Endpoints .

  
          implements AmazonCloudSearchAsync {

    
Executor service for executing asynchronous requests.
  
      private ExecutorService executorService;
  
      private static final int DEFAULT_THREAD_POOL_SIZE = 50;

    
Constructs a new asynchronous client to invoke service methods on AmazonCloudSearchv2. A credentials provider chain will be used that searches for credentials in this order:
  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • Instance profile credentials delivered through the Amazon EC2 metadata service

All service calls made using this new client object are blocking, and will not return until the service call completes.

  
      public AmazonCloudSearchAsyncClient() {
          this(new DefaultAWSCredentialsProviderChain());
      }

    
Constructs a new asynchronous client to invoke service methods on AmazonCloudSearchv2. A credentials provider chain will be used that searches for credentials in this order:
  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • Instance profile credentials delivered through the Amazon EC2 metadata service

All service calls made using this new client object are blocking, and will not return until the service call completes.

Parameters:
clientConfiguration The client configuration options controlling how this client connects to AmazonCloudSearchv2 (ex: proxy settings, retry counts, etc.).
See also:
com.amazonaws.auth.DefaultAWSCredentialsProviderChain
 
     public AmazonCloudSearchAsyncClient(ClientConfiguration clientConfiguration) {
         this(new DefaultAWSCredentialsProviderChain(), clientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCloudSearchv2 using the specified AWS account credentials. Default client settings will be used, and a fixed size thread pool will be created for executing the asynchronous tasks.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
 
     public AmazonCloudSearchAsyncClient(AWSCredentials awsCredentials) {
         this(awsCredentials, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCloudSearchv2 using the specified AWS account credentials and executor service. Default client settings will be used.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
executorService The executor service by which all asynchronous requests will be executed.
 
     public AmazonCloudSearchAsyncClient(AWSCredentials awsCredentialsExecutorService executorService) {
         super(awsCredentials);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCloudSearchv2 using the specified AWS account credentials, executor service, and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
clientConfiguration Client configuration options (ex: max retry limit, proxy settings, etc).
executorService The executor service by which all asynchronous requests will be executed.
 
     public AmazonCloudSearchAsyncClient(AWSCredentials awsCredentials,
                 ClientConfiguration clientConfigurationExecutorService executorService) {
         super(awsCredentialsclientConfiguration);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCloudSearchv2 using the specified AWS account credentials provider. Default client settings will be used, and a fixed size thread pool will be created for executing the asynchronous tasks.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
 
     public AmazonCloudSearchAsyncClient(AWSCredentialsProvider awsCredentialsProvider) {
         this(awsCredentialsProvider, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCloudSearchv2 using the specified AWS account credentials provider and executor service. Default client settings will be used.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
executorService The executor service by which all asynchronous requests will be executed.
 
     public AmazonCloudSearchAsyncClient(AWSCredentialsProvider awsCredentialsProviderExecutorService executorService) {
         this(awsCredentialsProvidernew ClientConfiguration(), executorService);
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCloudSearchv2 using the specified AWS account credentials provider and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration Client configuration options (ex: max retry limit, proxy settings, etc).
 
     public AmazonCloudSearchAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                 ClientConfiguration clientConfiguration) {
         this(awsCredentialsProviderclientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCloudSearchv2 using the specified AWS account credentials provider, executor service, and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration Client configuration options (ex: max retry limit, proxy settings, etc).
executorService The executor service by which all asynchronous requests will be executed.
 
     public AmazonCloudSearchAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                 ClientConfiguration clientConfigurationExecutorService executorService) {
         super(awsCredentialsProviderclientConfiguration);
         this. = executorService;
     }

    
Returns the executor service used by this async client to execute requests.

Returns:
The executor service used by this async client to execute requests.
 
     public ExecutorService getExecutorService() {
         return ;
     }

    
Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should call getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to calling this method.
 
     @Override
     public void shutdown() {
         super.shutdown();
         .shutdownNow();
     }
            
    

Gets the analysis schemes configured for a domain. An analysis scheme defines language-specific text processing options for a text field. Can be limited to specific analysis schemes by name. By default, shows all analysis schemes and includes any pending changes to the configuration. Set the Deployed option to true to show the active configuration and exclude pending changes. For more information, see Configuring Analysis Schemes in the Amazon CloudSearch Developer Guide .

Parameters:
describeAnalysisSchemesRequest Container for the necessary parameters to execute the DescribeAnalysisSchemes operation on AmazonCloudSearchv2.
Returns:
A Java Future object containing the response from the DescribeAnalysisSchemes service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
 
     public Future<DescribeAnalysisSchemesResultdescribeAnalysisSchemesAsync(final DescribeAnalysisSchemesRequest describeAnalysisSchemesRequest
             throws AmazonServiceExceptionAmazonClientException {
             public DescribeAnalysisSchemesResult call() throws Exception {
                 return describeAnalysisSchemes(describeAnalysisSchemesRequest);
         }
     });
     }

    

Gets the analysis schemes configured for a domain. An analysis scheme defines language-specific text processing options for a text field. Can be limited to specific analysis schemes by name. By default, shows all analysis schemes and includes any pending changes to the configuration. Set the Deployed option to true to show the active configuration and exclude pending changes. For more information, see Configuring Analysis Schemes in the Amazon CloudSearch Developer Guide .

Parameters:
describeAnalysisSchemesRequest Container for the necessary parameters to execute the DescribeAnalysisSchemes operation on AmazonCloudSearchv2.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeAnalysisSchemes service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
 
             final DescribeAnalysisSchemesRequest describeAnalysisSchemesRequest,
             final AsyncHandler<DescribeAnalysisSchemesRequestDescribeAnalysisSchemesResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
             public DescribeAnalysisSchemesResult call() throws Exception {
               DescribeAnalysisSchemesResult result;
                 try {
                 result = describeAnalysisSchemes(describeAnalysisSchemesRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(describeAnalysisSchemesRequestresult);
                  return result;
         }
     });
     }
    
    

Removes an IndexField from the search domain. For more information, see Configuring Index Fields in the Amazon CloudSearch Developer Guide .

Parameters:
deleteIndexFieldRequest Container for the necessary parameters to execute the DeleteIndexField operation on AmazonCloudSearchv2.
Returns:
A Java Future object containing the response from the DeleteIndexField service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
 
     public Future<DeleteIndexFieldResultdeleteIndexFieldAsync(final DeleteIndexFieldRequest deleteIndexFieldRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DeleteIndexFieldResult>() {
             public DeleteIndexFieldResult call() throws Exception {
                 return deleteIndexField(deleteIndexFieldRequest);
         }
     });
     }

    

Removes an IndexField from the search domain. For more information, see Configuring Index Fields in the Amazon CloudSearch Developer Guide .

Parameters:
deleteIndexFieldRequest Container for the necessary parameters to execute the DeleteIndexField operation on AmazonCloudSearchv2.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteIndexField service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
 
             final DeleteIndexFieldRequest deleteIndexFieldRequest,
             final AsyncHandler<DeleteIndexFieldRequestDeleteIndexFieldResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DeleteIndexFieldResult>() {
             public DeleteIndexFieldResult call() throws Exception {
               DeleteIndexFieldResult result;
                 try {
                 result = deleteIndexField(deleteIndexFieldRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(deleteIndexFieldRequestresult);
                  return result;
         }
     });
     }
    
    

Configures the availability options for a domain. Enabling the Multi-AZ option expands an Amazon CloudSearch domain to an additional Availability Zone in the same Region to increase fault tolerance in the event of a service disruption. Changes to the Multi-AZ option can take about half an hour to become active. For more information, see Configuring Availability Options in the Amazon CloudSearch Developer Guide .

Parameters:
updateAvailabilityOptionsRequest Container for the necessary parameters to execute the UpdateAvailabilityOptions operation on AmazonCloudSearchv2.
Returns:
A Java Future object containing the response from the UpdateAvailabilityOptions service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
 
             throws AmazonServiceExceptionAmazonClientException {
             public UpdateAvailabilityOptionsResult call() throws Exception {
                 return updateAvailabilityOptions(updateAvailabilityOptionsRequest);
         }
     });
     }

    

Configures the availability options for a domain. Enabling the Multi-AZ option expands an Amazon CloudSearch domain to an additional Availability Zone in the same Region to increase fault tolerance in the event of a service disruption. Changes to the Multi-AZ option can take about half an hour to become active. For more information, see Configuring Availability Options in the Amazon CloudSearch Developer Guide .

Parameters:
updateAvailabilityOptionsRequest Container for the necessary parameters to execute the UpdateAvailabilityOptions operation on AmazonCloudSearchv2.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the UpdateAvailabilityOptions service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
 
             final UpdateAvailabilityOptionsRequest updateAvailabilityOptionsRequest,
             final AsyncHandler<UpdateAvailabilityOptionsRequestUpdateAvailabilityOptionsResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
             public UpdateAvailabilityOptionsResult call() throws Exception {
               UpdateAvailabilityOptionsResult result;
                 try {
                 result = updateAvailabilityOptions(updateAvailabilityOptionsRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(updateAvailabilityOptionsRequestresult);
                  return result;
         }
     });
     }
    
    

Gets information about the index fields configured for the search domain. Can be limited to specific fields by name. By default, shows all fields and includes any pending changes to the configuration. Set the Deployed option to true to show the active configuration and exclude pending changes. For more information, see Getting Domain Information in the Amazon CloudSearch Developer Guide .

Parameters:
describeIndexFieldsRequest Container for the necessary parameters to execute the DescribeIndexFields operation on AmazonCloudSearchv2.
Returns:
A Java Future object containing the response from the DescribeIndexFields service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
 
     public Future<DescribeIndexFieldsResultdescribeIndexFieldsAsync(final DescribeIndexFieldsRequest describeIndexFieldsRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DescribeIndexFieldsResult>() {
             public DescribeIndexFieldsResult call() throws Exception {
                 return describeIndexFields(describeIndexFieldsRequest);
         }
     });
     }

    

Gets information about the index fields configured for the search domain. Can be limited to specific fields by name. By default, shows all fields and includes any pending changes to the configuration. Set the Deployed option to true to show the active configuration and exclude pending changes. For more information, see Getting Domain Information in the Amazon CloudSearch Developer Guide .

Parameters:
describeIndexFieldsRequest Container for the necessary parameters to execute the DescribeIndexFields operation on AmazonCloudSearchv2.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeIndexFields service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
 
             final DescribeIndexFieldsRequest describeIndexFieldsRequest,
             final AsyncHandler<DescribeIndexFieldsRequestDescribeIndexFieldsResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DescribeIndexFieldsResult>() {
             public DescribeIndexFieldsResult call() throws Exception {
               DescribeIndexFieldsResult result;
                 try {
                 result = describeIndexFields(describeIndexFieldsRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(describeIndexFieldsRequestresult);
                  return result;
         }
     });
     }
    
    

Configures an Expression for the search domain. Used to create new expressions and modify existing ones. If the expression exists, the new configuration replaces the old one. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide .

Parameters:
defineExpressionRequest Container for the necessary parameters to execute the DefineExpression operation on AmazonCloudSearchv2.
Returns:
A Java Future object containing the response from the DefineExpression service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
 
     public Future<DefineExpressionResultdefineExpressionAsync(final DefineExpressionRequest defineExpressionRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DefineExpressionResult>() {
             public DefineExpressionResult call() throws Exception {
                 return defineExpression(defineExpressionRequest);
         }
     });
     }

    

Configures an Expression for the search domain. Used to create new expressions and modify existing ones. If the expression exists, the new configuration replaces the old one. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide .

Parameters:
defineExpressionRequest Container for the necessary parameters to execute the DefineExpression operation on AmazonCloudSearchv2.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DefineExpression service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
 
             final DefineExpressionRequest defineExpressionRequest,
             final AsyncHandler<DefineExpressionRequestDefineExpressionResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DefineExpressionResult>() {
             public DefineExpressionResult call() throws Exception {
               DefineExpressionResult result;
                 try {
                 result = defineExpression(defineExpressionRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(defineExpressionRequestresult);
                  return result;
         }
     });
     }
    
    

Configures the access rules that control access to the domain's document and search endpoints. For more information, see Configuring Access for an Amazon CloudSearch Domain .

Parameters:
updateServiceAccessPoliciesRequest Container for the necessary parameters to execute the UpdateServiceAccessPolicies operation on AmazonCloudSearchv2.
Returns:
A Java Future object containing the response from the UpdateServiceAccessPolicies service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
 
             throws AmazonServiceExceptionAmazonClientException {
             public UpdateServiceAccessPoliciesResult call() throws Exception {
                 return updateServiceAccessPolicies(updateServiceAccessPoliciesRequest);
         }
     });
     }

    

Configures the access rules that control access to the domain's document and search endpoints. For more information, see Configuring Access for an Amazon CloudSearch Domain .

Parameters:
updateServiceAccessPoliciesRequest Container for the necessary parameters to execute the UpdateServiceAccessPolicies operation on AmazonCloudSearchv2.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the UpdateServiceAccessPolicies service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
 
             final UpdateServiceAccessPoliciesRequest updateServiceAccessPoliciesRequest,
                     throws AmazonServiceExceptionAmazonClientException {
             public UpdateServiceAccessPoliciesResult call() throws Exception {
               UpdateServiceAccessPoliciesResult result;
                 try {
                 result = updateServiceAccessPolicies(updateServiceAccessPoliciesRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(updateServiceAccessPoliciesRequestresult);
                  return result;
         }
     });
     }
    
    

Configures a suggester for a domain. A suggester enables you to display possible matches before users finish typing their queries. When you configure a suggester, you must specify the name of the text field you want to search for possible matches and a unique name for the suggester. For more information, see Getting Search Suggestions in the Amazon CloudSearch Developer Guide .

Parameters:
defineSuggesterRequest Container for the necessary parameters to execute the DefineSuggester operation on AmazonCloudSearchv2.
Returns:
A Java Future object containing the response from the DefineSuggester service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
 
     public Future<DefineSuggesterResultdefineSuggesterAsync(final DefineSuggesterRequest defineSuggesterRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DefineSuggesterResult>() {
             public DefineSuggesterResult call() throws Exception {
                 return defineSuggester(defineSuggesterRequest);
         }
     });
     }

    

Configures a suggester for a domain. A suggester enables you to display possible matches before users finish typing their queries. When you configure a suggester, you must specify the name of the text field you want to search for possible matches and a unique name for the suggester. For more information, see Getting Search Suggestions in the Amazon CloudSearch Developer Guide .

Parameters:
defineSuggesterRequest Container for the necessary parameters to execute the DefineSuggester operation on AmazonCloudSearchv2.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DefineSuggester service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
 
             final DefineSuggesterRequest defineSuggesterRequest,
             final AsyncHandler<DefineSuggesterRequestDefineSuggesterResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DefineSuggesterResult>() {
             public DefineSuggesterResult call() throws Exception {
               DefineSuggesterResult result;
                 try {
                 result = defineSuggester(defineSuggesterRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(defineSuggesterRequestresult);
                  return result;
         }
     });
     }
    
    

Deletes an analysis scheme. For more information, see Configuring Analysis Schemes in the Amazon CloudSearch Developer Guide .

Parameters:
deleteAnalysisSchemeRequest Container for the necessary parameters to execute the DeleteAnalysisScheme operation on AmazonCloudSearchv2.
Returns:
A Java Future object containing the response from the DeleteAnalysisScheme service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
 
     public Future<DeleteAnalysisSchemeResultdeleteAnalysisSchemeAsync(final DeleteAnalysisSchemeRequest deleteAnalysisSchemeRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DeleteAnalysisSchemeResult>() {
             public DeleteAnalysisSchemeResult call() throws Exception {
                 return deleteAnalysisScheme(deleteAnalysisSchemeRequest);
         }
     });
     }

    

Deletes an analysis scheme. For more information, see Configuring Analysis Schemes in the Amazon CloudSearch Developer Guide .

Parameters:
deleteAnalysisSchemeRequest Container for the necessary parameters to execute the DeleteAnalysisScheme operation on AmazonCloudSearchv2.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteAnalysisScheme service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
 
             final DeleteAnalysisSchemeRequest deleteAnalysisSchemeRequest,
             final AsyncHandler<DeleteAnalysisSchemeRequestDeleteAnalysisSchemeResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DeleteAnalysisSchemeResult>() {
             public DeleteAnalysisSchemeResult call() throws Exception {
               DeleteAnalysisSchemeResult result;
                 try {
                 result = deleteAnalysisScheme(deleteAnalysisSchemeRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(deleteAnalysisSchemeRequestresult);
                  return result;
         }
     });
     }
    
    

Tells the search domain to start indexing its documents using the latest indexing options. This operation must be invoked to activate options whose OptionStatus is RequiresIndexDocuments .

Parameters:
indexDocumentsRequest Container for the necessary parameters to execute the IndexDocuments operation on AmazonCloudSearchv2.
Returns:
A Java Future object containing the response from the IndexDocuments service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
 
     public Future<IndexDocumentsResultindexDocumentsAsync(final IndexDocumentsRequest indexDocumentsRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<IndexDocumentsResult>() {
             public IndexDocumentsResult call() throws Exception {
                 return indexDocuments(indexDocumentsRequest);
         }
     });
     }

    

Tells the search domain to start indexing its documents using the latest indexing options. This operation must be invoked to activate options whose OptionStatus is RequiresIndexDocuments .

Parameters:
indexDocumentsRequest Container for the necessary parameters to execute the IndexDocuments operation on AmazonCloudSearchv2.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the IndexDocuments service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
            final IndexDocumentsRequest indexDocumentsRequest,
            final AsyncHandler<IndexDocumentsRequestIndexDocumentsResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<IndexDocumentsResult>() {
            public IndexDocumentsResult call() throws Exception {
              IndexDocumentsResult result;
                try {
                result = indexDocuments(indexDocumentsRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(indexDocumentsRequestresult);
                 return result;
        }
    });
    }
    
    

Gets the suggesters configured for a domain. A suggester enables you to display possible matches before users finish typing their queries. Can be limited to specific suggesters by name. By default, shows all suggesters and includes any pending changes to the configuration. Set the Deployed option to true to show the active configuration and exclude pending changes. For more information, see Getting Search Suggestions in the Amazon CloudSearch Developer Guide .

Parameters:
describeSuggestersRequest Container for the necessary parameters to execute the DescribeSuggesters operation on AmazonCloudSearchv2.
Returns:
A Java Future object containing the response from the DescribeSuggesters service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
    public Future<DescribeSuggestersResultdescribeSuggestersAsync(final DescribeSuggestersRequest describeSuggestersRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DescribeSuggestersResult>() {
            public DescribeSuggestersResult call() throws Exception {
                return describeSuggesters(describeSuggestersRequest);
        }
    });
    }

    

Gets the suggesters configured for a domain. A suggester enables you to display possible matches before users finish typing their queries. Can be limited to specific suggesters by name. By default, shows all suggesters and includes any pending changes to the configuration. Set the Deployed option to true to show the active configuration and exclude pending changes. For more information, see Getting Search Suggestions in the Amazon CloudSearch Developer Guide .

Parameters:
describeSuggestersRequest Container for the necessary parameters to execute the DescribeSuggesters operation on AmazonCloudSearchv2.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeSuggesters service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
            final DescribeSuggestersRequest describeSuggestersRequest,
            final AsyncHandler<DescribeSuggestersRequestDescribeSuggestersResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DescribeSuggestersResult>() {
            public DescribeSuggestersResult call() throws Exception {
              DescribeSuggestersResult result;
                try {
                result = describeSuggesters(describeSuggestersRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeSuggestersRequestresult);
                 return result;
        }
    });
    }
    
    

Configures scaling parameters for a domain. A domain's scaling parameters specify the desired search instance type and replication count. Amazon CloudSearch will still automatically scale your domain based on the volume of data and traffic, but not below the desired instance type and replication count. If the Multi-AZ option is enabled, these values control the resources used per Availability Zone. For more information, see Configuring Scaling Options in the Amazon CloudSearch Developer Guide .

Parameters:
updateScalingParametersRequest Container for the necessary parameters to execute the UpdateScalingParameters operation on AmazonCloudSearchv2.
Returns:
A Java Future object containing the response from the UpdateScalingParameters service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public UpdateScalingParametersResult call() throws Exception {
                return updateScalingParameters(updateScalingParametersRequest);
        }
    });
    }

    

Configures scaling parameters for a domain. A domain's scaling parameters specify the desired search instance type and replication count. Amazon CloudSearch will still automatically scale your domain based on the volume of data and traffic, but not below the desired instance type and replication count. If the Multi-AZ option is enabled, these values control the resources used per Availability Zone. For more information, see Configuring Scaling Options in the Amazon CloudSearch Developer Guide .

Parameters:
updateScalingParametersRequest Container for the necessary parameters to execute the UpdateScalingParameters operation on AmazonCloudSearchv2.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the UpdateScalingParameters service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
            final UpdateScalingParametersRequest updateScalingParametersRequest,
            final AsyncHandler<UpdateScalingParametersRequestUpdateScalingParametersResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public UpdateScalingParametersResult call() throws Exception {
              UpdateScalingParametersResult result;
                try {
                result = updateScalingParameters(updateScalingParametersRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(updateScalingParametersRequestresult);
                 return result;
        }
    });
    }
    
    

Lists all search domains owned by an account.

Parameters:
listDomainNamesRequest Container for the necessary parameters to execute the ListDomainNames operation on AmazonCloudSearchv2.
Returns:
A Java Future object containing the response from the ListDomainNames service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
    public Future<ListDomainNamesResultlistDomainNamesAsync(final ListDomainNamesRequest listDomainNamesRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ListDomainNamesResult>() {
            public ListDomainNamesResult call() throws Exception {
                return listDomainNames(listDomainNamesRequest);
        }
    });
    }

    

Lists all search domains owned by an account.

Parameters:
listDomainNamesRequest Container for the necessary parameters to execute the ListDomainNames operation on AmazonCloudSearchv2.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ListDomainNames service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
            final ListDomainNamesRequest listDomainNamesRequest,
            final AsyncHandler<ListDomainNamesRequestListDomainNamesResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ListDomainNamesResult>() {
            public ListDomainNamesResult call() throws Exception {
              ListDomainNamesResult result;
                try {
                result = listDomainNames(listDomainNamesRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(listDomainNamesRequestresult);
                 return result;
        }
    });
    }
    
    

Configures an IndexField for the search domain. Used to create new fields and modify existing ones. You must specify the name of the domain you are configuring and an index field configuration. The index field configuration specifies a unique name, the index field type, and the options you want to configure for the field. The options you can specify depend on the IndexFieldType . If the field exists, the new configuration replaces the old one. For more information, see Configuring Index Fields in the Amazon CloudSearch Developer Guide .

Parameters:
defineIndexFieldRequest Container for the necessary parameters to execute the DefineIndexField operation on AmazonCloudSearchv2.
Returns:
A Java Future object containing the response from the DefineIndexField service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
    public Future<DefineIndexFieldResultdefineIndexFieldAsync(final DefineIndexFieldRequest defineIndexFieldRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DefineIndexFieldResult>() {
            public DefineIndexFieldResult call() throws Exception {
                return defineIndexField(defineIndexFieldRequest);
        }
    });
    }

    

Configures an IndexField for the search domain. Used to create new fields and modify existing ones. You must specify the name of the domain you are configuring and an index field configuration. The index field configuration specifies a unique name, the index field type, and the options you want to configure for the field. The options you can specify depend on the IndexFieldType . If the field exists, the new configuration replaces the old one. For more information, see Configuring Index Fields in the Amazon CloudSearch Developer Guide .

Parameters:
defineIndexFieldRequest Container for the necessary parameters to execute the DefineIndexField operation on AmazonCloudSearchv2.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DefineIndexField service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
            final DefineIndexFieldRequest defineIndexFieldRequest,
            final AsyncHandler<DefineIndexFieldRequestDefineIndexFieldResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DefineIndexFieldResult>() {
            public DefineIndexFieldResult call() throws Exception {
              DefineIndexFieldResult result;
                try {
                result = defineIndexField(defineIndexFieldRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(defineIndexFieldRequestresult);
                 return result;
        }
    });
    }
    
    

Creates a new search domain. For more information, see Creating a Search Domain in the Amazon CloudSearch Developer Guide .

Parameters:
createDomainRequest Container for the necessary parameters to execute the CreateDomain operation on AmazonCloudSearchv2.
Returns:
A Java Future object containing the response from the CreateDomain service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
    public Future<CreateDomainResultcreateDomainAsync(final CreateDomainRequest createDomainRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<CreateDomainResult>() {
            public CreateDomainResult call() throws Exception {
                return createDomain(createDomainRequest);
        }
    });
    }

    

Creates a new search domain. For more information, see Creating a Search Domain in the Amazon CloudSearch Developer Guide .

Parameters:
createDomainRequest Container for the necessary parameters to execute the CreateDomain operation on AmazonCloudSearchv2.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateDomain service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
            final CreateDomainRequest createDomainRequest,
            final AsyncHandler<CreateDomainRequestCreateDomainResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<CreateDomainResult>() {
            public CreateDomainResult call() throws Exception {
              CreateDomainResult result;
                try {
                result = createDomain(createDomainRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(createDomainRequestresult);
                 return result;
        }
    });
    }
    
    

Deletes a suggester. For more information, see Getting Search Suggestions in the Amazon CloudSearch Developer Guide .

Parameters:
deleteSuggesterRequest Container for the necessary parameters to execute the DeleteSuggester operation on AmazonCloudSearchv2.
Returns:
A Java Future object containing the response from the DeleteSuggester service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
    public Future<DeleteSuggesterResultdeleteSuggesterAsync(final DeleteSuggesterRequest deleteSuggesterRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DeleteSuggesterResult>() {
            public DeleteSuggesterResult call() throws Exception {
                return deleteSuggester(deleteSuggesterRequest);
        }
    });
    }

    

Deletes a suggester. For more information, see Getting Search Suggestions in the Amazon CloudSearch Developer Guide .

Parameters:
deleteSuggesterRequest Container for the necessary parameters to execute the DeleteSuggester operation on AmazonCloudSearchv2.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteSuggester service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
            final DeleteSuggesterRequest deleteSuggesterRequest,
            final AsyncHandler<DeleteSuggesterRequestDeleteSuggesterResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DeleteSuggesterResult>() {
            public DeleteSuggesterResult call() throws Exception {
              DeleteSuggesterResult result;
                try {
                result = deleteSuggester(deleteSuggesterRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(deleteSuggesterRequestresult);
                 return result;
        }
    });
    }
    
    

Removes an Expression from the search domain. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide .

Parameters:
deleteExpressionRequest Container for the necessary parameters to execute the DeleteExpression operation on AmazonCloudSearchv2.
Returns:
A Java Future object containing the response from the DeleteExpression service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
    public Future<DeleteExpressionResultdeleteExpressionAsync(final DeleteExpressionRequest deleteExpressionRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DeleteExpressionResult>() {
            public DeleteExpressionResult call() throws Exception {
                return deleteExpression(deleteExpressionRequest);
        }
    });
    }

    

Removes an Expression from the search domain. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide .

Parameters:
deleteExpressionRequest Container for the necessary parameters to execute the DeleteExpression operation on AmazonCloudSearchv2.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteExpression service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
            final DeleteExpressionRequest deleteExpressionRequest,
            final AsyncHandler<DeleteExpressionRequestDeleteExpressionResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DeleteExpressionResult>() {
            public DeleteExpressionResult call() throws Exception {
              DeleteExpressionResult result;
                try {
                result = deleteExpression(deleteExpressionRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(deleteExpressionRequestresult);
                 return result;
        }
    });
    }
    
    

Gets the availability options configured for a domain. By default, shows the configuration with any pending changes. Set the Deployed option to true to show the active configuration and exclude pending changes. For more information, see Configuring Availability Options in the Amazon CloudSearch Developer Guide .

Parameters:
describeAvailabilityOptionsRequest Container for the necessary parameters to execute the DescribeAvailabilityOptions operation on AmazonCloudSearchv2.
Returns:
A Java Future object containing the response from the DescribeAvailabilityOptions service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public DescribeAvailabilityOptionsResult call() throws Exception {
                return describeAvailabilityOptions(describeAvailabilityOptionsRequest);
        }
    });
    }

    

Gets the availability options configured for a domain. By default, shows the configuration with any pending changes. Set the Deployed option to true to show the active configuration and exclude pending changes. For more information, see Configuring Availability Options in the Amazon CloudSearch Developer Guide .

Parameters:
describeAvailabilityOptionsRequest Container for the necessary parameters to execute the DescribeAvailabilityOptions operation on AmazonCloudSearchv2.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeAvailabilityOptions service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
            final DescribeAvailabilityOptionsRequest describeAvailabilityOptionsRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public DescribeAvailabilityOptionsResult call() throws Exception {
              DescribeAvailabilityOptionsResult result;
                try {
                result = describeAvailabilityOptions(describeAvailabilityOptionsRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeAvailabilityOptionsRequestresult);
                 return result;
        }
    });
    }
    
    

Configures an analysis scheme that can be applied to a text or text-array field to define language-specific text processing options. For more information, see Configuring Analysis Schemes in the Amazon CloudSearch Developer Guide .

Parameters:
defineAnalysisSchemeRequest Container for the necessary parameters to execute the DefineAnalysisScheme operation on AmazonCloudSearchv2.
Returns:
A Java Future object containing the response from the DefineAnalysisScheme service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
    public Future<DefineAnalysisSchemeResultdefineAnalysisSchemeAsync(final DefineAnalysisSchemeRequest defineAnalysisSchemeRequest
            throws AmazonServiceExceptionAmazonClientException {
            public DefineAnalysisSchemeResult call() throws Exception {
                return defineAnalysisScheme(defineAnalysisSchemeRequest);
        }
    });
    }

    

Configures an analysis scheme that can be applied to a text or text-array field to define language-specific text processing options. For more information, see Configuring Analysis Schemes in the Amazon CloudSearch Developer Guide .

Parameters:
defineAnalysisSchemeRequest Container for the necessary parameters to execute the DefineAnalysisScheme operation on AmazonCloudSearchv2.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DefineAnalysisScheme service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
            final DefineAnalysisSchemeRequest defineAnalysisSchemeRequest,
            final AsyncHandler<DefineAnalysisSchemeRequestDefineAnalysisSchemeResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public DefineAnalysisSchemeResult call() throws Exception {
              DefineAnalysisSchemeResult result;
                try {
                result = defineAnalysisScheme(defineAnalysisSchemeRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(defineAnalysisSchemeRequestresult);
                 return result;
        }
    });
    }
    
    

Indexes the search suggestions. For more information, see Configuring Suggesters in the Amazon CloudSearch Developer Guide .

Parameters:
buildSuggestersRequest Container for the necessary parameters to execute the BuildSuggesters operation on AmazonCloudSearchv2.
Returns:
A Java Future object containing the response from the BuildSuggesters service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
    public Future<BuildSuggestersResultbuildSuggestersAsync(final BuildSuggestersRequest buildSuggestersRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<BuildSuggestersResult>() {
            public BuildSuggestersResult call() throws Exception {
                return buildSuggesters(buildSuggestersRequest);
        }
    });
    }

    

Indexes the search suggestions. For more information, see Configuring Suggesters in the Amazon CloudSearch Developer Guide .

Parameters:
buildSuggestersRequest Container for the necessary parameters to execute the BuildSuggesters operation on AmazonCloudSearchv2.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the BuildSuggesters service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
            final BuildSuggestersRequest buildSuggestersRequest,
            final AsyncHandler<BuildSuggestersRequestBuildSuggestersResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<BuildSuggestersResult>() {
            public BuildSuggestersResult call() throws Exception {
              BuildSuggestersResult result;
                try {
                result = buildSuggesters(buildSuggestersRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(buildSuggestersRequestresult);
                 return result;
        }
    });
    }
    
    

Gets information about the access policies that control access to the domain's document and search endpoints. By default, shows the configuration with any pending changes. Set the Deployed option to true to show the active configuration and exclude pending changes. For more information, see Configuring Access for a Search Domain in the Amazon CloudSearch Developer Guide .

Parameters:
describeServiceAccessPoliciesRequest Container for the necessary parameters to execute the DescribeServiceAccessPolicies operation on AmazonCloudSearchv2.
Returns:
A Java Future object containing the response from the DescribeServiceAccessPolicies service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public DescribeServiceAccessPoliciesResult call() throws Exception {
                return describeServiceAccessPolicies(describeServiceAccessPoliciesRequest);
        }
    });
    }

    

Gets information about the access policies that control access to the domain's document and search endpoints. By default, shows the configuration with any pending changes. Set the Deployed option to true to show the active configuration and exclude pending changes. For more information, see Configuring Access for a Search Domain in the Amazon CloudSearch Developer Guide .

Parameters:
describeServiceAccessPoliciesRequest Container for the necessary parameters to execute the DescribeServiceAccessPolicies operation on AmazonCloudSearchv2.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeServiceAccessPolicies service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
            final DescribeServiceAccessPoliciesRequest describeServiceAccessPoliciesRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public DescribeServiceAccessPoliciesResult call() throws Exception {
              DescribeServiceAccessPoliciesResult result;
                try {
                result = describeServiceAccessPolicies(describeServiceAccessPoliciesRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeServiceAccessPoliciesRequestresult);
                 return result;
        }
    });
    }
    
    

Permanently deletes a search domain and all of its data. Once a domain has been deleted, it cannot be recovered. For more information, see Deleting a Search Domain in the Amazon CloudSearch Developer Guide .

Parameters:
deleteDomainRequest Container for the necessary parameters to execute the DeleteDomain operation on AmazonCloudSearchv2.
Returns:
A Java Future object containing the response from the DeleteDomain service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
    public Future<DeleteDomainResultdeleteDomainAsync(final DeleteDomainRequest deleteDomainRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DeleteDomainResult>() {
            public DeleteDomainResult call() throws Exception {
                return deleteDomain(deleteDomainRequest);
        }
    });
    }

    

Permanently deletes a search domain and all of its data. Once a domain has been deleted, it cannot be recovered. For more information, see Deleting a Search Domain in the Amazon CloudSearch Developer Guide .

Parameters:
deleteDomainRequest Container for the necessary parameters to execute the DeleteDomain operation on AmazonCloudSearchv2.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteDomain service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
            final DeleteDomainRequest deleteDomainRequest,
            final AsyncHandler<DeleteDomainRequestDeleteDomainResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DeleteDomainResult>() {
            public DeleteDomainResult call() throws Exception {
              DeleteDomainResult result;
                try {
                result = deleteDomain(deleteDomainRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(deleteDomainRequestresult);
                 return result;
        }
    });
    }
    
    

Gets the expressions configured for the search domain. Can be limited to specific expressions by name. By default, shows all expressions and includes any pending changes to the configuration. Set the Deployed option to true to show the active configuration and exclude pending changes. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide .

Parameters:
describeExpressionsRequest Container for the necessary parameters to execute the DescribeExpressions operation on AmazonCloudSearchv2.
Returns:
A Java Future object containing the response from the DescribeExpressions service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
    public Future<DescribeExpressionsResultdescribeExpressionsAsync(final DescribeExpressionsRequest describeExpressionsRequest
            throws AmazonServiceExceptionAmazonClientException {
            public DescribeExpressionsResult call() throws Exception {
                return describeExpressions(describeExpressionsRequest);
        }
    });
    }

    

Gets the expressions configured for the search domain. Can be limited to specific expressions by name. By default, shows all expressions and includes any pending changes to the configuration. Set the Deployed option to true to show the active configuration and exclude pending changes. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide .

Parameters:
describeExpressionsRequest Container for the necessary parameters to execute the DescribeExpressions operation on AmazonCloudSearchv2.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeExpressions service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
            final DescribeExpressionsRequest describeExpressionsRequest,
            final AsyncHandler<DescribeExpressionsRequestDescribeExpressionsResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public DescribeExpressionsResult call() throws Exception {
              DescribeExpressionsResult result;
                try {
                result = describeExpressions(describeExpressionsRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeExpressionsRequestresult);
                 return result;
        }
    });
    }
    
    

Gets information about the search domains owned by this account. Can be limited to specific domains. Shows all domains by default. To get the number of searchable documents in a domain, use the console or submit a matchall request to your domain's search endpoint: q=matchall&q.parser=structured&size=0 . For more information, see Getting Information about a Search Domain in the Amazon CloudSearch Developer Guide .

Parameters:
describeDomainsRequest Container for the necessary parameters to execute the DescribeDomains operation on AmazonCloudSearchv2.
Returns:
A Java Future object containing the response from the DescribeDomains service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
    public Future<DescribeDomainsResultdescribeDomainsAsync(final DescribeDomainsRequest describeDomainsRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DescribeDomainsResult>() {
            public DescribeDomainsResult call() throws Exception {
                return describeDomains(describeDomainsRequest);
        }
    });
    }

    

Gets information about the search domains owned by this account. Can be limited to specific domains. Shows all domains by default. To get the number of searchable documents in a domain, use the console or submit a matchall request to your domain's search endpoint: q=matchall&q.parser=structured&size=0 . For more information, see Getting Information about a Search Domain in the Amazon CloudSearch Developer Guide .

Parameters:
describeDomainsRequest Container for the necessary parameters to execute the DescribeDomains operation on AmazonCloudSearchv2.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeDomains service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
            final DescribeDomainsRequest describeDomainsRequest,
            final AsyncHandler<DescribeDomainsRequestDescribeDomainsResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DescribeDomainsResult>() {
            public DescribeDomainsResult call() throws Exception {
              DescribeDomainsResult result;
                try {
                result = describeDomains(describeDomainsRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeDomainsRequestresult);
                 return result;
        }
    });
    }
    
    

Gets the scaling parameters configured for a domain. A domain's scaling parameters specify the desired search instance type and replication count. For more information, see Configuring Scaling Options in the Amazon CloudSearch Developer Guide .

Parameters:
describeScalingParametersRequest Container for the necessary parameters to execute the DescribeScalingParameters operation on AmazonCloudSearchv2.
Returns:
A Java Future object containing the response from the DescribeScalingParameters service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public DescribeScalingParametersResult call() throws Exception {
                return describeScalingParameters(describeScalingParametersRequest);
        }
    });
    }

    

Gets the scaling parameters configured for a domain. A domain's scaling parameters specify the desired search instance type and replication count. For more information, see Configuring Scaling Options in the Amazon CloudSearch Developer Guide .

Parameters:
describeScalingParametersRequest Container for the necessary parameters to execute the DescribeScalingParameters operation on AmazonCloudSearchv2.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeScalingParameters service method, as returned by AmazonCloudSearchv2.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudSearchv2 indicating either a problem with the data in the request, or a server side issue.
            final DescribeScalingParametersRequest describeScalingParametersRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public DescribeScalingParametersResult call() throws Exception {
              DescribeScalingParametersResult result;
                try {
                result = describeScalingParameters(describeScalingParametersRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeScalingParametersRequestresult);
                 return result;