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

software.amazon.awssdk.services.elasticsearch.ElasticsearchAsyncClient Maven / Gradle / Ivy

Go to download

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

There is a newer version: 2.29.39
Show newest version
/*
 * Copyright 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 software.amazon.awssdk.services.elasticsearch;

import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkPublicApi;
import software.amazon.awssdk.annotations.ThreadSafe;
import software.amazon.awssdk.core.SdkClient;
import software.amazon.awssdk.services.elasticsearch.model.AcceptInboundCrossClusterSearchConnectionRequest;
import software.amazon.awssdk.services.elasticsearch.model.AcceptInboundCrossClusterSearchConnectionResponse;
import software.amazon.awssdk.services.elasticsearch.model.AddTagsRequest;
import software.amazon.awssdk.services.elasticsearch.model.AddTagsResponse;
import software.amazon.awssdk.services.elasticsearch.model.AssociatePackageRequest;
import software.amazon.awssdk.services.elasticsearch.model.AssociatePackageResponse;
import software.amazon.awssdk.services.elasticsearch.model.CancelElasticsearchServiceSoftwareUpdateRequest;
import software.amazon.awssdk.services.elasticsearch.model.CancelElasticsearchServiceSoftwareUpdateResponse;
import software.amazon.awssdk.services.elasticsearch.model.CreateElasticsearchDomainRequest;
import software.amazon.awssdk.services.elasticsearch.model.CreateElasticsearchDomainResponse;
import software.amazon.awssdk.services.elasticsearch.model.CreateOutboundCrossClusterSearchConnectionRequest;
import software.amazon.awssdk.services.elasticsearch.model.CreateOutboundCrossClusterSearchConnectionResponse;
import software.amazon.awssdk.services.elasticsearch.model.CreatePackageRequest;
import software.amazon.awssdk.services.elasticsearch.model.CreatePackageResponse;
import software.amazon.awssdk.services.elasticsearch.model.DeleteElasticsearchDomainRequest;
import software.amazon.awssdk.services.elasticsearch.model.DeleteElasticsearchDomainResponse;
import software.amazon.awssdk.services.elasticsearch.model.DeleteElasticsearchServiceRoleRequest;
import software.amazon.awssdk.services.elasticsearch.model.DeleteElasticsearchServiceRoleResponse;
import software.amazon.awssdk.services.elasticsearch.model.DeleteInboundCrossClusterSearchConnectionRequest;
import software.amazon.awssdk.services.elasticsearch.model.DeleteInboundCrossClusterSearchConnectionResponse;
import software.amazon.awssdk.services.elasticsearch.model.DeleteOutboundCrossClusterSearchConnectionRequest;
import software.amazon.awssdk.services.elasticsearch.model.DeleteOutboundCrossClusterSearchConnectionResponse;
import software.amazon.awssdk.services.elasticsearch.model.DeletePackageRequest;
import software.amazon.awssdk.services.elasticsearch.model.DeletePackageResponse;
import software.amazon.awssdk.services.elasticsearch.model.DescribeDomainAutoTunesRequest;
import software.amazon.awssdk.services.elasticsearch.model.DescribeDomainAutoTunesResponse;
import software.amazon.awssdk.services.elasticsearch.model.DescribeDomainChangeProgressRequest;
import software.amazon.awssdk.services.elasticsearch.model.DescribeDomainChangeProgressResponse;
import software.amazon.awssdk.services.elasticsearch.model.DescribeElasticsearchDomainConfigRequest;
import software.amazon.awssdk.services.elasticsearch.model.DescribeElasticsearchDomainConfigResponse;
import software.amazon.awssdk.services.elasticsearch.model.DescribeElasticsearchDomainRequest;
import software.amazon.awssdk.services.elasticsearch.model.DescribeElasticsearchDomainResponse;
import software.amazon.awssdk.services.elasticsearch.model.DescribeElasticsearchDomainsRequest;
import software.amazon.awssdk.services.elasticsearch.model.DescribeElasticsearchDomainsResponse;
import software.amazon.awssdk.services.elasticsearch.model.DescribeElasticsearchInstanceTypeLimitsRequest;
import software.amazon.awssdk.services.elasticsearch.model.DescribeElasticsearchInstanceTypeLimitsResponse;
import software.amazon.awssdk.services.elasticsearch.model.DescribeInboundCrossClusterSearchConnectionsRequest;
import software.amazon.awssdk.services.elasticsearch.model.DescribeInboundCrossClusterSearchConnectionsResponse;
import software.amazon.awssdk.services.elasticsearch.model.DescribeOutboundCrossClusterSearchConnectionsRequest;
import software.amazon.awssdk.services.elasticsearch.model.DescribeOutboundCrossClusterSearchConnectionsResponse;
import software.amazon.awssdk.services.elasticsearch.model.DescribePackagesRequest;
import software.amazon.awssdk.services.elasticsearch.model.DescribePackagesResponse;
import software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstanceOfferingsRequest;
import software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstanceOfferingsResponse;
import software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstancesRequest;
import software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstancesResponse;
import software.amazon.awssdk.services.elasticsearch.model.DissociatePackageRequest;
import software.amazon.awssdk.services.elasticsearch.model.DissociatePackageResponse;
import software.amazon.awssdk.services.elasticsearch.model.GetCompatibleElasticsearchVersionsRequest;
import software.amazon.awssdk.services.elasticsearch.model.GetCompatibleElasticsearchVersionsResponse;
import software.amazon.awssdk.services.elasticsearch.model.GetPackageVersionHistoryRequest;
import software.amazon.awssdk.services.elasticsearch.model.GetPackageVersionHistoryResponse;
import software.amazon.awssdk.services.elasticsearch.model.GetUpgradeHistoryRequest;
import software.amazon.awssdk.services.elasticsearch.model.GetUpgradeHistoryResponse;
import software.amazon.awssdk.services.elasticsearch.model.GetUpgradeStatusRequest;
import software.amazon.awssdk.services.elasticsearch.model.GetUpgradeStatusResponse;
import software.amazon.awssdk.services.elasticsearch.model.ListDomainNamesRequest;
import software.amazon.awssdk.services.elasticsearch.model.ListDomainNamesResponse;
import software.amazon.awssdk.services.elasticsearch.model.ListDomainsForPackageRequest;
import software.amazon.awssdk.services.elasticsearch.model.ListDomainsForPackageResponse;
import software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchInstanceTypesRequest;
import software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchInstanceTypesResponse;
import software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchVersionsRequest;
import software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchVersionsResponse;
import software.amazon.awssdk.services.elasticsearch.model.ListPackagesForDomainRequest;
import software.amazon.awssdk.services.elasticsearch.model.ListPackagesForDomainResponse;
import software.amazon.awssdk.services.elasticsearch.model.ListTagsRequest;
import software.amazon.awssdk.services.elasticsearch.model.ListTagsResponse;
import software.amazon.awssdk.services.elasticsearch.model.PurchaseReservedElasticsearchInstanceOfferingRequest;
import software.amazon.awssdk.services.elasticsearch.model.PurchaseReservedElasticsearchInstanceOfferingResponse;
import software.amazon.awssdk.services.elasticsearch.model.RejectInboundCrossClusterSearchConnectionRequest;
import software.amazon.awssdk.services.elasticsearch.model.RejectInboundCrossClusterSearchConnectionResponse;
import software.amazon.awssdk.services.elasticsearch.model.RemoveTagsRequest;
import software.amazon.awssdk.services.elasticsearch.model.RemoveTagsResponse;
import software.amazon.awssdk.services.elasticsearch.model.StartElasticsearchServiceSoftwareUpdateRequest;
import software.amazon.awssdk.services.elasticsearch.model.StartElasticsearchServiceSoftwareUpdateResponse;
import software.amazon.awssdk.services.elasticsearch.model.UpdateElasticsearchDomainConfigRequest;
import software.amazon.awssdk.services.elasticsearch.model.UpdateElasticsearchDomainConfigResponse;
import software.amazon.awssdk.services.elasticsearch.model.UpdatePackageRequest;
import software.amazon.awssdk.services.elasticsearch.model.UpdatePackageResponse;
import software.amazon.awssdk.services.elasticsearch.model.UpgradeElasticsearchDomainRequest;
import software.amazon.awssdk.services.elasticsearch.model.UpgradeElasticsearchDomainResponse;
import software.amazon.awssdk.services.elasticsearch.paginators.DescribeDomainAutoTunesPublisher;
import software.amazon.awssdk.services.elasticsearch.paginators.DescribeInboundCrossClusterSearchConnectionsPublisher;
import software.amazon.awssdk.services.elasticsearch.paginators.DescribeOutboundCrossClusterSearchConnectionsPublisher;
import software.amazon.awssdk.services.elasticsearch.paginators.DescribePackagesPublisher;
import software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstanceOfferingsPublisher;
import software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstancesPublisher;
import software.amazon.awssdk.services.elasticsearch.paginators.GetPackageVersionHistoryPublisher;
import software.amazon.awssdk.services.elasticsearch.paginators.GetUpgradeHistoryPublisher;
import software.amazon.awssdk.services.elasticsearch.paginators.ListDomainsForPackagePublisher;
import software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchInstanceTypesPublisher;
import software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchVersionsPublisher;
import software.amazon.awssdk.services.elasticsearch.paginators.ListPackagesForDomainPublisher;

/**
 * Service client for accessing Amazon Elasticsearch Service asynchronously. This can be created using the static
 * {@link #builder()} method.
 *
 * Amazon Elasticsearch Configuration Service
 * 

* Use the Amazon Elasticsearch Configuration API to create, configure, and manage Elasticsearch domains. *

*

* For sample code that uses the Configuration API, see the Amazon * Elasticsearch Service Developer Guide. The guide also contains sample code * for sending signed HTTP requests to the Elasticsearch APIs. *

*

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

*/ @Generated("software.amazon.awssdk:codegen") @SdkPublicApi @ThreadSafe public interface ElasticsearchAsyncClient extends SdkClient { String SERVICE_NAME = "es"; /** * Value for looking up the service's metadata from the * {@link software.amazon.awssdk.regions.ServiceMetadataProvider}. */ String SERVICE_METADATA_ID = "es"; /** * Create a {@link ElasticsearchAsyncClient} with the region loaded from the * {@link software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain} and credentials loaded from the * {@link software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider}. */ static ElasticsearchAsyncClient create() { return builder().build(); } /** * Create a builder that can be used to configure and create a {@link ElasticsearchAsyncClient}. */ static ElasticsearchAsyncClientBuilder builder() { return new DefaultElasticsearchAsyncClientBuilder(); } /** *

* Allows the destination domain owner to accept an inbound cross-cluster search connection request. *

* * @param acceptInboundCrossClusterSearchConnectionRequest * Container for the parameters to the AcceptInboundCrossClusterSearchConnection * operation. * @return A Java Future containing the result of the AcceptInboundCrossClusterSearchConnection operation returned * by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • LimitExceededException An exception for trying to create more than allowed resources or * sub-resources. Gives http status code of 409.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.AcceptInboundCrossClusterSearchConnection */ default CompletableFuture acceptInboundCrossClusterSearchConnection( AcceptInboundCrossClusterSearchConnectionRequest acceptInboundCrossClusterSearchConnectionRequest) { throw new UnsupportedOperationException(); } /** *

* Allows the destination domain owner to accept an inbound cross-cluster search connection request. *

*
*

* This is a convenience which creates an instance of the * {@link AcceptInboundCrossClusterSearchConnectionRequest.Builder} avoiding the need to create one manually via * {@link AcceptInboundCrossClusterSearchConnectionRequest#builder()} *

* * @param acceptInboundCrossClusterSearchConnectionRequest * A {@link Consumer} that will call methods on * {@link AcceptInboundCrossClusterSearchConnectionRequest.Builder} to create a request. Container for the * parameters to the AcceptInboundCrossClusterSearchConnection operation. * @return A Java Future containing the result of the AcceptInboundCrossClusterSearchConnection operation returned * by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • LimitExceededException An exception for trying to create more than allowed resources or * sub-resources. Gives http status code of 409.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.AcceptInboundCrossClusterSearchConnection */ default CompletableFuture acceptInboundCrossClusterSearchConnection( Consumer acceptInboundCrossClusterSearchConnectionRequest) { return acceptInboundCrossClusterSearchConnection(AcceptInboundCrossClusterSearchConnectionRequest.builder() .applyMutation(acceptInboundCrossClusterSearchConnectionRequest).build()); } /** *

* Attaches tags to an existing Elasticsearch domain. Tags are a set of case-sensitive key value pairs. An * Elasticsearch domain may have up to 10 tags. See Tagging Amazon Elasticsearch Service Domains for more information. *

* * @param addTagsRequest * Container for the parameters to the AddTags operation. Specify the tags that you want * to attach to the Elasticsearch domain. * @return A Java Future containing the result of the AddTags operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • LimitExceededException An exception for trying to create more than allowed resources or * sub-resources. Gives http status code of 409.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.AddTags */ default CompletableFuture addTags(AddTagsRequest addTagsRequest) { throw new UnsupportedOperationException(); } /** *

* Attaches tags to an existing Elasticsearch domain. Tags are a set of case-sensitive key value pairs. An * Elasticsearch domain may have up to 10 tags. See Tagging Amazon Elasticsearch Service Domains for more information. *

*
*

* This is a convenience which creates an instance of the {@link AddTagsRequest.Builder} avoiding the need to create * one manually via {@link AddTagsRequest#builder()} *

* * @param addTagsRequest * A {@link Consumer} that will call methods on {@link AddTagsRequest.Builder} to create a request. Container * for the parameters to the AddTags operation. Specify the tags that you want to attach * to the Elasticsearch domain. * @return A Java Future containing the result of the AddTags operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • LimitExceededException An exception for trying to create more than allowed resources or * sub-resources. Gives http status code of 409.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.AddTags */ default CompletableFuture addTags(Consumer addTagsRequest) { return addTags(AddTagsRequest.builder().applyMutation(addTagsRequest).build()); } /** *

* Associates a package with an Amazon ES domain. *

* * @param associatePackageRequest * Container for request parameters to AssociatePackage operation. * @return A Java Future containing the result of the AssociatePackage operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • ConflictException An error occurred because the client attempts to remove a resource that is * currently in use. Returns HTTP status code 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.AssociatePackage */ default CompletableFuture associatePackage(AssociatePackageRequest associatePackageRequest) { throw new UnsupportedOperationException(); } /** *

* Associates a package with an Amazon ES domain. *

*
*

* This is a convenience which creates an instance of the {@link AssociatePackageRequest.Builder} avoiding the need * to create one manually via {@link AssociatePackageRequest#builder()} *

* * @param associatePackageRequest * A {@link Consumer} that will call methods on {@link AssociatePackageRequest.Builder} to create a request. * Container for request parameters to AssociatePackage operation. * @return A Java Future containing the result of the AssociatePackage operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • ConflictException An error occurred because the client attempts to remove a resource that is * currently in use. Returns HTTP status code 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.AssociatePackage */ default CompletableFuture associatePackage( Consumer associatePackageRequest) { return associatePackage(AssociatePackageRequest.builder().applyMutation(associatePackageRequest).build()); } /** *

* Cancels a scheduled service software update for an Amazon ES domain. You can only perform this operation before * the AutomatedUpdateDate and when the UpdateStatus is in the PENDING_UPDATE * state. *

* * @param cancelElasticsearchServiceSoftwareUpdateRequest * Container for the parameters to the CancelElasticsearchServiceSoftwareUpdate * operation. Specifies the name of the Elasticsearch domain that you wish to cancel a service software * update on. * @return A Java Future containing the result of the CancelElasticsearchServiceSoftwareUpdate operation returned by * the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.CancelElasticsearchServiceSoftwareUpdate */ default CompletableFuture cancelElasticsearchServiceSoftwareUpdate( CancelElasticsearchServiceSoftwareUpdateRequest cancelElasticsearchServiceSoftwareUpdateRequest) { throw new UnsupportedOperationException(); } /** *

* Cancels a scheduled service software update for an Amazon ES domain. You can only perform this operation before * the AutomatedUpdateDate and when the UpdateStatus is in the PENDING_UPDATE * state. *

*
*

* This is a convenience which creates an instance of the * {@link CancelElasticsearchServiceSoftwareUpdateRequest.Builder} avoiding the need to create one manually via * {@link CancelElasticsearchServiceSoftwareUpdateRequest#builder()} *

* * @param cancelElasticsearchServiceSoftwareUpdateRequest * A {@link Consumer} that will call methods on * {@link CancelElasticsearchServiceSoftwareUpdateRequest.Builder} to create a request. Container for the * parameters to the CancelElasticsearchServiceSoftwareUpdate operation. Specifies the * name of the Elasticsearch domain that you wish to cancel a service software update on. * @return A Java Future containing the result of the CancelElasticsearchServiceSoftwareUpdate operation returned by * the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.CancelElasticsearchServiceSoftwareUpdate */ default CompletableFuture cancelElasticsearchServiceSoftwareUpdate( Consumer cancelElasticsearchServiceSoftwareUpdateRequest) { return cancelElasticsearchServiceSoftwareUpdate(CancelElasticsearchServiceSoftwareUpdateRequest.builder() .applyMutation(cancelElasticsearchServiceSoftwareUpdateRequest).build()); } /** *

* Creates a new Elasticsearch domain. For more information, see Creating Elasticsearch Domains in the Amazon Elasticsearch Service Developer Guide. *

* * @param createElasticsearchDomainRequest * @return A Java Future containing the result of the CreateElasticsearchDomain operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • InvalidTypeException An exception for trying to create or access sub-resource that is either invalid * or not supported. Gives http status code of 409.
  • *
  • LimitExceededException An exception for trying to create more than allowed resources or * sub-resources. Gives http status code of 409.
  • *
  • ResourceAlreadyExistsException An exception for creating a resource that already exists. Gives http * status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.CreateElasticsearchDomain */ default CompletableFuture createElasticsearchDomain( CreateElasticsearchDomainRequest createElasticsearchDomainRequest) { throw new UnsupportedOperationException(); } /** *

* Creates a new Elasticsearch domain. For more information, see Creating Elasticsearch Domains in the Amazon Elasticsearch Service Developer Guide. *

*
*

* This is a convenience which creates an instance of the {@link CreateElasticsearchDomainRequest.Builder} avoiding * the need to create one manually via {@link CreateElasticsearchDomainRequest#builder()} *

* * @param createElasticsearchDomainRequest * A {@link Consumer} that will call methods on {@link CreateElasticsearchDomainRequest.Builder} to create a * request. * @return A Java Future containing the result of the CreateElasticsearchDomain operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • InvalidTypeException An exception for trying to create or access sub-resource that is either invalid * or not supported. Gives http status code of 409.
  • *
  • LimitExceededException An exception for trying to create more than allowed resources or * sub-resources. Gives http status code of 409.
  • *
  • ResourceAlreadyExistsException An exception for creating a resource that already exists. Gives http * status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.CreateElasticsearchDomain */ default CompletableFuture createElasticsearchDomain( Consumer createElasticsearchDomainRequest) { return createElasticsearchDomain(CreateElasticsearchDomainRequest.builder() .applyMutation(createElasticsearchDomainRequest).build()); } /** *

* Creates a new cross-cluster search connection from a source domain to a destination domain. *

* * @param createOutboundCrossClusterSearchConnectionRequest * Container for the parameters to the CreateOutboundCrossClusterSearchConnection * operation. * @return A Java Future containing the result of the CreateOutboundCrossClusterSearchConnection operation returned * by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • LimitExceededException An exception for trying to create more than allowed resources or * sub-resources. Gives http status code of 409.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceAlreadyExistsException An exception for creating a resource that already exists. Gives http * status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.CreateOutboundCrossClusterSearchConnection */ default CompletableFuture createOutboundCrossClusterSearchConnection( CreateOutboundCrossClusterSearchConnectionRequest createOutboundCrossClusterSearchConnectionRequest) { throw new UnsupportedOperationException(); } /** *

* Creates a new cross-cluster search connection from a source domain to a destination domain. *

*
*

* This is a convenience which creates an instance of the * {@link CreateOutboundCrossClusterSearchConnectionRequest.Builder} avoiding the need to create one manually via * {@link CreateOutboundCrossClusterSearchConnectionRequest#builder()} *

* * @param createOutboundCrossClusterSearchConnectionRequest * A {@link Consumer} that will call methods on * {@link CreateOutboundCrossClusterSearchConnectionRequest.Builder} to create a request. Container for the * parameters to the CreateOutboundCrossClusterSearchConnection operation. * @return A Java Future containing the result of the CreateOutboundCrossClusterSearchConnection operation returned * by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • LimitExceededException An exception for trying to create more than allowed resources or * sub-resources. Gives http status code of 409.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceAlreadyExistsException An exception for creating a resource that already exists. Gives http * status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.CreateOutboundCrossClusterSearchConnection */ default CompletableFuture createOutboundCrossClusterSearchConnection( Consumer createOutboundCrossClusterSearchConnectionRequest) { return createOutboundCrossClusterSearchConnection(CreateOutboundCrossClusterSearchConnectionRequest.builder() .applyMutation(createOutboundCrossClusterSearchConnectionRequest).build()); } /** *

* Create a package for use with Amazon ES domains. *

* * @param createPackageRequest * Container for request parameters to CreatePackage operation. * @return A Java Future containing the result of the CreatePackage operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • LimitExceededException An exception for trying to create more than allowed resources or * sub-resources. Gives http status code of 409.
  • *
  • InvalidTypeException An exception for trying to create or access sub-resource that is either invalid * or not supported. Gives http status code of 409.
  • *
  • ResourceAlreadyExistsException An exception for creating a resource that already exists. Gives http * status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.CreatePackage */ default CompletableFuture createPackage(CreatePackageRequest createPackageRequest) { throw new UnsupportedOperationException(); } /** *

* Create a package for use with Amazon ES domains. *

*
*

* This is a convenience which creates an instance of the {@link CreatePackageRequest.Builder} avoiding the need to * create one manually via {@link CreatePackageRequest#builder()} *

* * @param createPackageRequest * A {@link Consumer} that will call methods on {@link CreatePackageRequest.Builder} to create a request. * Container for request parameters to CreatePackage operation. * @return A Java Future containing the result of the CreatePackage operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • LimitExceededException An exception for trying to create more than allowed resources or * sub-resources. Gives http status code of 409.
  • *
  • InvalidTypeException An exception for trying to create or access sub-resource that is either invalid * or not supported. Gives http status code of 409.
  • *
  • ResourceAlreadyExistsException An exception for creating a resource that already exists. Gives http * status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.CreatePackage */ default CompletableFuture createPackage(Consumer createPackageRequest) { return createPackage(CreatePackageRequest.builder().applyMutation(createPackageRequest).build()); } /** *

* Permanently deletes the specified Elasticsearch domain and all of its data. Once a domain is deleted, it cannot * be recovered. *

* * @param deleteElasticsearchDomainRequest * Container for the parameters to the DeleteElasticsearchDomain operation. Specifies the * name of the Elasticsearch domain that you want to delete. * @return A Java Future containing the result of the DeleteElasticsearchDomain operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DeleteElasticsearchDomain */ default CompletableFuture deleteElasticsearchDomain( DeleteElasticsearchDomainRequest deleteElasticsearchDomainRequest) { throw new UnsupportedOperationException(); } /** *

* Permanently deletes the specified Elasticsearch domain and all of its data. Once a domain is deleted, it cannot * be recovered. *

*
*

* This is a convenience which creates an instance of the {@link DeleteElasticsearchDomainRequest.Builder} avoiding * the need to create one manually via {@link DeleteElasticsearchDomainRequest#builder()} *

* * @param deleteElasticsearchDomainRequest * A {@link Consumer} that will call methods on {@link DeleteElasticsearchDomainRequest.Builder} to create a * request. Container for the parameters to the DeleteElasticsearchDomain operation. * Specifies the name of the Elasticsearch domain that you want to delete. * @return A Java Future containing the result of the DeleteElasticsearchDomain operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DeleteElasticsearchDomain */ default CompletableFuture deleteElasticsearchDomain( Consumer deleteElasticsearchDomainRequest) { return deleteElasticsearchDomain(DeleteElasticsearchDomainRequest.builder() .applyMutation(deleteElasticsearchDomainRequest).build()); } /** *

* Deletes the service-linked role that Elasticsearch Service uses to manage and maintain VPC domains. Role deletion * will fail if any existing VPC domains use the role. You must delete any such Elasticsearch domains before * deleting the role. See Deleting Elasticsearch Service Role in VPC Endpoints for Amazon Elasticsearch Service * Domains. *

* * @param deleteElasticsearchServiceRoleRequest * @return A Java Future containing the result of the DeleteElasticsearchServiceRole operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DeleteElasticsearchServiceRole */ default CompletableFuture deleteElasticsearchServiceRole( DeleteElasticsearchServiceRoleRequest deleteElasticsearchServiceRoleRequest) { throw new UnsupportedOperationException(); } /** *

* Deletes the service-linked role that Elasticsearch Service uses to manage and maintain VPC domains. Role deletion * will fail if any existing VPC domains use the role. You must delete any such Elasticsearch domains before * deleting the role. See Deleting Elasticsearch Service Role in VPC Endpoints for Amazon Elasticsearch Service * Domains. *

*
*

* This is a convenience which creates an instance of the {@link DeleteElasticsearchServiceRoleRequest.Builder} * avoiding the need to create one manually via {@link DeleteElasticsearchServiceRoleRequest#builder()} *

* * @param deleteElasticsearchServiceRoleRequest * A {@link Consumer} that will call methods on {@link DeleteElasticsearchServiceRoleRequest.Builder} to * create a request. * @return A Java Future containing the result of the DeleteElasticsearchServiceRole operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DeleteElasticsearchServiceRole */ default CompletableFuture deleteElasticsearchServiceRole( Consumer deleteElasticsearchServiceRoleRequest) { return deleteElasticsearchServiceRole(DeleteElasticsearchServiceRoleRequest.builder() .applyMutation(deleteElasticsearchServiceRoleRequest).build()); } /** *

* Deletes the service-linked role that Elasticsearch Service uses to manage and maintain VPC domains. Role deletion * will fail if any existing VPC domains use the role. You must delete any such Elasticsearch domains before * deleting the role. See Deleting Elasticsearch Service Role in VPC Endpoints for Amazon Elasticsearch Service * Domains. *

* * @return A Java Future containing the result of the DeleteElasticsearchServiceRole operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DeleteElasticsearchServiceRole */ default CompletableFuture deleteElasticsearchServiceRole() { return deleteElasticsearchServiceRole(DeleteElasticsearchServiceRoleRequest.builder().build()); } /** *

* Allows the destination domain owner to delete an existing inbound cross-cluster search connection. *

* * @param deleteInboundCrossClusterSearchConnectionRequest * Container for the parameters to the DeleteInboundCrossClusterSearchConnection * operation. * @return A Java Future containing the result of the DeleteInboundCrossClusterSearchConnection operation returned * by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DeleteInboundCrossClusterSearchConnection */ default CompletableFuture deleteInboundCrossClusterSearchConnection( DeleteInboundCrossClusterSearchConnectionRequest deleteInboundCrossClusterSearchConnectionRequest) { throw new UnsupportedOperationException(); } /** *

* Allows the destination domain owner to delete an existing inbound cross-cluster search connection. *

*
*

* This is a convenience which creates an instance of the * {@link DeleteInboundCrossClusterSearchConnectionRequest.Builder} avoiding the need to create one manually via * {@link DeleteInboundCrossClusterSearchConnectionRequest#builder()} *

* * @param deleteInboundCrossClusterSearchConnectionRequest * A {@link Consumer} that will call methods on * {@link DeleteInboundCrossClusterSearchConnectionRequest.Builder} to create a request. Container for the * parameters to the DeleteInboundCrossClusterSearchConnection operation. * @return A Java Future containing the result of the DeleteInboundCrossClusterSearchConnection operation returned * by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DeleteInboundCrossClusterSearchConnection */ default CompletableFuture deleteInboundCrossClusterSearchConnection( Consumer deleteInboundCrossClusterSearchConnectionRequest) { return deleteInboundCrossClusterSearchConnection(DeleteInboundCrossClusterSearchConnectionRequest.builder() .applyMutation(deleteInboundCrossClusterSearchConnectionRequest).build()); } /** *

* Allows the source domain owner to delete an existing outbound cross-cluster search connection. *

* * @param deleteOutboundCrossClusterSearchConnectionRequest * Container for the parameters to the DeleteOutboundCrossClusterSearchConnection * operation. * @return A Java Future containing the result of the DeleteOutboundCrossClusterSearchConnection operation returned * by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DeleteOutboundCrossClusterSearchConnection */ default CompletableFuture deleteOutboundCrossClusterSearchConnection( DeleteOutboundCrossClusterSearchConnectionRequest deleteOutboundCrossClusterSearchConnectionRequest) { throw new UnsupportedOperationException(); } /** *

* Allows the source domain owner to delete an existing outbound cross-cluster search connection. *

*
*

* This is a convenience which creates an instance of the * {@link DeleteOutboundCrossClusterSearchConnectionRequest.Builder} avoiding the need to create one manually via * {@link DeleteOutboundCrossClusterSearchConnectionRequest#builder()} *

* * @param deleteOutboundCrossClusterSearchConnectionRequest * A {@link Consumer} that will call methods on * {@link DeleteOutboundCrossClusterSearchConnectionRequest.Builder} to create a request. Container for the * parameters to the DeleteOutboundCrossClusterSearchConnection operation. * @return A Java Future containing the result of the DeleteOutboundCrossClusterSearchConnection operation returned * by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DeleteOutboundCrossClusterSearchConnection */ default CompletableFuture deleteOutboundCrossClusterSearchConnection( Consumer deleteOutboundCrossClusterSearchConnectionRequest) { return deleteOutboundCrossClusterSearchConnection(DeleteOutboundCrossClusterSearchConnectionRequest.builder() .applyMutation(deleteOutboundCrossClusterSearchConnectionRequest).build()); } /** *

* Delete the package. *

* * @param deletePackageRequest * Container for request parameters to DeletePackage operation. * @return A Java Future containing the result of the DeletePackage operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • ConflictException An error occurred because the client attempts to remove a resource that is * currently in use. Returns HTTP status code 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DeletePackage */ default CompletableFuture deletePackage(DeletePackageRequest deletePackageRequest) { throw new UnsupportedOperationException(); } /** *

* Delete the package. *

*
*

* This is a convenience which creates an instance of the {@link DeletePackageRequest.Builder} avoiding the need to * create one manually via {@link DeletePackageRequest#builder()} *

* * @param deletePackageRequest * A {@link Consumer} that will call methods on {@link DeletePackageRequest.Builder} to create a request. * Container for request parameters to DeletePackage operation. * @return A Java Future containing the result of the DeletePackage operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • ConflictException An error occurred because the client attempts to remove a resource that is * currently in use. Returns HTTP status code 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DeletePackage */ default CompletableFuture deletePackage(Consumer deletePackageRequest) { return deletePackage(DeletePackageRequest.builder().applyMutation(deletePackageRequest).build()); } /** *

* Provides scheduled Auto-Tune action details for the Elasticsearch domain, such as Auto-Tune action type, * description, severity, and scheduled date. *

* * @param describeDomainAutoTunesRequest * Container for the parameters to the DescribeDomainAutoTunes operation. * @return A Java Future containing the result of the DescribeDomainAutoTunes operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeDomainAutoTunes */ default CompletableFuture describeDomainAutoTunes( DescribeDomainAutoTunesRequest describeDomainAutoTunesRequest) { throw new UnsupportedOperationException(); } /** *

* Provides scheduled Auto-Tune action details for the Elasticsearch domain, such as Auto-Tune action type, * description, severity, and scheduled date. *

*
*

* This is a convenience which creates an instance of the {@link DescribeDomainAutoTunesRequest.Builder} avoiding * the need to create one manually via {@link DescribeDomainAutoTunesRequest#builder()} *

* * @param describeDomainAutoTunesRequest * A {@link Consumer} that will call methods on {@link DescribeDomainAutoTunesRequest.Builder} to create a * request. Container for the parameters to the DescribeDomainAutoTunes operation. * @return A Java Future containing the result of the DescribeDomainAutoTunes operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeDomainAutoTunes */ default CompletableFuture describeDomainAutoTunes( Consumer describeDomainAutoTunesRequest) { return describeDomainAutoTunes(DescribeDomainAutoTunesRequest.builder().applyMutation(describeDomainAutoTunesRequest) .build()); } /** *

* Provides scheduled Auto-Tune action details for the Elasticsearch domain, such as Auto-Tune action type, * description, severity, and scheduled date. *

*
*

* This is a variant of * {@link #describeDomainAutoTunes(software.amazon.awssdk.services.elasticsearch.model.DescribeDomainAutoTunesRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeDomainAutoTunesPublisher publisher = client.describeDomainAutoTunesPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeDomainAutoTunesPublisher publisher = client.describeDomainAutoTunesPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.DescribeDomainAutoTunesResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeDomainAutoTunes(software.amazon.awssdk.services.elasticsearch.model.DescribeDomainAutoTunesRequest)} * operation. *

* * @param describeDomainAutoTunesRequest * Container for the parameters to the DescribeDomainAutoTunes operation. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeDomainAutoTunes */ default DescribeDomainAutoTunesPublisher describeDomainAutoTunesPaginator( DescribeDomainAutoTunesRequest describeDomainAutoTunesRequest) { throw new UnsupportedOperationException(); } /** *

* Provides scheduled Auto-Tune action details for the Elasticsearch domain, such as Auto-Tune action type, * description, severity, and scheduled date. *

*
*

* This is a variant of * {@link #describeDomainAutoTunes(software.amazon.awssdk.services.elasticsearch.model.DescribeDomainAutoTunesRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeDomainAutoTunesPublisher publisher = client.describeDomainAutoTunesPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeDomainAutoTunesPublisher publisher = client.describeDomainAutoTunesPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.DescribeDomainAutoTunesResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeDomainAutoTunes(software.amazon.awssdk.services.elasticsearch.model.DescribeDomainAutoTunesRequest)} * operation. *

*

* This is a convenience which creates an instance of the {@link DescribeDomainAutoTunesRequest.Builder} avoiding * the need to create one manually via {@link DescribeDomainAutoTunesRequest#builder()} *

* * @param describeDomainAutoTunesRequest * A {@link Consumer} that will call methods on {@link DescribeDomainAutoTunesRequest.Builder} to create a * request. Container for the parameters to the DescribeDomainAutoTunes operation. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeDomainAutoTunes */ default DescribeDomainAutoTunesPublisher describeDomainAutoTunesPaginator( Consumer describeDomainAutoTunesRequest) { return describeDomainAutoTunesPaginator(DescribeDomainAutoTunesRequest.builder() .applyMutation(describeDomainAutoTunesRequest).build()); } /** *

* Returns information about the current blue/green deployment happening on a domain, including a change ID, status, * and progress stages. *

* * @param describeDomainChangeProgressRequest * Container for the parameters to the DescribeDomainChangeProgress operation. Specifies the * domain name and optional change specific identity for which you want progress information. * @return A Java Future containing the result of the DescribeDomainChangeProgress operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeDomainChangeProgress */ default CompletableFuture describeDomainChangeProgress( DescribeDomainChangeProgressRequest describeDomainChangeProgressRequest) { throw new UnsupportedOperationException(); } /** *

* Returns information about the current blue/green deployment happening on a domain, including a change ID, status, * and progress stages. *

*
*

* This is a convenience which creates an instance of the {@link DescribeDomainChangeProgressRequest.Builder} * avoiding the need to create one manually via {@link DescribeDomainChangeProgressRequest#builder()} *

* * @param describeDomainChangeProgressRequest * A {@link Consumer} that will call methods on {@link DescribeDomainChangeProgressRequest.Builder} to create * a request. Container for the parameters to the DescribeDomainChangeProgress operation. * Specifies the domain name and optional change specific identity for which you want progress information. * @return A Java Future containing the result of the DescribeDomainChangeProgress operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeDomainChangeProgress */ default CompletableFuture describeDomainChangeProgress( Consumer describeDomainChangeProgressRequest) { return describeDomainChangeProgress(DescribeDomainChangeProgressRequest.builder() .applyMutation(describeDomainChangeProgressRequest).build()); } /** *

* Returns domain configuration information about the specified Elasticsearch domain, including the domain ID, * domain endpoint, and domain ARN. *

* * @param describeElasticsearchDomainRequest * Container for the parameters to the DescribeElasticsearchDomain operation. * @return A Java Future containing the result of the DescribeElasticsearchDomain operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeElasticsearchDomain */ default CompletableFuture describeElasticsearchDomain( DescribeElasticsearchDomainRequest describeElasticsearchDomainRequest) { throw new UnsupportedOperationException(); } /** *

* Returns domain configuration information about the specified Elasticsearch domain, including the domain ID, * domain endpoint, and domain ARN. *

*
*

* This is a convenience which creates an instance of the {@link DescribeElasticsearchDomainRequest.Builder} * avoiding the need to create one manually via {@link DescribeElasticsearchDomainRequest#builder()} *

* * @param describeElasticsearchDomainRequest * A {@link Consumer} that will call methods on {@link DescribeElasticsearchDomainRequest.Builder} to create * a request. Container for the parameters to the DescribeElasticsearchDomain operation. * @return A Java Future containing the result of the DescribeElasticsearchDomain operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeElasticsearchDomain */ default CompletableFuture describeElasticsearchDomain( Consumer describeElasticsearchDomainRequest) { return describeElasticsearchDomain(DescribeElasticsearchDomainRequest.builder() .applyMutation(describeElasticsearchDomainRequest).build()); } /** *

* Provides cluster configuration information about the specified Elasticsearch domain, such as the state, creation * date, update version, and update date for cluster options. *

* * @param describeElasticsearchDomainConfigRequest * Container for the parameters to the DescribeElasticsearchDomainConfig operation. Specifies * the domain name for which you want configuration information. * @return A Java Future containing the result of the DescribeElasticsearchDomainConfig operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeElasticsearchDomainConfig */ default CompletableFuture describeElasticsearchDomainConfig( DescribeElasticsearchDomainConfigRequest describeElasticsearchDomainConfigRequest) { throw new UnsupportedOperationException(); } /** *

* Provides cluster configuration information about the specified Elasticsearch domain, such as the state, creation * date, update version, and update date for cluster options. *

*
*

* This is a convenience which creates an instance of the {@link DescribeElasticsearchDomainConfigRequest.Builder} * avoiding the need to create one manually via {@link DescribeElasticsearchDomainConfigRequest#builder()} *

* * @param describeElasticsearchDomainConfigRequest * A {@link Consumer} that will call methods on {@link DescribeElasticsearchDomainConfigRequest.Builder} to * create a request. Container for the parameters to the DescribeElasticsearchDomainConfig * operation. Specifies the domain name for which you want configuration information. * @return A Java Future containing the result of the DescribeElasticsearchDomainConfig operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeElasticsearchDomainConfig */ default CompletableFuture describeElasticsearchDomainConfig( Consumer describeElasticsearchDomainConfigRequest) { return describeElasticsearchDomainConfig(DescribeElasticsearchDomainConfigRequest.builder() .applyMutation(describeElasticsearchDomainConfigRequest).build()); } /** *

* Returns domain configuration information about the specified Elasticsearch domains, including the domain ID, * domain endpoint, and domain ARN. *

* * @param describeElasticsearchDomainsRequest * Container for the parameters to the DescribeElasticsearchDomains operation. By * default, the API returns the status of all Elasticsearch domains. * @return A Java Future containing the result of the DescribeElasticsearchDomains operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeElasticsearchDomains */ default CompletableFuture describeElasticsearchDomains( DescribeElasticsearchDomainsRequest describeElasticsearchDomainsRequest) { throw new UnsupportedOperationException(); } /** *

* Returns domain configuration information about the specified Elasticsearch domains, including the domain ID, * domain endpoint, and domain ARN. *

*
*

* This is a convenience which creates an instance of the {@link DescribeElasticsearchDomainsRequest.Builder} * avoiding the need to create one manually via {@link DescribeElasticsearchDomainsRequest#builder()} *

* * @param describeElasticsearchDomainsRequest * A {@link Consumer} that will call methods on {@link DescribeElasticsearchDomainsRequest.Builder} to create * a request. Container for the parameters to the DescribeElasticsearchDomains operation. * By default, the API returns the status of all Elasticsearch domains. * @return A Java Future containing the result of the DescribeElasticsearchDomains operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeElasticsearchDomains */ default CompletableFuture describeElasticsearchDomains( Consumer describeElasticsearchDomainsRequest) { return describeElasticsearchDomains(DescribeElasticsearchDomainsRequest.builder() .applyMutation(describeElasticsearchDomainsRequest).build()); } /** *

* Describe Elasticsearch Limits for a given InstanceType and ElasticsearchVersion. When modifying existing Domain, * specify the DomainName to know what Limits are supported for modifying. *

* * @param describeElasticsearchInstanceTypeLimitsRequest * Container for the parameters to DescribeElasticsearchInstanceTypeLimits operation. * @return A Java Future containing the result of the DescribeElasticsearchInstanceTypeLimits operation returned by * the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • InvalidTypeException An exception for trying to create or access sub-resource that is either invalid * or not supported. Gives http status code of 409.
  • *
  • LimitExceededException An exception for trying to create more than allowed resources or * sub-resources. Gives http status code of 409.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeElasticsearchInstanceTypeLimits */ default CompletableFuture describeElasticsearchInstanceTypeLimits( DescribeElasticsearchInstanceTypeLimitsRequest describeElasticsearchInstanceTypeLimitsRequest) { throw new UnsupportedOperationException(); } /** *

* Describe Elasticsearch Limits for a given InstanceType and ElasticsearchVersion. When modifying existing Domain, * specify the DomainName to know what Limits are supported for modifying. *

*
*

* This is a convenience which creates an instance of the * {@link DescribeElasticsearchInstanceTypeLimitsRequest.Builder} avoiding the need to create one manually via * {@link DescribeElasticsearchInstanceTypeLimitsRequest#builder()} *

* * @param describeElasticsearchInstanceTypeLimitsRequest * A {@link Consumer} that will call methods on * {@link DescribeElasticsearchInstanceTypeLimitsRequest.Builder} to create a request. Container for the * parameters to DescribeElasticsearchInstanceTypeLimits operation. * @return A Java Future containing the result of the DescribeElasticsearchInstanceTypeLimits operation returned by * the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • InvalidTypeException An exception for trying to create or access sub-resource that is either invalid * or not supported. Gives http status code of 409.
  • *
  • LimitExceededException An exception for trying to create more than allowed resources or * sub-resources. Gives http status code of 409.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeElasticsearchInstanceTypeLimits */ default CompletableFuture describeElasticsearchInstanceTypeLimits( Consumer describeElasticsearchInstanceTypeLimitsRequest) { return describeElasticsearchInstanceTypeLimits(DescribeElasticsearchInstanceTypeLimitsRequest.builder() .applyMutation(describeElasticsearchInstanceTypeLimitsRequest).build()); } /** *

* Lists all the inbound cross-cluster search connections for a destination domain. *

* * @param describeInboundCrossClusterSearchConnectionsRequest * Container for the parameters to the DescribeInboundCrossClusterSearchConnections * operation. * @return A Java Future containing the result of the DescribeInboundCrossClusterSearchConnections operation * returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidPaginationTokenException The request processing has failed because of invalid pagination token * provided by customer. Returns an HTTP status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeInboundCrossClusterSearchConnections */ default CompletableFuture describeInboundCrossClusterSearchConnections( DescribeInboundCrossClusterSearchConnectionsRequest describeInboundCrossClusterSearchConnectionsRequest) { throw new UnsupportedOperationException(); } /** *

* Lists all the inbound cross-cluster search connections for a destination domain. *

*
*

* This is a convenience which creates an instance of the * {@link DescribeInboundCrossClusterSearchConnectionsRequest.Builder} avoiding the need to create one manually via * {@link DescribeInboundCrossClusterSearchConnectionsRequest#builder()} *

* * @param describeInboundCrossClusterSearchConnectionsRequest * A {@link Consumer} that will call methods on * {@link DescribeInboundCrossClusterSearchConnectionsRequest.Builder} to create a request. Container for the * parameters to the DescribeInboundCrossClusterSearchConnections operation. * @return A Java Future containing the result of the DescribeInboundCrossClusterSearchConnections operation * returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidPaginationTokenException The request processing has failed because of invalid pagination token * provided by customer. Returns an HTTP status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeInboundCrossClusterSearchConnections */ default CompletableFuture describeInboundCrossClusterSearchConnections( Consumer describeInboundCrossClusterSearchConnectionsRequest) { return describeInboundCrossClusterSearchConnections(DescribeInboundCrossClusterSearchConnectionsRequest.builder() .applyMutation(describeInboundCrossClusterSearchConnectionsRequest).build()); } /** *

* Lists all the inbound cross-cluster search connections for a destination domain. *

*
*

* This is a variant of * {@link #describeInboundCrossClusterSearchConnections(software.amazon.awssdk.services.elasticsearch.model.DescribeInboundCrossClusterSearchConnectionsRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeInboundCrossClusterSearchConnectionsPublisher publisher = client.describeInboundCrossClusterSearchConnectionsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeInboundCrossClusterSearchConnectionsPublisher publisher = client.describeInboundCrossClusterSearchConnectionsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.DescribeInboundCrossClusterSearchConnectionsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeInboundCrossClusterSearchConnections(software.amazon.awssdk.services.elasticsearch.model.DescribeInboundCrossClusterSearchConnectionsRequest)} * operation. *

* * @param describeInboundCrossClusterSearchConnectionsRequest * Container for the parameters to the DescribeInboundCrossClusterSearchConnections * operation. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidPaginationTokenException The request processing has failed because of invalid pagination token * provided by customer. Returns an HTTP status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeInboundCrossClusterSearchConnections */ default DescribeInboundCrossClusterSearchConnectionsPublisher describeInboundCrossClusterSearchConnectionsPaginator( DescribeInboundCrossClusterSearchConnectionsRequest describeInboundCrossClusterSearchConnectionsRequest) { throw new UnsupportedOperationException(); } /** *

* Lists all the inbound cross-cluster search connections for a destination domain. *

*
*

* This is a variant of * {@link #describeInboundCrossClusterSearchConnections(software.amazon.awssdk.services.elasticsearch.model.DescribeInboundCrossClusterSearchConnectionsRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeInboundCrossClusterSearchConnectionsPublisher publisher = client.describeInboundCrossClusterSearchConnectionsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeInboundCrossClusterSearchConnectionsPublisher publisher = client.describeInboundCrossClusterSearchConnectionsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.DescribeInboundCrossClusterSearchConnectionsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeInboundCrossClusterSearchConnections(software.amazon.awssdk.services.elasticsearch.model.DescribeInboundCrossClusterSearchConnectionsRequest)} * operation. *

*

* This is a convenience which creates an instance of the * {@link DescribeInboundCrossClusterSearchConnectionsRequest.Builder} avoiding the need to create one manually via * {@link DescribeInboundCrossClusterSearchConnectionsRequest#builder()} *

* * @param describeInboundCrossClusterSearchConnectionsRequest * A {@link Consumer} that will call methods on * {@link DescribeInboundCrossClusterSearchConnectionsRequest.Builder} to create a request. Container for the * parameters to the DescribeInboundCrossClusterSearchConnections operation. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidPaginationTokenException The request processing has failed because of invalid pagination token * provided by customer. Returns an HTTP status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeInboundCrossClusterSearchConnections */ default DescribeInboundCrossClusterSearchConnectionsPublisher describeInboundCrossClusterSearchConnectionsPaginator( Consumer describeInboundCrossClusterSearchConnectionsRequest) { return describeInboundCrossClusterSearchConnectionsPaginator(DescribeInboundCrossClusterSearchConnectionsRequest .builder().applyMutation(describeInboundCrossClusterSearchConnectionsRequest).build()); } /** *

* Lists all the outbound cross-cluster search connections for a source domain. *

* * @param describeOutboundCrossClusterSearchConnectionsRequest * Container for the parameters to the DescribeOutboundCrossClusterSearchConnections * operation. * @return A Java Future containing the result of the DescribeOutboundCrossClusterSearchConnections operation * returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidPaginationTokenException The request processing has failed because of invalid pagination token * provided by customer. Returns an HTTP status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeOutboundCrossClusterSearchConnections */ default CompletableFuture describeOutboundCrossClusterSearchConnections( DescribeOutboundCrossClusterSearchConnectionsRequest describeOutboundCrossClusterSearchConnectionsRequest) { throw new UnsupportedOperationException(); } /** *

* Lists all the outbound cross-cluster search connections for a source domain. *

*
*

* This is a convenience which creates an instance of the * {@link DescribeOutboundCrossClusterSearchConnectionsRequest.Builder} avoiding the need to create one manually via * {@link DescribeOutboundCrossClusterSearchConnectionsRequest#builder()} *

* * @param describeOutboundCrossClusterSearchConnectionsRequest * A {@link Consumer} that will call methods on * {@link DescribeOutboundCrossClusterSearchConnectionsRequest.Builder} to create a request. Container for * the parameters to the DescribeOutboundCrossClusterSearchConnections operation. * @return A Java Future containing the result of the DescribeOutboundCrossClusterSearchConnections operation * returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidPaginationTokenException The request processing has failed because of invalid pagination token * provided by customer. Returns an HTTP status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeOutboundCrossClusterSearchConnections */ default CompletableFuture describeOutboundCrossClusterSearchConnections( Consumer describeOutboundCrossClusterSearchConnectionsRequest) { return describeOutboundCrossClusterSearchConnections(DescribeOutboundCrossClusterSearchConnectionsRequest.builder() .applyMutation(describeOutboundCrossClusterSearchConnectionsRequest).build()); } /** *

* Lists all the outbound cross-cluster search connections for a source domain. *

*
*

* This is a variant of * {@link #describeOutboundCrossClusterSearchConnections(software.amazon.awssdk.services.elasticsearch.model.DescribeOutboundCrossClusterSearchConnectionsRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeOutboundCrossClusterSearchConnectionsPublisher publisher = client.describeOutboundCrossClusterSearchConnectionsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeOutboundCrossClusterSearchConnectionsPublisher publisher = client.describeOutboundCrossClusterSearchConnectionsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.DescribeOutboundCrossClusterSearchConnectionsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeOutboundCrossClusterSearchConnections(software.amazon.awssdk.services.elasticsearch.model.DescribeOutboundCrossClusterSearchConnectionsRequest)} * operation. *

* * @param describeOutboundCrossClusterSearchConnectionsRequest * Container for the parameters to the DescribeOutboundCrossClusterSearchConnections * operation. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidPaginationTokenException The request processing has failed because of invalid pagination token * provided by customer. Returns an HTTP status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeOutboundCrossClusterSearchConnections */ default DescribeOutboundCrossClusterSearchConnectionsPublisher describeOutboundCrossClusterSearchConnectionsPaginator( DescribeOutboundCrossClusterSearchConnectionsRequest describeOutboundCrossClusterSearchConnectionsRequest) { throw new UnsupportedOperationException(); } /** *

* Lists all the outbound cross-cluster search connections for a source domain. *

*
*

* This is a variant of * {@link #describeOutboundCrossClusterSearchConnections(software.amazon.awssdk.services.elasticsearch.model.DescribeOutboundCrossClusterSearchConnectionsRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeOutboundCrossClusterSearchConnectionsPublisher publisher = client.describeOutboundCrossClusterSearchConnectionsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeOutboundCrossClusterSearchConnectionsPublisher publisher = client.describeOutboundCrossClusterSearchConnectionsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.DescribeOutboundCrossClusterSearchConnectionsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeOutboundCrossClusterSearchConnections(software.amazon.awssdk.services.elasticsearch.model.DescribeOutboundCrossClusterSearchConnectionsRequest)} * operation. *

*

* This is a convenience which creates an instance of the * {@link DescribeOutboundCrossClusterSearchConnectionsRequest.Builder} avoiding the need to create one manually via * {@link DescribeOutboundCrossClusterSearchConnectionsRequest#builder()} *

* * @param describeOutboundCrossClusterSearchConnectionsRequest * A {@link Consumer} that will call methods on * {@link DescribeOutboundCrossClusterSearchConnectionsRequest.Builder} to create a request. Container for * the parameters to the DescribeOutboundCrossClusterSearchConnections operation. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidPaginationTokenException The request processing has failed because of invalid pagination token * provided by customer. Returns an HTTP status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeOutboundCrossClusterSearchConnections */ default DescribeOutboundCrossClusterSearchConnectionsPublisher describeOutboundCrossClusterSearchConnectionsPaginator( Consumer describeOutboundCrossClusterSearchConnectionsRequest) { return describeOutboundCrossClusterSearchConnectionsPaginator(DescribeOutboundCrossClusterSearchConnectionsRequest .builder().applyMutation(describeOutboundCrossClusterSearchConnectionsRequest).build()); } /** *

* Describes all packages available to Amazon ES. Includes options for filtering, limiting the number of results, * and pagination. *

* * @param describePackagesRequest * Container for request parameters to DescribePackage operation. * @return A Java Future containing the result of the DescribePackages operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribePackages */ default CompletableFuture describePackages(DescribePackagesRequest describePackagesRequest) { throw new UnsupportedOperationException(); } /** *

* Describes all packages available to Amazon ES. Includes options for filtering, limiting the number of results, * and pagination. *

*
*

* This is a convenience which creates an instance of the {@link DescribePackagesRequest.Builder} avoiding the need * to create one manually via {@link DescribePackagesRequest#builder()} *

* * @param describePackagesRequest * A {@link Consumer} that will call methods on {@link DescribePackagesRequest.Builder} to create a request. * Container for request parameters to DescribePackage operation. * @return A Java Future containing the result of the DescribePackages operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribePackages */ default CompletableFuture describePackages( Consumer describePackagesRequest) { return describePackages(DescribePackagesRequest.builder().applyMutation(describePackagesRequest).build()); } /** *

* Describes all packages available to Amazon ES. Includes options for filtering, limiting the number of results, * and pagination. *

*
*

* This is a variant of * {@link #describePackages(software.amazon.awssdk.services.elasticsearch.model.DescribePackagesRequest)} operation. * The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will * internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribePackagesPublisher publisher = client.describePackagesPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribePackagesPublisher publisher = client.describePackagesPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.DescribePackagesResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describePackages(software.amazon.awssdk.services.elasticsearch.model.DescribePackagesRequest)} * operation. *

* * @param describePackagesRequest * Container for request parameters to DescribePackage operation. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribePackages */ default DescribePackagesPublisher describePackagesPaginator(DescribePackagesRequest describePackagesRequest) { throw new UnsupportedOperationException(); } /** *

* Describes all packages available to Amazon ES. Includes options for filtering, limiting the number of results, * and pagination. *

*
*

* This is a variant of * {@link #describePackages(software.amazon.awssdk.services.elasticsearch.model.DescribePackagesRequest)} operation. * The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will * internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribePackagesPublisher publisher = client.describePackagesPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribePackagesPublisher publisher = client.describePackagesPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.DescribePackagesResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describePackages(software.amazon.awssdk.services.elasticsearch.model.DescribePackagesRequest)} * operation. *

*

* This is a convenience which creates an instance of the {@link DescribePackagesRequest.Builder} avoiding the need * to create one manually via {@link DescribePackagesRequest#builder()} *

* * @param describePackagesRequest * A {@link Consumer} that will call methods on {@link DescribePackagesRequest.Builder} to create a request. * Container for request parameters to DescribePackage operation. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribePackages */ default DescribePackagesPublisher describePackagesPaginator(Consumer describePackagesRequest) { return describePackagesPaginator(DescribePackagesRequest.builder().applyMutation(describePackagesRequest).build()); } /** *

* Lists available reserved Elasticsearch instance offerings. *

* * @param describeReservedElasticsearchInstanceOfferingsRequest * Container for parameters to DescribeReservedElasticsearchInstanceOfferings * @return A Java Future containing the result of the DescribeReservedElasticsearchInstanceOfferings operation * returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeReservedElasticsearchInstanceOfferings */ default CompletableFuture describeReservedElasticsearchInstanceOfferings( DescribeReservedElasticsearchInstanceOfferingsRequest describeReservedElasticsearchInstanceOfferingsRequest) { throw new UnsupportedOperationException(); } /** *

* Lists available reserved Elasticsearch instance offerings. *

*
*

* This is a convenience which creates an instance of the * {@link DescribeReservedElasticsearchInstanceOfferingsRequest.Builder} avoiding the need to create one manually * via {@link DescribeReservedElasticsearchInstanceOfferingsRequest#builder()} *

* * @param describeReservedElasticsearchInstanceOfferingsRequest * A {@link Consumer} that will call methods on * {@link DescribeReservedElasticsearchInstanceOfferingsRequest.Builder} to create a request. Container for * parameters to DescribeReservedElasticsearchInstanceOfferings * @return A Java Future containing the result of the DescribeReservedElasticsearchInstanceOfferings operation * returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeReservedElasticsearchInstanceOfferings */ default CompletableFuture describeReservedElasticsearchInstanceOfferings( Consumer describeReservedElasticsearchInstanceOfferingsRequest) { return describeReservedElasticsearchInstanceOfferings(DescribeReservedElasticsearchInstanceOfferingsRequest.builder() .applyMutation(describeReservedElasticsearchInstanceOfferingsRequest).build()); } /** *

* Lists available reserved Elasticsearch instance offerings. *

* * @return A Java Future containing the result of the DescribeReservedElasticsearchInstanceOfferings operation * returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeReservedElasticsearchInstanceOfferings */ default CompletableFuture describeReservedElasticsearchInstanceOfferings() { return describeReservedElasticsearchInstanceOfferings(DescribeReservedElasticsearchInstanceOfferingsRequest.builder() .build()); } /** *

* Lists available reserved Elasticsearch instance offerings. *

*
*

* This is a variant of * {@link #describeReservedElasticsearchInstanceOfferings(software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstanceOfferingsRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstanceOfferingsPublisher publisher = client.describeReservedElasticsearchInstanceOfferingsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstanceOfferingsPublisher publisher = client.describeReservedElasticsearchInstanceOfferingsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstanceOfferingsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeReservedElasticsearchInstanceOfferings(software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstanceOfferingsRequest)} * operation. *

* * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeReservedElasticsearchInstanceOfferings */ default DescribeReservedElasticsearchInstanceOfferingsPublisher describeReservedElasticsearchInstanceOfferingsPaginator() { return describeReservedElasticsearchInstanceOfferingsPaginator(DescribeReservedElasticsearchInstanceOfferingsRequest .builder().build()); } /** *

* Lists available reserved Elasticsearch instance offerings. *

*
*

* This is a variant of * {@link #describeReservedElasticsearchInstanceOfferings(software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstanceOfferingsRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstanceOfferingsPublisher publisher = client.describeReservedElasticsearchInstanceOfferingsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstanceOfferingsPublisher publisher = client.describeReservedElasticsearchInstanceOfferingsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstanceOfferingsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeReservedElasticsearchInstanceOfferings(software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstanceOfferingsRequest)} * operation. *

* * @param describeReservedElasticsearchInstanceOfferingsRequest * Container for parameters to DescribeReservedElasticsearchInstanceOfferings * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeReservedElasticsearchInstanceOfferings */ default DescribeReservedElasticsearchInstanceOfferingsPublisher describeReservedElasticsearchInstanceOfferingsPaginator( DescribeReservedElasticsearchInstanceOfferingsRequest describeReservedElasticsearchInstanceOfferingsRequest) { throw new UnsupportedOperationException(); } /** *

* Lists available reserved Elasticsearch instance offerings. *

*
*

* This is a variant of * {@link #describeReservedElasticsearchInstanceOfferings(software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstanceOfferingsRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstanceOfferingsPublisher publisher = client.describeReservedElasticsearchInstanceOfferingsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstanceOfferingsPublisher publisher = client.describeReservedElasticsearchInstanceOfferingsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstanceOfferingsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeReservedElasticsearchInstanceOfferings(software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstanceOfferingsRequest)} * operation. *

*

* This is a convenience which creates an instance of the * {@link DescribeReservedElasticsearchInstanceOfferingsRequest.Builder} avoiding the need to create one manually * via {@link DescribeReservedElasticsearchInstanceOfferingsRequest#builder()} *

* * @param describeReservedElasticsearchInstanceOfferingsRequest * A {@link Consumer} that will call methods on * {@link DescribeReservedElasticsearchInstanceOfferingsRequest.Builder} to create a request. Container for * parameters to DescribeReservedElasticsearchInstanceOfferings * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeReservedElasticsearchInstanceOfferings */ default DescribeReservedElasticsearchInstanceOfferingsPublisher describeReservedElasticsearchInstanceOfferingsPaginator( Consumer describeReservedElasticsearchInstanceOfferingsRequest) { return describeReservedElasticsearchInstanceOfferingsPaginator(DescribeReservedElasticsearchInstanceOfferingsRequest .builder().applyMutation(describeReservedElasticsearchInstanceOfferingsRequest).build()); } /** *

* Returns information about reserved Elasticsearch instances for this account. *

* * @param describeReservedElasticsearchInstancesRequest * Container for parameters to DescribeReservedElasticsearchInstances * @return A Java Future containing the result of the DescribeReservedElasticsearchInstances operation returned by * the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeReservedElasticsearchInstances */ default CompletableFuture describeReservedElasticsearchInstances( DescribeReservedElasticsearchInstancesRequest describeReservedElasticsearchInstancesRequest) { throw new UnsupportedOperationException(); } /** *

* Returns information about reserved Elasticsearch instances for this account. *

*
*

* This is a convenience which creates an instance of the * {@link DescribeReservedElasticsearchInstancesRequest.Builder} avoiding the need to create one manually via * {@link DescribeReservedElasticsearchInstancesRequest#builder()} *

* * @param describeReservedElasticsearchInstancesRequest * A {@link Consumer} that will call methods on {@link DescribeReservedElasticsearchInstancesRequest.Builder} * to create a request. Container for parameters to DescribeReservedElasticsearchInstances * @return A Java Future containing the result of the DescribeReservedElasticsearchInstances operation returned by * the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeReservedElasticsearchInstances */ default CompletableFuture describeReservedElasticsearchInstances( Consumer describeReservedElasticsearchInstancesRequest) { return describeReservedElasticsearchInstances(DescribeReservedElasticsearchInstancesRequest.builder() .applyMutation(describeReservedElasticsearchInstancesRequest).build()); } /** *

* Returns information about reserved Elasticsearch instances for this account. *

* * @return A Java Future containing the result of the DescribeReservedElasticsearchInstances operation returned by * the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeReservedElasticsearchInstances */ default CompletableFuture describeReservedElasticsearchInstances() { return describeReservedElasticsearchInstances(DescribeReservedElasticsearchInstancesRequest.builder().build()); } /** *

* Returns information about reserved Elasticsearch instances for this account. *

*
*

* This is a variant of * {@link #describeReservedElasticsearchInstances(software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstancesRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstancesPublisher publisher = client.describeReservedElasticsearchInstancesPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstancesPublisher publisher = client.describeReservedElasticsearchInstancesPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstancesResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeReservedElasticsearchInstances(software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstancesRequest)} * operation. *

* * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeReservedElasticsearchInstances */ default DescribeReservedElasticsearchInstancesPublisher describeReservedElasticsearchInstancesPaginator() { return describeReservedElasticsearchInstancesPaginator(DescribeReservedElasticsearchInstancesRequest.builder().build()); } /** *

* Returns information about reserved Elasticsearch instances for this account. *

*
*

* This is a variant of * {@link #describeReservedElasticsearchInstances(software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstancesRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstancesPublisher publisher = client.describeReservedElasticsearchInstancesPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstancesPublisher publisher = client.describeReservedElasticsearchInstancesPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstancesResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeReservedElasticsearchInstances(software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstancesRequest)} * operation. *

* * @param describeReservedElasticsearchInstancesRequest * Container for parameters to DescribeReservedElasticsearchInstances * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeReservedElasticsearchInstances */ default DescribeReservedElasticsearchInstancesPublisher describeReservedElasticsearchInstancesPaginator( DescribeReservedElasticsearchInstancesRequest describeReservedElasticsearchInstancesRequest) { throw new UnsupportedOperationException(); } /** *

* Returns information about reserved Elasticsearch instances for this account. *

*
*

* This is a variant of * {@link #describeReservedElasticsearchInstances(software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstancesRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstancesPublisher publisher = client.describeReservedElasticsearchInstancesPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstancesPublisher publisher = client.describeReservedElasticsearchInstancesPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstancesResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeReservedElasticsearchInstances(software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstancesRequest)} * operation. *

*

* This is a convenience which creates an instance of the * {@link DescribeReservedElasticsearchInstancesRequest.Builder} avoiding the need to create one manually via * {@link DescribeReservedElasticsearchInstancesRequest#builder()} *

* * @param describeReservedElasticsearchInstancesRequest * A {@link Consumer} that will call methods on {@link DescribeReservedElasticsearchInstancesRequest.Builder} * to create a request. Container for parameters to DescribeReservedElasticsearchInstances * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DescribeReservedElasticsearchInstances */ default DescribeReservedElasticsearchInstancesPublisher describeReservedElasticsearchInstancesPaginator( Consumer describeReservedElasticsearchInstancesRequest) { return describeReservedElasticsearchInstancesPaginator(DescribeReservedElasticsearchInstancesRequest.builder() .applyMutation(describeReservedElasticsearchInstancesRequest).build()); } /** *

* Dissociates a package from the Amazon ES domain. *

* * @param dissociatePackageRequest * Container for request parameters to DissociatePackage operation. * @return A Java Future containing the result of the DissociatePackage operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • ConflictException An error occurred because the client attempts to remove a resource that is * currently in use. Returns HTTP status code 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DissociatePackage */ default CompletableFuture dissociatePackage(DissociatePackageRequest dissociatePackageRequest) { throw new UnsupportedOperationException(); } /** *

* Dissociates a package from the Amazon ES domain. *

*
*

* This is a convenience which creates an instance of the {@link DissociatePackageRequest.Builder} avoiding the need * to create one manually via {@link DissociatePackageRequest#builder()} *

* * @param dissociatePackageRequest * A {@link Consumer} that will call methods on {@link DissociatePackageRequest.Builder} to create a request. * Container for request parameters to DissociatePackage operation. * @return A Java Future containing the result of the DissociatePackage operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • ConflictException An error occurred because the client attempts to remove a resource that is * currently in use. Returns HTTP status code 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.DissociatePackage */ default CompletableFuture dissociatePackage( Consumer dissociatePackageRequest) { return dissociatePackage(DissociatePackageRequest.builder().applyMutation(dissociatePackageRequest).build()); } /** *

* Returns a list of upgrade compatible Elastisearch versions. You can optionally pass a * DomainName to get all upgrade compatible Elasticsearch versions for that specific domain. *

* * @param getCompatibleElasticsearchVersionsRequest * Container for request parameters to GetCompatibleElasticsearchVersions operation. * @return A Java Future containing the result of the GetCompatibleElasticsearchVersions operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.GetCompatibleElasticsearchVersions */ default CompletableFuture getCompatibleElasticsearchVersions( GetCompatibleElasticsearchVersionsRequest getCompatibleElasticsearchVersionsRequest) { throw new UnsupportedOperationException(); } /** *

* Returns a list of upgrade compatible Elastisearch versions. You can optionally pass a * DomainName to get all upgrade compatible Elasticsearch versions for that specific domain. *

*
*

* This is a convenience which creates an instance of the {@link GetCompatibleElasticsearchVersionsRequest.Builder} * avoiding the need to create one manually via {@link GetCompatibleElasticsearchVersionsRequest#builder()} *

* * @param getCompatibleElasticsearchVersionsRequest * A {@link Consumer} that will call methods on {@link GetCompatibleElasticsearchVersionsRequest.Builder} to * create a request. Container for request parameters to * GetCompatibleElasticsearchVersions operation. * @return A Java Future containing the result of the GetCompatibleElasticsearchVersions operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.GetCompatibleElasticsearchVersions */ default CompletableFuture getCompatibleElasticsearchVersions( Consumer getCompatibleElasticsearchVersionsRequest) { return getCompatibleElasticsearchVersions(GetCompatibleElasticsearchVersionsRequest.builder() .applyMutation(getCompatibleElasticsearchVersionsRequest).build()); } /** *

* Returns a list of upgrade compatible Elastisearch versions. You can optionally pass a * DomainName to get all upgrade compatible Elasticsearch versions for that specific domain. *

* * @return A Java Future containing the result of the GetCompatibleElasticsearchVersions operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.GetCompatibleElasticsearchVersions */ default CompletableFuture getCompatibleElasticsearchVersions() { return getCompatibleElasticsearchVersions(GetCompatibleElasticsearchVersionsRequest.builder().build()); } /** *

* Returns a list of versions of the package, along with their creation time and commit message. *

* * @param getPackageVersionHistoryRequest * Container for request parameters to GetPackageVersionHistory operation. * @return A Java Future containing the result of the GetPackageVersionHistory operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.GetPackageVersionHistory */ default CompletableFuture getPackageVersionHistory( GetPackageVersionHistoryRequest getPackageVersionHistoryRequest) { throw new UnsupportedOperationException(); } /** *

* Returns a list of versions of the package, along with their creation time and commit message. *

*
*

* This is a convenience which creates an instance of the {@link GetPackageVersionHistoryRequest.Builder} avoiding * the need to create one manually via {@link GetPackageVersionHistoryRequest#builder()} *

* * @param getPackageVersionHistoryRequest * A {@link Consumer} that will call methods on {@link GetPackageVersionHistoryRequest.Builder} to create a * request. Container for request parameters to GetPackageVersionHistory operation. * @return A Java Future containing the result of the GetPackageVersionHistory operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.GetPackageVersionHistory */ default CompletableFuture getPackageVersionHistory( Consumer getPackageVersionHistoryRequest) { return getPackageVersionHistory(GetPackageVersionHistoryRequest.builder().applyMutation(getPackageVersionHistoryRequest) .build()); } /** *

* Returns a list of versions of the package, along with their creation time and commit message. *

*
*

* This is a variant of * {@link #getPackageVersionHistory(software.amazon.awssdk.services.elasticsearch.model.GetPackageVersionHistoryRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.GetPackageVersionHistoryPublisher publisher = client.getPackageVersionHistoryPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.GetPackageVersionHistoryPublisher publisher = client.getPackageVersionHistoryPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.GetPackageVersionHistoryResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #getPackageVersionHistory(software.amazon.awssdk.services.elasticsearch.model.GetPackageVersionHistoryRequest)} * operation. *

* * @param getPackageVersionHistoryRequest * Container for request parameters to GetPackageVersionHistory operation. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.GetPackageVersionHistory */ default GetPackageVersionHistoryPublisher getPackageVersionHistoryPaginator( GetPackageVersionHistoryRequest getPackageVersionHistoryRequest) { throw new UnsupportedOperationException(); } /** *

* Returns a list of versions of the package, along with their creation time and commit message. *

*
*

* This is a variant of * {@link #getPackageVersionHistory(software.amazon.awssdk.services.elasticsearch.model.GetPackageVersionHistoryRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.GetPackageVersionHistoryPublisher publisher = client.getPackageVersionHistoryPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.GetPackageVersionHistoryPublisher publisher = client.getPackageVersionHistoryPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.GetPackageVersionHistoryResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #getPackageVersionHistory(software.amazon.awssdk.services.elasticsearch.model.GetPackageVersionHistoryRequest)} * operation. *

*

* This is a convenience which creates an instance of the {@link GetPackageVersionHistoryRequest.Builder} avoiding * the need to create one manually via {@link GetPackageVersionHistoryRequest#builder()} *

* * @param getPackageVersionHistoryRequest * A {@link Consumer} that will call methods on {@link GetPackageVersionHistoryRequest.Builder} to create a * request. Container for request parameters to GetPackageVersionHistory operation. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.GetPackageVersionHistory */ default GetPackageVersionHistoryPublisher getPackageVersionHistoryPaginator( Consumer getPackageVersionHistoryRequest) { return getPackageVersionHistoryPaginator(GetPackageVersionHistoryRequest.builder() .applyMutation(getPackageVersionHistoryRequest).build()); } /** *

* Retrieves the complete history of the last 10 upgrades that were performed on the domain. *

* * @param getUpgradeHistoryRequest * Container for request parameters to GetUpgradeHistory operation. * @return A Java Future containing the result of the GetUpgradeHistory operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.GetUpgradeHistory */ default CompletableFuture getUpgradeHistory(GetUpgradeHistoryRequest getUpgradeHistoryRequest) { throw new UnsupportedOperationException(); } /** *

* Retrieves the complete history of the last 10 upgrades that were performed on the domain. *

*
*

* This is a convenience which creates an instance of the {@link GetUpgradeHistoryRequest.Builder} avoiding the need * to create one manually via {@link GetUpgradeHistoryRequest#builder()} *

* * @param getUpgradeHistoryRequest * A {@link Consumer} that will call methods on {@link GetUpgradeHistoryRequest.Builder} to create a request. * Container for request parameters to GetUpgradeHistory operation. * @return A Java Future containing the result of the GetUpgradeHistory operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.GetUpgradeHistory */ default CompletableFuture getUpgradeHistory( Consumer getUpgradeHistoryRequest) { return getUpgradeHistory(GetUpgradeHistoryRequest.builder().applyMutation(getUpgradeHistoryRequest).build()); } /** *

* Retrieves the complete history of the last 10 upgrades that were performed on the domain. *

*
*

* This is a variant of * {@link #getUpgradeHistory(software.amazon.awssdk.services.elasticsearch.model.GetUpgradeHistoryRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.GetUpgradeHistoryPublisher publisher = client.getUpgradeHistoryPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.GetUpgradeHistoryPublisher publisher = client.getUpgradeHistoryPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.GetUpgradeHistoryResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #getUpgradeHistory(software.amazon.awssdk.services.elasticsearch.model.GetUpgradeHistoryRequest)} * operation. *

* * @param getUpgradeHistoryRequest * Container for request parameters to GetUpgradeHistory operation. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.GetUpgradeHistory */ default GetUpgradeHistoryPublisher getUpgradeHistoryPaginator(GetUpgradeHistoryRequest getUpgradeHistoryRequest) { throw new UnsupportedOperationException(); } /** *

* Retrieves the complete history of the last 10 upgrades that were performed on the domain. *

*
*

* This is a variant of * {@link #getUpgradeHistory(software.amazon.awssdk.services.elasticsearch.model.GetUpgradeHistoryRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.GetUpgradeHistoryPublisher publisher = client.getUpgradeHistoryPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.GetUpgradeHistoryPublisher publisher = client.getUpgradeHistoryPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.GetUpgradeHistoryResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #getUpgradeHistory(software.amazon.awssdk.services.elasticsearch.model.GetUpgradeHistoryRequest)} * operation. *

*

* This is a convenience which creates an instance of the {@link GetUpgradeHistoryRequest.Builder} avoiding the need * to create one manually via {@link GetUpgradeHistoryRequest#builder()} *

* * @param getUpgradeHistoryRequest * A {@link Consumer} that will call methods on {@link GetUpgradeHistoryRequest.Builder} to create a request. * Container for request parameters to GetUpgradeHistory operation. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.GetUpgradeHistory */ default GetUpgradeHistoryPublisher getUpgradeHistoryPaginator( Consumer getUpgradeHistoryRequest) { return getUpgradeHistoryPaginator(GetUpgradeHistoryRequest.builder().applyMutation(getUpgradeHistoryRequest).build()); } /** *

* Retrieves the latest status of the last upgrade or upgrade eligibility check that was performed on the domain. *

* * @param getUpgradeStatusRequest * Container for request parameters to GetUpgradeStatus operation. * @return A Java Future containing the result of the GetUpgradeStatus operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.GetUpgradeStatus */ default CompletableFuture getUpgradeStatus(GetUpgradeStatusRequest getUpgradeStatusRequest) { throw new UnsupportedOperationException(); } /** *

* Retrieves the latest status of the last upgrade or upgrade eligibility check that was performed on the domain. *

*
*

* This is a convenience which creates an instance of the {@link GetUpgradeStatusRequest.Builder} avoiding the need * to create one manually via {@link GetUpgradeStatusRequest#builder()} *

* * @param getUpgradeStatusRequest * A {@link Consumer} that will call methods on {@link GetUpgradeStatusRequest.Builder} to create a request. * Container for request parameters to GetUpgradeStatus operation. * @return A Java Future containing the result of the GetUpgradeStatus operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.GetUpgradeStatus */ default CompletableFuture getUpgradeStatus( Consumer getUpgradeStatusRequest) { return getUpgradeStatus(GetUpgradeStatusRequest.builder().applyMutation(getUpgradeStatusRequest).build()); } /** *

* Returns the name of all Elasticsearch domains owned by the current user's account. *

* * @param listDomainNamesRequest * Container for the parameters to the ListDomainNames operation. * @return A Java Future containing the result of the ListDomainNames operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.ListDomainNames */ default CompletableFuture listDomainNames(ListDomainNamesRequest listDomainNamesRequest) { throw new UnsupportedOperationException(); } /** *

* Returns the name of all Elasticsearch domains owned by the current user's account. *

*
*

* This is a convenience which creates an instance of the {@link ListDomainNamesRequest.Builder} avoiding the need * to create one manually via {@link ListDomainNamesRequest#builder()} *

* * @param listDomainNamesRequest * A {@link Consumer} that will call methods on {@link ListDomainNamesRequest.Builder} to create a request. * Container for the parameters to the ListDomainNames operation. * @return A Java Future containing the result of the ListDomainNames operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.ListDomainNames */ default CompletableFuture listDomainNames( Consumer listDomainNamesRequest) { return listDomainNames(ListDomainNamesRequest.builder().applyMutation(listDomainNamesRequest).build()); } /** *

* Returns the name of all Elasticsearch domains owned by the current user's account. *

* * @return A Java Future containing the result of the ListDomainNames operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.ListDomainNames */ default CompletableFuture listDomainNames() { return listDomainNames(ListDomainNamesRequest.builder().build()); } /** *

* Lists all Amazon ES domains associated with the package. *

* * @param listDomainsForPackageRequest * Container for request parameters to ListDomainsForPackage operation. * @return A Java Future containing the result of the ListDomainsForPackage operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.ListDomainsForPackage */ default CompletableFuture listDomainsForPackage( ListDomainsForPackageRequest listDomainsForPackageRequest) { throw new UnsupportedOperationException(); } /** *

* Lists all Amazon ES domains associated with the package. *

*
*

* This is a convenience which creates an instance of the {@link ListDomainsForPackageRequest.Builder} avoiding the * need to create one manually via {@link ListDomainsForPackageRequest#builder()} *

* * @param listDomainsForPackageRequest * A {@link Consumer} that will call methods on {@link ListDomainsForPackageRequest.Builder} to create a * request. Container for request parameters to ListDomainsForPackage operation. * @return A Java Future containing the result of the ListDomainsForPackage operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.ListDomainsForPackage */ default CompletableFuture listDomainsForPackage( Consumer listDomainsForPackageRequest) { return listDomainsForPackage(ListDomainsForPackageRequest.builder().applyMutation(listDomainsForPackageRequest).build()); } /** *

* Lists all Amazon ES domains associated with the package. *

*
*

* This is a variant of * {@link #listDomainsForPackage(software.amazon.awssdk.services.elasticsearch.model.ListDomainsForPackageRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListDomainsForPackagePublisher publisher = client.listDomainsForPackagePaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListDomainsForPackagePublisher publisher = client.listDomainsForPackagePaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.ListDomainsForPackageResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listDomainsForPackage(software.amazon.awssdk.services.elasticsearch.model.ListDomainsForPackageRequest)} * operation. *

* * @param listDomainsForPackageRequest * Container for request parameters to ListDomainsForPackage operation. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.ListDomainsForPackage */ default ListDomainsForPackagePublisher listDomainsForPackagePaginator( ListDomainsForPackageRequest listDomainsForPackageRequest) { throw new UnsupportedOperationException(); } /** *

* Lists all Amazon ES domains associated with the package. *

*
*

* This is a variant of * {@link #listDomainsForPackage(software.amazon.awssdk.services.elasticsearch.model.ListDomainsForPackageRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListDomainsForPackagePublisher publisher = client.listDomainsForPackagePaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListDomainsForPackagePublisher publisher = client.listDomainsForPackagePaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.ListDomainsForPackageResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listDomainsForPackage(software.amazon.awssdk.services.elasticsearch.model.ListDomainsForPackageRequest)} * operation. *

*

* This is a convenience which creates an instance of the {@link ListDomainsForPackageRequest.Builder} avoiding the * need to create one manually via {@link ListDomainsForPackageRequest#builder()} *

* * @param listDomainsForPackageRequest * A {@link Consumer} that will call methods on {@link ListDomainsForPackageRequest.Builder} to create a * request. Container for request parameters to ListDomainsForPackage operation. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.ListDomainsForPackage */ default ListDomainsForPackagePublisher listDomainsForPackagePaginator( Consumer listDomainsForPackageRequest) { return listDomainsForPackagePaginator(ListDomainsForPackageRequest.builder().applyMutation(listDomainsForPackageRequest) .build()); } /** *

* List all Elasticsearch instance types that are supported for given ElasticsearchVersion *

* * @param listElasticsearchInstanceTypesRequest * Container for the parameters to the ListElasticsearchInstanceTypes operation. * @return A Java Future containing the result of the ListElasticsearchInstanceTypes operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.ListElasticsearchInstanceTypes */ default CompletableFuture listElasticsearchInstanceTypes( ListElasticsearchInstanceTypesRequest listElasticsearchInstanceTypesRequest) { throw new UnsupportedOperationException(); } /** *

* List all Elasticsearch instance types that are supported for given ElasticsearchVersion *

*
*

* This is a convenience which creates an instance of the {@link ListElasticsearchInstanceTypesRequest.Builder} * avoiding the need to create one manually via {@link ListElasticsearchInstanceTypesRequest#builder()} *

* * @param listElasticsearchInstanceTypesRequest * A {@link Consumer} that will call methods on {@link ListElasticsearchInstanceTypesRequest.Builder} to * create a request. Container for the parameters to the ListElasticsearchInstanceTypes * operation. * @return A Java Future containing the result of the ListElasticsearchInstanceTypes operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.ListElasticsearchInstanceTypes */ default CompletableFuture listElasticsearchInstanceTypes( Consumer listElasticsearchInstanceTypesRequest) { return listElasticsearchInstanceTypes(ListElasticsearchInstanceTypesRequest.builder() .applyMutation(listElasticsearchInstanceTypesRequest).build()); } /** *

* List all Elasticsearch instance types that are supported for given ElasticsearchVersion *

*
*

* This is a variant of * {@link #listElasticsearchInstanceTypes(software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchInstanceTypesRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchInstanceTypesPublisher publisher = client.listElasticsearchInstanceTypesPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchInstanceTypesPublisher publisher = client.listElasticsearchInstanceTypesPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchInstanceTypesResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listElasticsearchInstanceTypes(software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchInstanceTypesRequest)} * operation. *

* * @param listElasticsearchInstanceTypesRequest * Container for the parameters to the ListElasticsearchInstanceTypes operation. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.ListElasticsearchInstanceTypes */ default ListElasticsearchInstanceTypesPublisher listElasticsearchInstanceTypesPaginator( ListElasticsearchInstanceTypesRequest listElasticsearchInstanceTypesRequest) { throw new UnsupportedOperationException(); } /** *

* List all Elasticsearch instance types that are supported for given ElasticsearchVersion *

*
*

* This is a variant of * {@link #listElasticsearchInstanceTypes(software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchInstanceTypesRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchInstanceTypesPublisher publisher = client.listElasticsearchInstanceTypesPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchInstanceTypesPublisher publisher = client.listElasticsearchInstanceTypesPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchInstanceTypesResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listElasticsearchInstanceTypes(software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchInstanceTypesRequest)} * operation. *

*

* This is a convenience which creates an instance of the {@link ListElasticsearchInstanceTypesRequest.Builder} * avoiding the need to create one manually via {@link ListElasticsearchInstanceTypesRequest#builder()} *

* * @param listElasticsearchInstanceTypesRequest * A {@link Consumer} that will call methods on {@link ListElasticsearchInstanceTypesRequest.Builder} to * create a request. Container for the parameters to the ListElasticsearchInstanceTypes * operation. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.ListElasticsearchInstanceTypes */ default ListElasticsearchInstanceTypesPublisher listElasticsearchInstanceTypesPaginator( Consumer listElasticsearchInstanceTypesRequest) { return listElasticsearchInstanceTypesPaginator(ListElasticsearchInstanceTypesRequest.builder() .applyMutation(listElasticsearchInstanceTypesRequest).build()); } /** *

* List all supported Elasticsearch versions *

* * @param listElasticsearchVersionsRequest * Container for the parameters to the ListElasticsearchVersions operation. *

* Use MaxResults to control the maximum number of results to retrieve in a single * call. *

*

* Use NextToken in response to retrieve more results. If the received response does * not contain a NextToken, then there are no more results to retrieve. *

* @return A Java Future containing the result of the ListElasticsearchVersions operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.ListElasticsearchVersions */ default CompletableFuture listElasticsearchVersions( ListElasticsearchVersionsRequest listElasticsearchVersionsRequest) { throw new UnsupportedOperationException(); } /** *

* List all supported Elasticsearch versions *

*
*

* This is a convenience which creates an instance of the {@link ListElasticsearchVersionsRequest.Builder} avoiding * the need to create one manually via {@link ListElasticsearchVersionsRequest#builder()} *

* * @param listElasticsearchVersionsRequest * A {@link Consumer} that will call methods on {@link ListElasticsearchVersionsRequest.Builder} to create a * request. Container for the parameters to the ListElasticsearchVersions operation. *

* Use MaxResults to control the maximum number of results to retrieve in a single * call. *

*

* Use NextToken in response to retrieve more results. If the received response does * not contain a NextToken, then there are no more results to retrieve. *

* @return A Java Future containing the result of the ListElasticsearchVersions operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.ListElasticsearchVersions */ default CompletableFuture listElasticsearchVersions( Consumer listElasticsearchVersionsRequest) { return listElasticsearchVersions(ListElasticsearchVersionsRequest.builder() .applyMutation(listElasticsearchVersionsRequest).build()); } /** *

* List all supported Elasticsearch versions *

* * @return A Java Future containing the result of the ListElasticsearchVersions operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.ListElasticsearchVersions */ default CompletableFuture listElasticsearchVersions() { return listElasticsearchVersions(ListElasticsearchVersionsRequest.builder().build()); } /** *

* List all supported Elasticsearch versions *

*
*

* This is a variant of * {@link #listElasticsearchVersions(software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchVersionsRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchVersionsPublisher publisher = client.listElasticsearchVersionsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchVersionsPublisher publisher = client.listElasticsearchVersionsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchVersionsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listElasticsearchVersions(software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchVersionsRequest)} * operation. *

* * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.ListElasticsearchVersions */ default ListElasticsearchVersionsPublisher listElasticsearchVersionsPaginator() { return listElasticsearchVersionsPaginator(ListElasticsearchVersionsRequest.builder().build()); } /** *

* List all supported Elasticsearch versions *

*
*

* This is a variant of * {@link #listElasticsearchVersions(software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchVersionsRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchVersionsPublisher publisher = client.listElasticsearchVersionsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchVersionsPublisher publisher = client.listElasticsearchVersionsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchVersionsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listElasticsearchVersions(software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchVersionsRequest)} * operation. *

* * @param listElasticsearchVersionsRequest * Container for the parameters to the ListElasticsearchVersions operation. *

* Use MaxResults to control the maximum number of results to retrieve in a single * call. *

*

* Use NextToken in response to retrieve more results. If the received response does * not contain a NextToken, then there are no more results to retrieve. *

* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.ListElasticsearchVersions */ default ListElasticsearchVersionsPublisher listElasticsearchVersionsPaginator( ListElasticsearchVersionsRequest listElasticsearchVersionsRequest) { throw new UnsupportedOperationException(); } /** *

* List all supported Elasticsearch versions *

*
*

* This is a variant of * {@link #listElasticsearchVersions(software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchVersionsRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchVersionsPublisher publisher = client.listElasticsearchVersionsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchVersionsPublisher publisher = client.listElasticsearchVersionsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchVersionsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listElasticsearchVersions(software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchVersionsRequest)} * operation. *

*

* This is a convenience which creates an instance of the {@link ListElasticsearchVersionsRequest.Builder} avoiding * the need to create one manually via {@link ListElasticsearchVersionsRequest#builder()} *

* * @param listElasticsearchVersionsRequest * A {@link Consumer} that will call methods on {@link ListElasticsearchVersionsRequest.Builder} to create a * request. Container for the parameters to the ListElasticsearchVersions operation. *

* Use MaxResults to control the maximum number of results to retrieve in a single * call. *

*

* Use NextToken in response to retrieve more results. If the received response does * not contain a NextToken, then there are no more results to retrieve. *

* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.ListElasticsearchVersions */ default ListElasticsearchVersionsPublisher listElasticsearchVersionsPaginator( Consumer listElasticsearchVersionsRequest) { return listElasticsearchVersionsPaginator(ListElasticsearchVersionsRequest.builder() .applyMutation(listElasticsearchVersionsRequest).build()); } /** *

* Lists all packages associated with the Amazon ES domain. *

* * @param listPackagesForDomainRequest * Container for request parameters to ListPackagesForDomain operation. * @return A Java Future containing the result of the ListPackagesForDomain operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.ListPackagesForDomain */ default CompletableFuture listPackagesForDomain( ListPackagesForDomainRequest listPackagesForDomainRequest) { throw new UnsupportedOperationException(); } /** *

* Lists all packages associated with the Amazon ES domain. *

*
*

* This is a convenience which creates an instance of the {@link ListPackagesForDomainRequest.Builder} avoiding the * need to create one manually via {@link ListPackagesForDomainRequest#builder()} *

* * @param listPackagesForDomainRequest * A {@link Consumer} that will call methods on {@link ListPackagesForDomainRequest.Builder} to create a * request. Container for request parameters to ListPackagesForDomain operation. * @return A Java Future containing the result of the ListPackagesForDomain operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.ListPackagesForDomain */ default CompletableFuture listPackagesForDomain( Consumer listPackagesForDomainRequest) { return listPackagesForDomain(ListPackagesForDomainRequest.builder().applyMutation(listPackagesForDomainRequest).build()); } /** *

* Lists all packages associated with the Amazon ES domain. *

*
*

* This is a variant of * {@link #listPackagesForDomain(software.amazon.awssdk.services.elasticsearch.model.ListPackagesForDomainRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListPackagesForDomainPublisher publisher = client.listPackagesForDomainPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListPackagesForDomainPublisher publisher = client.listPackagesForDomainPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.ListPackagesForDomainResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listPackagesForDomain(software.amazon.awssdk.services.elasticsearch.model.ListPackagesForDomainRequest)} * operation. *

* * @param listPackagesForDomainRequest * Container for request parameters to ListPackagesForDomain operation. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.ListPackagesForDomain */ default ListPackagesForDomainPublisher listPackagesForDomainPaginator( ListPackagesForDomainRequest listPackagesForDomainRequest) { throw new UnsupportedOperationException(); } /** *

* Lists all packages associated with the Amazon ES domain. *

*
*

* This is a variant of * {@link #listPackagesForDomain(software.amazon.awssdk.services.elasticsearch.model.ListPackagesForDomainRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListPackagesForDomainPublisher publisher = client.listPackagesForDomainPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListPackagesForDomainPublisher publisher = client.listPackagesForDomainPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.elasticsearch.model.ListPackagesForDomainResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listPackagesForDomain(software.amazon.awssdk.services.elasticsearch.model.ListPackagesForDomainRequest)} * operation. *

*

* This is a convenience which creates an instance of the {@link ListPackagesForDomainRequest.Builder} avoiding the * need to create one manually via {@link ListPackagesForDomainRequest#builder()} *

* * @param listPackagesForDomainRequest * A {@link Consumer} that will call methods on {@link ListPackagesForDomainRequest.Builder} to create a * request. Container for request parameters to ListPackagesForDomain operation. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.ListPackagesForDomain */ default ListPackagesForDomainPublisher listPackagesForDomainPaginator( Consumer listPackagesForDomainRequest) { return listPackagesForDomainPaginator(ListPackagesForDomainRequest.builder().applyMutation(listPackagesForDomainRequest) .build()); } /** *

* Returns all tags for the given Elasticsearch domain. *

* * @param listTagsRequest * Container for the parameters to the ListTags operation. Specify the ARN * for the Elasticsearch domain to which the tags are attached that you want to view are attached. * @return A Java Future containing the result of the ListTags operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.ListTags */ default CompletableFuture listTags(ListTagsRequest listTagsRequest) { throw new UnsupportedOperationException(); } /** *

* Returns all tags for the given Elasticsearch domain. *

*
*

* This is a convenience which creates an instance of the {@link ListTagsRequest.Builder} avoiding the need to * create one manually via {@link ListTagsRequest#builder()} *

* * @param listTagsRequest * A {@link Consumer} that will call methods on {@link ListTagsRequest.Builder} to create a request. * Container for the parameters to the ListTags operation. Specify the ARN * for the Elasticsearch domain to which the tags are attached that you want to view are attached. * @return A Java Future containing the result of the ListTags operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.ListTags */ default CompletableFuture listTags(Consumer listTagsRequest) { return listTags(ListTagsRequest.builder().applyMutation(listTagsRequest).build()); } /** *

* Allows you to purchase reserved Elasticsearch instances. *

* * @param purchaseReservedElasticsearchInstanceOfferingRequest * Container for parameters to PurchaseReservedElasticsearchInstanceOffering * @return A Java Future containing the result of the PurchaseReservedElasticsearchInstanceOffering operation * returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ResourceAlreadyExistsException An exception for creating a resource that already exists. Gives http * status code of 400.
  • *
  • LimitExceededException An exception for trying to create more than allowed resources or * sub-resources. Gives http status code of 409.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.PurchaseReservedElasticsearchInstanceOffering */ default CompletableFuture purchaseReservedElasticsearchInstanceOffering( PurchaseReservedElasticsearchInstanceOfferingRequest purchaseReservedElasticsearchInstanceOfferingRequest) { throw new UnsupportedOperationException(); } /** *

* Allows you to purchase reserved Elasticsearch instances. *

*
*

* This is a convenience which creates an instance of the * {@link PurchaseReservedElasticsearchInstanceOfferingRequest.Builder} avoiding the need to create one manually via * {@link PurchaseReservedElasticsearchInstanceOfferingRequest#builder()} *

* * @param purchaseReservedElasticsearchInstanceOfferingRequest * A {@link Consumer} that will call methods on * {@link PurchaseReservedElasticsearchInstanceOfferingRequest.Builder} to create a request. Container for * parameters to PurchaseReservedElasticsearchInstanceOffering * @return A Java Future containing the result of the PurchaseReservedElasticsearchInstanceOffering operation * returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ResourceAlreadyExistsException An exception for creating a resource that already exists. Gives http * status code of 400.
  • *
  • LimitExceededException An exception for trying to create more than allowed resources or * sub-resources. Gives http status code of 409.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.PurchaseReservedElasticsearchInstanceOffering */ default CompletableFuture purchaseReservedElasticsearchInstanceOffering( Consumer purchaseReservedElasticsearchInstanceOfferingRequest) { return purchaseReservedElasticsearchInstanceOffering(PurchaseReservedElasticsearchInstanceOfferingRequest.builder() .applyMutation(purchaseReservedElasticsearchInstanceOfferingRequest).build()); } /** *

* Allows the destination domain owner to reject an inbound cross-cluster search connection request. *

* * @param rejectInboundCrossClusterSearchConnectionRequest * Container for the parameters to the RejectInboundCrossClusterSearchConnection * operation. * @return A Java Future containing the result of the RejectInboundCrossClusterSearchConnection operation returned * by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.RejectInboundCrossClusterSearchConnection */ default CompletableFuture rejectInboundCrossClusterSearchConnection( RejectInboundCrossClusterSearchConnectionRequest rejectInboundCrossClusterSearchConnectionRequest) { throw new UnsupportedOperationException(); } /** *

* Allows the destination domain owner to reject an inbound cross-cluster search connection request. *

*
*

* This is a convenience which creates an instance of the * {@link RejectInboundCrossClusterSearchConnectionRequest.Builder} avoiding the need to create one manually via * {@link RejectInboundCrossClusterSearchConnectionRequest#builder()} *

* * @param rejectInboundCrossClusterSearchConnectionRequest * A {@link Consumer} that will call methods on * {@link RejectInboundCrossClusterSearchConnectionRequest.Builder} to create a request. Container for the * parameters to the RejectInboundCrossClusterSearchConnection operation. * @return A Java Future containing the result of the RejectInboundCrossClusterSearchConnection operation returned * by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.RejectInboundCrossClusterSearchConnection */ default CompletableFuture rejectInboundCrossClusterSearchConnection( Consumer rejectInboundCrossClusterSearchConnectionRequest) { return rejectInboundCrossClusterSearchConnection(RejectInboundCrossClusterSearchConnectionRequest.builder() .applyMutation(rejectInboundCrossClusterSearchConnectionRequest).build()); } /** *

* Removes the specified set of tags from the specified Elasticsearch domain. *

* * @param removeTagsRequest * Container for the parameters to the RemoveTags operation. Specify the ARN * for the Elasticsearch domain from which you want to remove the specified TagKey. * @return A Java Future containing the result of the RemoveTags operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.RemoveTags */ default CompletableFuture removeTags(RemoveTagsRequest removeTagsRequest) { throw new UnsupportedOperationException(); } /** *

* Removes the specified set of tags from the specified Elasticsearch domain. *

*
*

* This is a convenience which creates an instance of the {@link RemoveTagsRequest.Builder} avoiding the need to * create one manually via {@link RemoveTagsRequest#builder()} *

* * @param removeTagsRequest * A {@link Consumer} that will call methods on {@link RemoveTagsRequest.Builder} to create a request. * Container for the parameters to the RemoveTags operation. Specify the ARN * for the Elasticsearch domain from which you want to remove the specified TagKey. * @return A Java Future containing the result of the RemoveTags operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.RemoveTags */ default CompletableFuture removeTags(Consumer removeTagsRequest) { return removeTags(RemoveTagsRequest.builder().applyMutation(removeTagsRequest).build()); } /** *

* Schedules a service software update for an Amazon ES domain. *

* * @param startElasticsearchServiceSoftwareUpdateRequest * Container for the parameters to the StartElasticsearchServiceSoftwareUpdate operation. * Specifies the name of the Elasticsearch domain that you wish to schedule a service software update on. * @return A Java Future containing the result of the StartElasticsearchServiceSoftwareUpdate operation returned by * the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.StartElasticsearchServiceSoftwareUpdate */ default CompletableFuture startElasticsearchServiceSoftwareUpdate( StartElasticsearchServiceSoftwareUpdateRequest startElasticsearchServiceSoftwareUpdateRequest) { throw new UnsupportedOperationException(); } /** *

* Schedules a service software update for an Amazon ES domain. *

*
*

* This is a convenience which creates an instance of the * {@link StartElasticsearchServiceSoftwareUpdateRequest.Builder} avoiding the need to create one manually via * {@link StartElasticsearchServiceSoftwareUpdateRequest#builder()} *

* * @param startElasticsearchServiceSoftwareUpdateRequest * A {@link Consumer} that will call methods on * {@link StartElasticsearchServiceSoftwareUpdateRequest.Builder} to create a request. Container for the * parameters to the StartElasticsearchServiceSoftwareUpdate operation. Specifies the * name of the Elasticsearch domain that you wish to schedule a service software update on. * @return A Java Future containing the result of the StartElasticsearchServiceSoftwareUpdate operation returned by * the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.StartElasticsearchServiceSoftwareUpdate */ default CompletableFuture startElasticsearchServiceSoftwareUpdate( Consumer startElasticsearchServiceSoftwareUpdateRequest) { return startElasticsearchServiceSoftwareUpdate(StartElasticsearchServiceSoftwareUpdateRequest.builder() .applyMutation(startElasticsearchServiceSoftwareUpdateRequest).build()); } /** *

* Modifies the cluster configuration of the specified Elasticsearch domain, setting as setting the instance type * and the number of instances. *

* * @param updateElasticsearchDomainConfigRequest * Container for the parameters to the UpdateElasticsearchDomain operation. Specifies the * type and number of instances in the domain cluster. * @return A Java Future containing the result of the UpdateElasticsearchDomainConfig operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • InvalidTypeException An exception for trying to create or access sub-resource that is either invalid * or not supported. Gives http status code of 409.
  • *
  • LimitExceededException An exception for trying to create more than allowed resources or * sub-resources. Gives http status code of 409.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.UpdateElasticsearchDomainConfig */ default CompletableFuture updateElasticsearchDomainConfig( UpdateElasticsearchDomainConfigRequest updateElasticsearchDomainConfigRequest) { throw new UnsupportedOperationException(); } /** *

* Modifies the cluster configuration of the specified Elasticsearch domain, setting as setting the instance type * and the number of instances. *

*
*

* This is a convenience which creates an instance of the {@link UpdateElasticsearchDomainConfigRequest.Builder} * avoiding the need to create one manually via {@link UpdateElasticsearchDomainConfigRequest#builder()} *

* * @param updateElasticsearchDomainConfigRequest * A {@link Consumer} that will call methods on {@link UpdateElasticsearchDomainConfigRequest.Builder} to * create a request. Container for the parameters to the UpdateElasticsearchDomain * operation. Specifies the type and number of instances in the domain cluster. * @return A Java Future containing the result of the UpdateElasticsearchDomainConfig operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • InvalidTypeException An exception for trying to create or access sub-resource that is either invalid * or not supported. Gives http status code of 409.
  • *
  • LimitExceededException An exception for trying to create more than allowed resources or * sub-resources. Gives http status code of 409.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.UpdateElasticsearchDomainConfig */ default CompletableFuture updateElasticsearchDomainConfig( Consumer updateElasticsearchDomainConfigRequest) { return updateElasticsearchDomainConfig(UpdateElasticsearchDomainConfigRequest.builder() .applyMutation(updateElasticsearchDomainConfigRequest).build()); } /** *

* Updates a package for use with Amazon ES domains. *

* * @param updatePackageRequest * Container for request parameters to UpdatePackage operation. * @return A Java Future containing the result of the UpdatePackage operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • LimitExceededException An exception for trying to create more than allowed resources or * sub-resources. Gives http status code of 409.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.UpdatePackage */ default CompletableFuture updatePackage(UpdatePackageRequest updatePackageRequest) { throw new UnsupportedOperationException(); } /** *

* Updates a package for use with Amazon ES domains. *

*
*

* This is a convenience which creates an instance of the {@link UpdatePackageRequest.Builder} avoiding the need to * create one manually via {@link UpdatePackageRequest#builder()} *

* * @param updatePackageRequest * A {@link Consumer} that will call methods on {@link UpdatePackageRequest.Builder} to create a request. * Container for request parameters to UpdatePackage operation. * @return A Java Future containing the result of the UpdatePackage operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • LimitExceededException An exception for trying to create more than allowed resources or * sub-resources. Gives http status code of 409.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • AccessDeniedException An error occurred because user does not have permissions to access the * resource. Returns HTTP status code 403.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.UpdatePackage */ default CompletableFuture updatePackage(Consumer updatePackageRequest) { return updatePackage(UpdatePackageRequest.builder().applyMutation(updatePackageRequest).build()); } /** *

* Allows you to either upgrade your domain or perform an Upgrade eligibility check to a compatible Elasticsearch * version. *

* * @param upgradeElasticsearchDomainRequest * Container for request parameters to UpgradeElasticsearchDomain operation. * @return A Java Future containing the result of the UpgradeElasticsearchDomain operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ResourceAlreadyExistsException An exception for creating a resource that already exists. Gives http * status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.UpgradeElasticsearchDomain */ default CompletableFuture upgradeElasticsearchDomain( UpgradeElasticsearchDomainRequest upgradeElasticsearchDomainRequest) { throw new UnsupportedOperationException(); } /** *

* Allows you to either upgrade your domain or perform an Upgrade eligibility check to a compatible Elasticsearch * version. *

*
*

* This is a convenience which creates an instance of the {@link UpgradeElasticsearchDomainRequest.Builder} avoiding * the need to create one manually via {@link UpgradeElasticsearchDomainRequest#builder()} *

* * @param upgradeElasticsearchDomainRequest * A {@link Consumer} that will call methods on {@link UpgradeElasticsearchDomainRequest.Builder} to create a * request. Container for request parameters to UpgradeElasticsearchDomain operation. * @return A Java Future containing the result of the UpgradeElasticsearchDomain operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • BaseException An error occurred while processing the request.
  • *
  • ResourceNotFoundException An exception for accessing or deleting a resource that does not exist. * Gives http status code of 400.
  • *
  • ResourceAlreadyExistsException An exception for creating a resource that already exists. Gives http * status code of 400.
  • *
  • DisabledOperationException An error occured because the client wanted to access a not supported * operation. Gives http status code of 409.
  • *
  • ValidationException An exception for missing / invalid input fields. Gives http status code of 400.
  • *
  • InternalException The request processing has failed because of an unknown error, exception or failure * (the failure is internal to the service) . Gives http status code of 500.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticsearchException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.
  • *
* @sample ElasticsearchAsyncClient.UpgradeElasticsearchDomain */ default CompletableFuture upgradeElasticsearchDomain( Consumer upgradeElasticsearchDomainRequest) { return upgradeElasticsearchDomain(UpgradeElasticsearchDomainRequest.builder() .applyMutation(upgradeElasticsearchDomainRequest).build()); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy