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

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

/*
 * 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.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkPublicApi;
import software.amazon.awssdk.annotations.ThreadSafe;
import software.amazon.awssdk.awscore.AwsClient;
import software.amazon.awssdk.awscore.exception.AwsServiceException;
import software.amazon.awssdk.core.exception.SdkClientException;
import software.amazon.awssdk.regions.ServiceMetadata;
import software.amazon.awssdk.services.elasticsearch.model.AcceptInboundCrossClusterSearchConnectionRequest;
import software.amazon.awssdk.services.elasticsearch.model.AcceptInboundCrossClusterSearchConnectionResponse;
import software.amazon.awssdk.services.elasticsearch.model.AccessDeniedException;
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.AuthorizeVpcEndpointAccessRequest;
import software.amazon.awssdk.services.elasticsearch.model.AuthorizeVpcEndpointAccessResponse;
import software.amazon.awssdk.services.elasticsearch.model.BaseException;
import software.amazon.awssdk.services.elasticsearch.model.CancelElasticsearchServiceSoftwareUpdateRequest;
import software.amazon.awssdk.services.elasticsearch.model.CancelElasticsearchServiceSoftwareUpdateResponse;
import software.amazon.awssdk.services.elasticsearch.model.ConflictException;
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.CreateVpcEndpointRequest;
import software.amazon.awssdk.services.elasticsearch.model.CreateVpcEndpointResponse;
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.DeleteVpcEndpointRequest;
import software.amazon.awssdk.services.elasticsearch.model.DeleteVpcEndpointResponse;
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.DescribeVpcEndpointsRequest;
import software.amazon.awssdk.services.elasticsearch.model.DescribeVpcEndpointsResponse;
import software.amazon.awssdk.services.elasticsearch.model.DisabledOperationException;
import software.amazon.awssdk.services.elasticsearch.model.DissociatePackageRequest;
import software.amazon.awssdk.services.elasticsearch.model.DissociatePackageResponse;
import software.amazon.awssdk.services.elasticsearch.model.ElasticsearchException;
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.InternalException;
import software.amazon.awssdk.services.elasticsearch.model.InvalidPaginationTokenException;
import software.amazon.awssdk.services.elasticsearch.model.InvalidTypeException;
import software.amazon.awssdk.services.elasticsearch.model.LimitExceededException;
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.ListVpcEndpointAccessRequest;
import software.amazon.awssdk.services.elasticsearch.model.ListVpcEndpointAccessResponse;
import software.amazon.awssdk.services.elasticsearch.model.ListVpcEndpointsForDomainRequest;
import software.amazon.awssdk.services.elasticsearch.model.ListVpcEndpointsForDomainResponse;
import software.amazon.awssdk.services.elasticsearch.model.ListVpcEndpointsRequest;
import software.amazon.awssdk.services.elasticsearch.model.ListVpcEndpointsResponse;
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.ResourceAlreadyExistsException;
import software.amazon.awssdk.services.elasticsearch.model.ResourceNotFoundException;
import software.amazon.awssdk.services.elasticsearch.model.RevokeVpcEndpointAccessRequest;
import software.amazon.awssdk.services.elasticsearch.model.RevokeVpcEndpointAccessResponse;
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.UpdateVpcEndpointRequest;
import software.amazon.awssdk.services.elasticsearch.model.UpdateVpcEndpointResponse;
import software.amazon.awssdk.services.elasticsearch.model.UpgradeElasticsearchDomainRequest;
import software.amazon.awssdk.services.elasticsearch.model.UpgradeElasticsearchDomainResponse;
import software.amazon.awssdk.services.elasticsearch.model.ValidationException;
import software.amazon.awssdk.services.elasticsearch.paginators.DescribeDomainAutoTunesIterable;
import software.amazon.awssdk.services.elasticsearch.paginators.DescribeInboundCrossClusterSearchConnectionsIterable;
import software.amazon.awssdk.services.elasticsearch.paginators.DescribeOutboundCrossClusterSearchConnectionsIterable;
import software.amazon.awssdk.services.elasticsearch.paginators.DescribePackagesIterable;
import software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstanceOfferingsIterable;
import software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstancesIterable;
import software.amazon.awssdk.services.elasticsearch.paginators.GetPackageVersionHistoryIterable;
import software.amazon.awssdk.services.elasticsearch.paginators.GetUpgradeHistoryIterable;
import software.amazon.awssdk.services.elasticsearch.paginators.ListDomainsForPackageIterable;
import software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchInstanceTypesIterable;
import software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchVersionsIterable;
import software.amazon.awssdk.services.elasticsearch.paginators.ListPackagesForDomainIterable;

/**
 * Service client for accessing Amazon Elasticsearch Service. 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 ElasticsearchClient extends AwsClient { 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"; /** *

* 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 Result of the AcceptInboundCrossClusterSearchConnection operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws LimitExceededException * An exception for trying to create more than allowed resources or sub-resources. Gives http status code of * 409. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.AcceptInboundCrossClusterSearchConnection */ default AcceptInboundCrossClusterSearchConnectionResponse acceptInboundCrossClusterSearchConnection( AcceptInboundCrossClusterSearchConnectionRequest acceptInboundCrossClusterSearchConnectionRequest) throws ResourceNotFoundException, LimitExceededException, DisabledOperationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.AcceptInboundCrossClusterSearchConnectionRequest.Builder} * to create a request. Container for the parameters to the * AcceptInboundCrossClusterSearchConnection operation. * @return Result of the AcceptInboundCrossClusterSearchConnection operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws LimitExceededException * An exception for trying to create more than allowed resources or sub-resources. Gives http status code of * 409. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.AcceptInboundCrossClusterSearchConnection */ default AcceptInboundCrossClusterSearchConnectionResponse acceptInboundCrossClusterSearchConnection( Consumer acceptInboundCrossClusterSearchConnectionRequest) throws ResourceNotFoundException, LimitExceededException, DisabledOperationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the AddTags operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws LimitExceededException * An exception for trying to create more than allowed resources or sub-resources. Gives http status code of * 409. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.AddTags */ default AddTagsResponse addTags(AddTagsRequest addTagsRequest) throws BaseException, LimitExceededException, ValidationException, InternalException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.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 Result of the AddTags operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws LimitExceededException * An exception for trying to create more than allowed resources or sub-resources. Gives http status code of * 409. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.AddTags */ default AddTagsResponse addTags(Consumer addTagsRequest) throws BaseException, LimitExceededException, ValidationException, InternalException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the AssociatePackage operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws ConflictException * An error occurred because the client attempts to remove a resource that is currently in use. Returns HTTP * status code 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.AssociatePackage */ default AssociatePackageResponse associatePackage(AssociatePackageRequest associatePackageRequest) throws BaseException, InternalException, ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.AssociatePackageRequest.Builder} to create a * request. Container for request parameters to AssociatePackage operation. * @return Result of the AssociatePackage operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws ConflictException * An error occurred because the client attempts to remove a resource that is currently in use. Returns HTTP * status code 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.AssociatePackage */ default AssociatePackageResponse associatePackage(Consumer associatePackageRequest) throws BaseException, InternalException, ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, AwsServiceException, SdkClientException, ElasticsearchException { return associatePackage(AssociatePackageRequest.builder().applyMutation(associatePackageRequest).build()); } /** *

* Provides access to an Amazon OpenSearch Service domain through the use of an interface VPC endpoint. *

* * @param authorizeVpcEndpointAccessRequest * Container for request parameters to the AuthorizeVpcEndpointAccess operation. * Specifies the account to be permitted to manage VPC endpoints against the domain. * @return Result of the AuthorizeVpcEndpointAccess operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws LimitExceededException * An exception for trying to create more than allowed resources or sub-resources. Gives http status code of * 409. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws 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. * @throws BaseException * An error occurred while processing the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.AuthorizeVpcEndpointAccess */ default AuthorizeVpcEndpointAccessResponse authorizeVpcEndpointAccess( AuthorizeVpcEndpointAccessRequest authorizeVpcEndpointAccessRequest) throws ResourceNotFoundException, DisabledOperationException, LimitExceededException, ValidationException, InternalException, BaseException, AwsServiceException, SdkClientException, ElasticsearchException { throw new UnsupportedOperationException(); } /** *

* Provides access to an Amazon OpenSearch Service domain through the use of an interface VPC endpoint. *

*
*

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

* * @param authorizeVpcEndpointAccessRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.elasticsearch.model.AuthorizeVpcEndpointAccessRequest.Builder} to * create a request. Container for request parameters to the AuthorizeVpcEndpointAccess * operation. Specifies the account to be permitted to manage VPC endpoints against the domain. * @return Result of the AuthorizeVpcEndpointAccess operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws LimitExceededException * An exception for trying to create more than allowed resources or sub-resources. Gives http status code of * 409. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws 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. * @throws BaseException * An error occurred while processing the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.AuthorizeVpcEndpointAccess */ default AuthorizeVpcEndpointAccessResponse authorizeVpcEndpointAccess( Consumer authorizeVpcEndpointAccessRequest) throws ResourceNotFoundException, DisabledOperationException, LimitExceededException, ValidationException, InternalException, BaseException, AwsServiceException, SdkClientException, ElasticsearchException { return authorizeVpcEndpointAccess(AuthorizeVpcEndpointAccessRequest.builder() .applyMutation(authorizeVpcEndpointAccessRequest).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 Result of the CancelElasticsearchServiceSoftwareUpdate operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.CancelElasticsearchServiceSoftwareUpdate */ default CancelElasticsearchServiceSoftwareUpdateResponse cancelElasticsearchServiceSoftwareUpdate( CancelElasticsearchServiceSoftwareUpdateRequest cancelElasticsearchServiceSoftwareUpdateRequest) throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.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 Result of the CancelElasticsearchServiceSoftwareUpdate operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.CancelElasticsearchServiceSoftwareUpdate */ default CancelElasticsearchServiceSoftwareUpdateResponse cancelElasticsearchServiceSoftwareUpdate( Consumer cancelElasticsearchServiceSoftwareUpdateRequest) throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the CreateElasticsearchDomain operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws 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. * @throws InvalidTypeException * An exception for trying to create or access sub-resource that is either invalid or not supported. Gives * http status code of 409. * @throws LimitExceededException * An exception for trying to create more than allowed resources or sub-resources. Gives http status code of * 409. * @throws ResourceAlreadyExistsException * An exception for creating a resource that already exists. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.CreateElasticsearchDomain */ default CreateElasticsearchDomainResponse createElasticsearchDomain( CreateElasticsearchDomainRequest createElasticsearchDomainRequest) throws BaseException, DisabledOperationException, InternalException, InvalidTypeException, LimitExceededException, ResourceAlreadyExistsException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.CreateElasticsearchDomainRequest.Builder} to * create a request. * @return Result of the CreateElasticsearchDomain operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws 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. * @throws InvalidTypeException * An exception for trying to create or access sub-resource that is either invalid or not supported. Gives * http status code of 409. * @throws LimitExceededException * An exception for trying to create more than allowed resources or sub-resources. Gives http status code of * 409. * @throws ResourceAlreadyExistsException * An exception for creating a resource that already exists. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.CreateElasticsearchDomain */ default CreateElasticsearchDomainResponse createElasticsearchDomain( Consumer createElasticsearchDomainRequest) throws BaseException, DisabledOperationException, InternalException, InvalidTypeException, LimitExceededException, ResourceAlreadyExistsException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the CreateOutboundCrossClusterSearchConnection operation returned by the service. * @throws LimitExceededException * An exception for trying to create more than allowed resources or sub-resources. Gives http status code of * 409. * @throws 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. * @throws ResourceAlreadyExistsException * An exception for creating a resource that already exists. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.CreateOutboundCrossClusterSearchConnection */ default CreateOutboundCrossClusterSearchConnectionResponse createOutboundCrossClusterSearchConnection( CreateOutboundCrossClusterSearchConnectionRequest createOutboundCrossClusterSearchConnectionRequest) throws LimitExceededException, InternalException, ResourceAlreadyExistsException, DisabledOperationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.CreateOutboundCrossClusterSearchConnectionRequest.Builder} * to create a request. Container for the parameters to the * CreateOutboundCrossClusterSearchConnection operation. * @return Result of the CreateOutboundCrossClusterSearchConnection operation returned by the service. * @throws LimitExceededException * An exception for trying to create more than allowed resources or sub-resources. Gives http status code of * 409. * @throws 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. * @throws ResourceAlreadyExistsException * An exception for creating a resource that already exists. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.CreateOutboundCrossClusterSearchConnection */ default CreateOutboundCrossClusterSearchConnectionResponse createOutboundCrossClusterSearchConnection( Consumer createOutboundCrossClusterSearchConnectionRequest) throws LimitExceededException, InternalException, ResourceAlreadyExistsException, DisabledOperationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the CreatePackage operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws LimitExceededException * An exception for trying to create more than allowed resources or sub-resources. Gives http status code of * 409. * @throws InvalidTypeException * An exception for trying to create or access sub-resource that is either invalid or not supported. Gives * http status code of 409. * @throws ResourceAlreadyExistsException * An exception for creating a resource that already exists. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.CreatePackage */ default CreatePackageResponse createPackage(CreatePackageRequest createPackageRequest) throws BaseException, InternalException, LimitExceededException, InvalidTypeException, ResourceAlreadyExistsException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.CreatePackageRequest.Builder} to create a * request. Container for request parameters to CreatePackage operation. * @return Result of the CreatePackage operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws LimitExceededException * An exception for trying to create more than allowed resources or sub-resources. Gives http status code of * 409. * @throws InvalidTypeException * An exception for trying to create or access sub-resource that is either invalid or not supported. Gives * http status code of 409. * @throws ResourceAlreadyExistsException * An exception for creating a resource that already exists. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.CreatePackage */ default CreatePackageResponse createPackage(Consumer createPackageRequest) throws BaseException, InternalException, LimitExceededException, InvalidTypeException, ResourceAlreadyExistsException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { return createPackage(CreatePackageRequest.builder().applyMutation(createPackageRequest).build()); } /** *

* Creates an Amazon OpenSearch Service-managed VPC endpoint. *

* * @param createVpcEndpointRequest * Container for the parameters to the CreateVpcEndpointRequest operation. * @return Result of the CreateVpcEndpoint operation returned by the service. * @throws ConflictException * An error occurred because the client attempts to remove a resource that is currently in use. Returns HTTP * status code 409. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws LimitExceededException * An exception for trying to create more than allowed resources or sub-resources. Gives http status code of * 409. * @throws 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. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws BaseException * An error occurred while processing the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.CreateVpcEndpoint */ default CreateVpcEndpointResponse createVpcEndpoint(CreateVpcEndpointRequest createVpcEndpointRequest) throws ConflictException, ValidationException, LimitExceededException, InternalException, DisabledOperationException, BaseException, AwsServiceException, SdkClientException, ElasticsearchException { throw new UnsupportedOperationException(); } /** *

* Creates an Amazon OpenSearch Service-managed VPC endpoint. *

*
*

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

* * @param createVpcEndpointRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.elasticsearch.model.CreateVpcEndpointRequest.Builder} to create a * request. Container for the parameters to the CreateVpcEndpointRequest operation. * @return Result of the CreateVpcEndpoint operation returned by the service. * @throws ConflictException * An error occurred because the client attempts to remove a resource that is currently in use. Returns HTTP * status code 409. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws LimitExceededException * An exception for trying to create more than allowed resources or sub-resources. Gives http status code of * 409. * @throws 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. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws BaseException * An error occurred while processing the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.CreateVpcEndpoint */ default CreateVpcEndpointResponse createVpcEndpoint(Consumer createVpcEndpointRequest) throws ConflictException, ValidationException, LimitExceededException, InternalException, DisabledOperationException, BaseException, AwsServiceException, SdkClientException, ElasticsearchException { return createVpcEndpoint(CreateVpcEndpointRequest.builder().applyMutation(createVpcEndpointRequest).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 Result of the DeleteElasticsearchDomain operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DeleteElasticsearchDomain */ default DeleteElasticsearchDomainResponse deleteElasticsearchDomain( DeleteElasticsearchDomainRequest deleteElasticsearchDomainRequest) throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.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 Result of the DeleteElasticsearchDomain operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DeleteElasticsearchDomain */ default DeleteElasticsearchDomainResponse deleteElasticsearchDomain( Consumer deleteElasticsearchDomainRequest) throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the DeleteElasticsearchServiceRole operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DeleteElasticsearchServiceRole */ default DeleteElasticsearchServiceRoleResponse deleteElasticsearchServiceRole( DeleteElasticsearchServiceRoleRequest deleteElasticsearchServiceRoleRequest) throws BaseException, InternalException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.DeleteElasticsearchServiceRoleRequest.Builder} * to create a request. * @return Result of the DeleteElasticsearchServiceRole operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DeleteElasticsearchServiceRole */ default DeleteElasticsearchServiceRoleResponse deleteElasticsearchServiceRole( Consumer deleteElasticsearchServiceRoleRequest) throws BaseException, InternalException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the DeleteElasticsearchServiceRole operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DeleteElasticsearchServiceRole * @see #deleteElasticsearchServiceRole(DeleteElasticsearchServiceRoleRequest) */ default DeleteElasticsearchServiceRoleResponse deleteElasticsearchServiceRole() throws BaseException, InternalException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the DeleteInboundCrossClusterSearchConnection operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DeleteInboundCrossClusterSearchConnection */ default DeleteInboundCrossClusterSearchConnectionResponse deleteInboundCrossClusterSearchConnection( DeleteInboundCrossClusterSearchConnectionRequest deleteInboundCrossClusterSearchConnectionRequest) throws ResourceNotFoundException, DisabledOperationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.DeleteInboundCrossClusterSearchConnectionRequest.Builder} * to create a request. Container for the parameters to the * DeleteInboundCrossClusterSearchConnection operation. * @return Result of the DeleteInboundCrossClusterSearchConnection operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DeleteInboundCrossClusterSearchConnection */ default DeleteInboundCrossClusterSearchConnectionResponse deleteInboundCrossClusterSearchConnection( Consumer deleteInboundCrossClusterSearchConnectionRequest) throws ResourceNotFoundException, DisabledOperationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the DeleteOutboundCrossClusterSearchConnection operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DeleteOutboundCrossClusterSearchConnection */ default DeleteOutboundCrossClusterSearchConnectionResponse deleteOutboundCrossClusterSearchConnection( DeleteOutboundCrossClusterSearchConnectionRequest deleteOutboundCrossClusterSearchConnectionRequest) throws ResourceNotFoundException, DisabledOperationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.DeleteOutboundCrossClusterSearchConnectionRequest.Builder} * to create a request. Container for the parameters to the * DeleteOutboundCrossClusterSearchConnection operation. * @return Result of the DeleteOutboundCrossClusterSearchConnection operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DeleteOutboundCrossClusterSearchConnection */ default DeleteOutboundCrossClusterSearchConnectionResponse deleteOutboundCrossClusterSearchConnection( Consumer deleteOutboundCrossClusterSearchConnectionRequest) throws ResourceNotFoundException, DisabledOperationException, AwsServiceException, SdkClientException, ElasticsearchException { return deleteOutboundCrossClusterSearchConnection(DeleteOutboundCrossClusterSearchConnectionRequest.builder() .applyMutation(deleteOutboundCrossClusterSearchConnectionRequest).build()); } /** *

* Delete the package. *

* * @param deletePackageRequest * Container for request parameters to DeletePackage operation. * @return Result of the DeletePackage operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws ConflictException * An error occurred because the client attempts to remove a resource that is currently in use. Returns HTTP * status code 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DeletePackage */ default DeletePackageResponse deletePackage(DeletePackageRequest deletePackageRequest) throws BaseException, InternalException, ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.DeletePackageRequest.Builder} to create a * request. Container for request parameters to DeletePackage operation. * @return Result of the DeletePackage operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws ConflictException * An error occurred because the client attempts to remove a resource that is currently in use. Returns HTTP * status code 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DeletePackage */ default DeletePackageResponse deletePackage(Consumer deletePackageRequest) throws BaseException, InternalException, ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, AwsServiceException, SdkClientException, ElasticsearchException { return deletePackage(DeletePackageRequest.builder().applyMutation(deletePackageRequest).build()); } /** *

* Deletes an Amazon OpenSearch Service-managed interface VPC endpoint. *

* * @param deleteVpcEndpointRequest * Deletes an Amazon OpenSearch Service-managed interface VPC endpoint. * @return Result of the DeleteVpcEndpoint operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws 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. * @throws BaseException * An error occurred while processing the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DeleteVpcEndpoint */ default DeleteVpcEndpointResponse deleteVpcEndpoint(DeleteVpcEndpointRequest deleteVpcEndpointRequest) throws ResourceNotFoundException, DisabledOperationException, InternalException, BaseException, AwsServiceException, SdkClientException, ElasticsearchException { throw new UnsupportedOperationException(); } /** *

* Deletes an Amazon OpenSearch Service-managed interface VPC endpoint. *

*
*

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

* * @param deleteVpcEndpointRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.elasticsearch.model.DeleteVpcEndpointRequest.Builder} to create a * request. Deletes an Amazon OpenSearch Service-managed interface VPC endpoint. * @return Result of the DeleteVpcEndpoint operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws 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. * @throws BaseException * An error occurred while processing the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DeleteVpcEndpoint */ default DeleteVpcEndpointResponse deleteVpcEndpoint(Consumer deleteVpcEndpointRequest) throws ResourceNotFoundException, DisabledOperationException, InternalException, BaseException, AwsServiceException, SdkClientException, ElasticsearchException { return deleteVpcEndpoint(DeleteVpcEndpointRequest.builder().applyMutation(deleteVpcEndpointRequest).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 Result of the DescribeDomainAutoTunes operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeDomainAutoTunes */ default DescribeDomainAutoTunesResponse describeDomainAutoTunes(DescribeDomainAutoTunesRequest describeDomainAutoTunesRequest) throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.DescribeDomainAutoTunesRequest.Builder} to * create a request. Container for the parameters to the DescribeDomainAutoTunes operation. * @return Result of the DescribeDomainAutoTunes operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeDomainAutoTunes */ default DescribeDomainAutoTunesResponse describeDomainAutoTunes( Consumer describeDomainAutoTunesRequest) throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeDomainAutoTunesIterable responses = client.describeDomainAutoTunesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.DescribeDomainAutoTunesIterable responses = client
     *             .describeDomainAutoTunesPaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.DescribeDomainAutoTunesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeDomainAutoTunesIterable responses = client.describeDomainAutoTunesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 iterable that can be used to iterate through all the response pages. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeDomainAutoTunes */ default DescribeDomainAutoTunesIterable describeDomainAutoTunesPaginator( DescribeDomainAutoTunesRequest describeDomainAutoTunesRequest) throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { return new DescribeDomainAutoTunesIterable(this, describeDomainAutoTunesRequest); } /** *

* 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 iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeDomainAutoTunesIterable responses = client.describeDomainAutoTunesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.DescribeDomainAutoTunesIterable responses = client
     *             .describeDomainAutoTunesPaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.DescribeDomainAutoTunesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeDomainAutoTunesIterable responses = client.describeDomainAutoTunesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 software.amazon.awssdk.services.elasticsearch.model.DescribeDomainAutoTunesRequest.Builder} to * create a request. Container for the parameters to the DescribeDomainAutoTunes operation. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeDomainAutoTunes */ default DescribeDomainAutoTunesIterable describeDomainAutoTunesPaginator( Consumer describeDomainAutoTunesRequest) throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the DescribeDomainChangeProgress operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeDomainChangeProgress */ default DescribeDomainChangeProgressResponse describeDomainChangeProgress( DescribeDomainChangeProgressRequest describeDomainChangeProgressRequest) throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.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 Result of the DescribeDomainChangeProgress operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeDomainChangeProgress */ default DescribeDomainChangeProgressResponse describeDomainChangeProgress( Consumer describeDomainChangeProgressRequest) throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the DescribeElasticsearchDomain operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeElasticsearchDomain */ default DescribeElasticsearchDomainResponse describeElasticsearchDomain( DescribeElasticsearchDomainRequest describeElasticsearchDomainRequest) throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.DescribeElasticsearchDomainRequest.Builder} to * create a request. Container for the parameters to the DescribeElasticsearchDomain * operation. * @return Result of the DescribeElasticsearchDomain operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeElasticsearchDomain */ default DescribeElasticsearchDomainResponse describeElasticsearchDomain( Consumer describeElasticsearchDomainRequest) throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the DescribeElasticsearchDomainConfig operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeElasticsearchDomainConfig */ default DescribeElasticsearchDomainConfigResponse describeElasticsearchDomainConfig( DescribeElasticsearchDomainConfigRequest describeElasticsearchDomainConfigRequest) throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.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 Result of the DescribeElasticsearchDomainConfig operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeElasticsearchDomainConfig */ default DescribeElasticsearchDomainConfigResponse describeElasticsearchDomainConfig( Consumer describeElasticsearchDomainConfigRequest) throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the DescribeElasticsearchDomains operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeElasticsearchDomains */ default DescribeElasticsearchDomainsResponse describeElasticsearchDomains( DescribeElasticsearchDomainsRequest describeElasticsearchDomainsRequest) throws BaseException, InternalException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.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 Result of the DescribeElasticsearchDomains operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeElasticsearchDomains */ default DescribeElasticsearchDomainsResponse describeElasticsearchDomains( Consumer describeElasticsearchDomainsRequest) throws BaseException, InternalException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the DescribeElasticsearchInstanceTypeLimits operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws InvalidTypeException * An exception for trying to create or access sub-resource that is either invalid or not supported. Gives * http status code of 409. * @throws LimitExceededException * An exception for trying to create more than allowed resources or sub-resources. Gives http status code of * 409. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeElasticsearchInstanceTypeLimits */ default DescribeElasticsearchInstanceTypeLimitsResponse describeElasticsearchInstanceTypeLimits( DescribeElasticsearchInstanceTypeLimitsRequest describeElasticsearchInstanceTypeLimitsRequest) throws BaseException, InternalException, InvalidTypeException, LimitExceededException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.DescribeElasticsearchInstanceTypeLimitsRequest.Builder} * to create a request. Container for the parameters to * DescribeElasticsearchInstanceTypeLimits operation. * @return Result of the DescribeElasticsearchInstanceTypeLimits operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws InvalidTypeException * An exception for trying to create or access sub-resource that is either invalid or not supported. Gives * http status code of 409. * @throws LimitExceededException * An exception for trying to create more than allowed resources or sub-resources. Gives http status code of * 409. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeElasticsearchInstanceTypeLimits */ default DescribeElasticsearchInstanceTypeLimitsResponse describeElasticsearchInstanceTypeLimits( Consumer describeElasticsearchInstanceTypeLimitsRequest) throws BaseException, InternalException, InvalidTypeException, LimitExceededException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the DescribeInboundCrossClusterSearchConnections operation returned by the service. * @throws InvalidPaginationTokenException * The request processing has failed because of invalid pagination token provided by customer. Returns an * HTTP status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeInboundCrossClusterSearchConnections */ default DescribeInboundCrossClusterSearchConnectionsResponse describeInboundCrossClusterSearchConnections( DescribeInboundCrossClusterSearchConnectionsRequest describeInboundCrossClusterSearchConnectionsRequest) throws InvalidPaginationTokenException, DisabledOperationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.DescribeInboundCrossClusterSearchConnectionsRequest.Builder} * to create a request. Container for the parameters to the * DescribeInboundCrossClusterSearchConnections operation. * @return Result of the DescribeInboundCrossClusterSearchConnections operation returned by the service. * @throws InvalidPaginationTokenException * The request processing has failed because of invalid pagination token provided by customer. Returns an * HTTP status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeInboundCrossClusterSearchConnections */ default DescribeInboundCrossClusterSearchConnectionsResponse describeInboundCrossClusterSearchConnections( Consumer describeInboundCrossClusterSearchConnectionsRequest) throws InvalidPaginationTokenException, DisabledOperationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeInboundCrossClusterSearchConnectionsIterable responses = client.describeInboundCrossClusterSearchConnectionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.DescribeInboundCrossClusterSearchConnectionsIterable responses = client
     *             .describeInboundCrossClusterSearchConnectionsPaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.DescribeInboundCrossClusterSearchConnectionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeInboundCrossClusterSearchConnectionsIterable responses = client.describeInboundCrossClusterSearchConnectionsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 iterable that can be used to iterate through all the response pages. * @throws InvalidPaginationTokenException * The request processing has failed because of invalid pagination token provided by customer. Returns an * HTTP status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeInboundCrossClusterSearchConnections */ default DescribeInboundCrossClusterSearchConnectionsIterable describeInboundCrossClusterSearchConnectionsPaginator( DescribeInboundCrossClusterSearchConnectionsRequest describeInboundCrossClusterSearchConnectionsRequest) throws InvalidPaginationTokenException, DisabledOperationException, AwsServiceException, SdkClientException, ElasticsearchException { return new DescribeInboundCrossClusterSearchConnectionsIterable(this, describeInboundCrossClusterSearchConnectionsRequest); } /** *

* 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 iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeInboundCrossClusterSearchConnectionsIterable responses = client.describeInboundCrossClusterSearchConnectionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.DescribeInboundCrossClusterSearchConnectionsIterable responses = client
     *             .describeInboundCrossClusterSearchConnectionsPaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.DescribeInboundCrossClusterSearchConnectionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeInboundCrossClusterSearchConnectionsIterable responses = client.describeInboundCrossClusterSearchConnectionsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 software.amazon.awssdk.services.elasticsearch.model.DescribeInboundCrossClusterSearchConnectionsRequest.Builder} * to create a request. Container for the parameters to the * DescribeInboundCrossClusterSearchConnections operation. * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidPaginationTokenException * The request processing has failed because of invalid pagination token provided by customer. Returns an * HTTP status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeInboundCrossClusterSearchConnections */ default DescribeInboundCrossClusterSearchConnectionsIterable describeInboundCrossClusterSearchConnectionsPaginator( Consumer describeInboundCrossClusterSearchConnectionsRequest) throws InvalidPaginationTokenException, DisabledOperationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the DescribeOutboundCrossClusterSearchConnections operation returned by the service. * @throws InvalidPaginationTokenException * The request processing has failed because of invalid pagination token provided by customer. Returns an * HTTP status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeOutboundCrossClusterSearchConnections */ default DescribeOutboundCrossClusterSearchConnectionsResponse describeOutboundCrossClusterSearchConnections( DescribeOutboundCrossClusterSearchConnectionsRequest describeOutboundCrossClusterSearchConnectionsRequest) throws InvalidPaginationTokenException, DisabledOperationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.DescribeOutboundCrossClusterSearchConnectionsRequest.Builder} * to create a request. Container for the parameters to the * DescribeOutboundCrossClusterSearchConnections operation. * @return Result of the DescribeOutboundCrossClusterSearchConnections operation returned by the service. * @throws InvalidPaginationTokenException * The request processing has failed because of invalid pagination token provided by customer. Returns an * HTTP status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeOutboundCrossClusterSearchConnections */ default DescribeOutboundCrossClusterSearchConnectionsResponse describeOutboundCrossClusterSearchConnections( Consumer describeOutboundCrossClusterSearchConnectionsRequest) throws InvalidPaginationTokenException, DisabledOperationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeOutboundCrossClusterSearchConnectionsIterable responses = client.describeOutboundCrossClusterSearchConnectionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.DescribeOutboundCrossClusterSearchConnectionsIterable responses = client
     *             .describeOutboundCrossClusterSearchConnectionsPaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.DescribeOutboundCrossClusterSearchConnectionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeOutboundCrossClusterSearchConnectionsIterable responses = client.describeOutboundCrossClusterSearchConnectionsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 iterable that can be used to iterate through all the response pages. * @throws InvalidPaginationTokenException * The request processing has failed because of invalid pagination token provided by customer. Returns an * HTTP status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeOutboundCrossClusterSearchConnections */ default DescribeOutboundCrossClusterSearchConnectionsIterable describeOutboundCrossClusterSearchConnectionsPaginator( DescribeOutboundCrossClusterSearchConnectionsRequest describeOutboundCrossClusterSearchConnectionsRequest) throws InvalidPaginationTokenException, DisabledOperationException, AwsServiceException, SdkClientException, ElasticsearchException { return new DescribeOutboundCrossClusterSearchConnectionsIterable(this, describeOutboundCrossClusterSearchConnectionsRequest); } /** *

* 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 iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeOutboundCrossClusterSearchConnectionsIterable responses = client.describeOutboundCrossClusterSearchConnectionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.DescribeOutboundCrossClusterSearchConnectionsIterable responses = client
     *             .describeOutboundCrossClusterSearchConnectionsPaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.DescribeOutboundCrossClusterSearchConnectionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeOutboundCrossClusterSearchConnectionsIterable responses = client.describeOutboundCrossClusterSearchConnectionsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 software.amazon.awssdk.services.elasticsearch.model.DescribeOutboundCrossClusterSearchConnectionsRequest.Builder} * to create a request. Container for the parameters to the * DescribeOutboundCrossClusterSearchConnections operation. * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidPaginationTokenException * The request processing has failed because of invalid pagination token provided by customer. Returns an * HTTP status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeOutboundCrossClusterSearchConnections */ default DescribeOutboundCrossClusterSearchConnectionsIterable describeOutboundCrossClusterSearchConnectionsPaginator( Consumer describeOutboundCrossClusterSearchConnectionsRequest) throws InvalidPaginationTokenException, DisabledOperationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the DescribePackages operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribePackages */ default DescribePackagesResponse describePackages(DescribePackagesRequest describePackagesRequest) throws BaseException, InternalException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.DescribePackagesRequest.Builder} to create a * request. Container for request parameters to DescribePackage operation. * @return Result of the DescribePackages operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribePackages */ default DescribePackagesResponse describePackages(Consumer describePackagesRequest) throws BaseException, InternalException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 iterable that can be used to iterate through all the pages. SDK will internally * handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribePackagesIterable responses = client.describePackagesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.DescribePackagesIterable responses = client
     *             .describePackagesPaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.DescribePackagesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribePackagesIterable responses = client.describePackagesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 iterable that can be used to iterate through all the response pages. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribePackages */ default DescribePackagesIterable describePackagesPaginator(DescribePackagesRequest describePackagesRequest) throws BaseException, InternalException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { return new DescribePackagesIterable(this, describePackagesRequest); } /** *

* 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 iterable that can be used to iterate through all the pages. SDK will internally * handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribePackagesIterable responses = client.describePackagesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.DescribePackagesIterable responses = client
     *             .describePackagesPaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.DescribePackagesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribePackagesIterable responses = client.describePackagesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 software.amazon.awssdk.services.elasticsearch.model.DescribePackagesRequest.Builder} to create a * request. Container for request parameters to DescribePackage operation. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribePackages */ default DescribePackagesIterable describePackagesPaginator(Consumer describePackagesRequest) throws BaseException, InternalException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { return describePackagesPaginator(DescribePackagesRequest.builder().applyMutation(describePackagesRequest).build()); } /** *

* Lists available reserved Elasticsearch instance offerings. *

* * @param describeReservedElasticsearchInstanceOfferingsRequest * Container for parameters to DescribeReservedElasticsearchInstanceOfferings * @return Result of the DescribeReservedElasticsearchInstanceOfferings operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeReservedElasticsearchInstanceOfferings */ default DescribeReservedElasticsearchInstanceOfferingsResponse describeReservedElasticsearchInstanceOfferings( DescribeReservedElasticsearchInstanceOfferingsRequest describeReservedElasticsearchInstanceOfferingsRequest) throws ResourceNotFoundException, ValidationException, DisabledOperationException, InternalException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstanceOfferingsRequest.Builder} * to create a request. Container for parameters to * DescribeReservedElasticsearchInstanceOfferings * @return Result of the DescribeReservedElasticsearchInstanceOfferings operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeReservedElasticsearchInstanceOfferings */ default DescribeReservedElasticsearchInstanceOfferingsResponse describeReservedElasticsearchInstanceOfferings( Consumer describeReservedElasticsearchInstanceOfferingsRequest) throws ResourceNotFoundException, ValidationException, DisabledOperationException, InternalException, AwsServiceException, SdkClientException, ElasticsearchException { return describeReservedElasticsearchInstanceOfferings(DescribeReservedElasticsearchInstanceOfferingsRequest.builder() .applyMutation(describeReservedElasticsearchInstanceOfferingsRequest).build()); } /** *

* Lists available reserved Elasticsearch instance offerings. *

* * @return Result of the DescribeReservedElasticsearchInstanceOfferings operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeReservedElasticsearchInstanceOfferings * @see #describeReservedElasticsearchInstanceOfferings(DescribeReservedElasticsearchInstanceOfferingsRequest) */ default DescribeReservedElasticsearchInstanceOfferingsResponse describeReservedElasticsearchInstanceOfferings() throws ResourceNotFoundException, ValidationException, DisabledOperationException, InternalException, AwsServiceException, SdkClientException, ElasticsearchException { 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 iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstanceOfferingsIterable responses = client.describeReservedElasticsearchInstanceOfferingsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstanceOfferingsIterable responses = client
     *             .describeReservedElasticsearchInstanceOfferingsPaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstanceOfferingsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstanceOfferingsIterable responses = client.describeReservedElasticsearchInstanceOfferingsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeReservedElasticsearchInstanceOfferings * @see #describeReservedElasticsearchInstanceOfferingsPaginator(DescribeReservedElasticsearchInstanceOfferingsRequest) */ default DescribeReservedElasticsearchInstanceOfferingsIterable describeReservedElasticsearchInstanceOfferingsPaginator() throws ResourceNotFoundException, ValidationException, DisabledOperationException, InternalException, AwsServiceException, SdkClientException, ElasticsearchException { 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 iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstanceOfferingsIterable responses = client.describeReservedElasticsearchInstanceOfferingsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstanceOfferingsIterable responses = client
     *             .describeReservedElasticsearchInstanceOfferingsPaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstanceOfferingsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstanceOfferingsIterable responses = client.describeReservedElasticsearchInstanceOfferingsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeReservedElasticsearchInstanceOfferings */ default DescribeReservedElasticsearchInstanceOfferingsIterable describeReservedElasticsearchInstanceOfferingsPaginator( DescribeReservedElasticsearchInstanceOfferingsRequest describeReservedElasticsearchInstanceOfferingsRequest) throws ResourceNotFoundException, ValidationException, DisabledOperationException, InternalException, AwsServiceException, SdkClientException, ElasticsearchException { return new DescribeReservedElasticsearchInstanceOfferingsIterable(this, describeReservedElasticsearchInstanceOfferingsRequest); } /** *

* 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 iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstanceOfferingsIterable responses = client.describeReservedElasticsearchInstanceOfferingsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstanceOfferingsIterable responses = client
     *             .describeReservedElasticsearchInstanceOfferingsPaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstanceOfferingsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstanceOfferingsIterable responses = client.describeReservedElasticsearchInstanceOfferingsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstanceOfferingsRequest.Builder} * to create a request. Container for parameters to * DescribeReservedElasticsearchInstanceOfferings * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeReservedElasticsearchInstanceOfferings */ default DescribeReservedElasticsearchInstanceOfferingsIterable describeReservedElasticsearchInstanceOfferingsPaginator( Consumer describeReservedElasticsearchInstanceOfferingsRequest) throws ResourceNotFoundException, ValidationException, DisabledOperationException, InternalException, AwsServiceException, SdkClientException, ElasticsearchException { return describeReservedElasticsearchInstanceOfferingsPaginator(DescribeReservedElasticsearchInstanceOfferingsRequest .builder().applyMutation(describeReservedElasticsearchInstanceOfferingsRequest).build()); } /** *

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

* * @param describeReservedElasticsearchInstancesRequest * Container for parameters to DescribeReservedElasticsearchInstances * @return Result of the DescribeReservedElasticsearchInstances operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws 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. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeReservedElasticsearchInstances */ default DescribeReservedElasticsearchInstancesResponse describeReservedElasticsearchInstances( DescribeReservedElasticsearchInstancesRequest describeReservedElasticsearchInstancesRequest) throws ResourceNotFoundException, InternalException, ValidationException, DisabledOperationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstancesRequest.Builder} * to create a request. Container for parameters to DescribeReservedElasticsearchInstances * @return Result of the DescribeReservedElasticsearchInstances operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws 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. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeReservedElasticsearchInstances */ default DescribeReservedElasticsearchInstancesResponse describeReservedElasticsearchInstances( Consumer describeReservedElasticsearchInstancesRequest) throws ResourceNotFoundException, InternalException, ValidationException, DisabledOperationException, AwsServiceException, SdkClientException, ElasticsearchException { return describeReservedElasticsearchInstances(DescribeReservedElasticsearchInstancesRequest.builder() .applyMutation(describeReservedElasticsearchInstancesRequest).build()); } /** *

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

* * @return Result of the DescribeReservedElasticsearchInstances operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws 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. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeReservedElasticsearchInstances * @see #describeReservedElasticsearchInstances(DescribeReservedElasticsearchInstancesRequest) */ default DescribeReservedElasticsearchInstancesResponse describeReservedElasticsearchInstances() throws ResourceNotFoundException, InternalException, ValidationException, DisabledOperationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstancesIterable responses = client.describeReservedElasticsearchInstancesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstancesIterable responses = client
     *             .describeReservedElasticsearchInstancesPaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstancesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstancesIterable responses = client.describeReservedElasticsearchInstancesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws 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. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeReservedElasticsearchInstances * @see #describeReservedElasticsearchInstancesPaginator(DescribeReservedElasticsearchInstancesRequest) */ default DescribeReservedElasticsearchInstancesIterable describeReservedElasticsearchInstancesPaginator() throws ResourceNotFoundException, InternalException, ValidationException, DisabledOperationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstancesIterable responses = client.describeReservedElasticsearchInstancesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstancesIterable responses = client
     *             .describeReservedElasticsearchInstancesPaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstancesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstancesIterable responses = client.describeReservedElasticsearchInstancesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws 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. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeReservedElasticsearchInstances */ default DescribeReservedElasticsearchInstancesIterable describeReservedElasticsearchInstancesPaginator( DescribeReservedElasticsearchInstancesRequest describeReservedElasticsearchInstancesRequest) throws ResourceNotFoundException, InternalException, ValidationException, DisabledOperationException, AwsServiceException, SdkClientException, ElasticsearchException { return new DescribeReservedElasticsearchInstancesIterable(this, describeReservedElasticsearchInstancesRequest); } /** *

* 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 iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstancesIterable responses = client.describeReservedElasticsearchInstancesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstancesIterable responses = client
     *             .describeReservedElasticsearchInstancesPaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstancesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstancesIterable responses = client.describeReservedElasticsearchInstancesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstancesRequest.Builder} * to create a request. Container for parameters to DescribeReservedElasticsearchInstances * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws 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. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeReservedElasticsearchInstances */ default DescribeReservedElasticsearchInstancesIterable describeReservedElasticsearchInstancesPaginator( Consumer describeReservedElasticsearchInstancesRequest) throws ResourceNotFoundException, InternalException, ValidationException, DisabledOperationException, AwsServiceException, SdkClientException, ElasticsearchException { return describeReservedElasticsearchInstancesPaginator(DescribeReservedElasticsearchInstancesRequest.builder() .applyMutation(describeReservedElasticsearchInstancesRequest).build()); } /** *

* Describes one or more Amazon OpenSearch Service-managed VPC endpoints. *

* * @param describeVpcEndpointsRequest * Container for request parameters to the DescribeVpcEndpoints operation. Specifies the * list of VPC endpoints to be described. * @return Result of the DescribeVpcEndpoints operation returned by the service. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws 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. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws BaseException * An error occurred while processing the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeVpcEndpoints */ default DescribeVpcEndpointsResponse describeVpcEndpoints(DescribeVpcEndpointsRequest describeVpcEndpointsRequest) throws ValidationException, InternalException, DisabledOperationException, BaseException, AwsServiceException, SdkClientException, ElasticsearchException { throw new UnsupportedOperationException(); } /** *

* Describes one or more Amazon OpenSearch Service-managed VPC endpoints. *

*
*

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

* * @param describeVpcEndpointsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.elasticsearch.model.DescribeVpcEndpointsRequest.Builder} to create * a request. Container for request parameters to the DescribeVpcEndpoints operation. * Specifies the list of VPC endpoints to be described. * @return Result of the DescribeVpcEndpoints operation returned by the service. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws 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. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws BaseException * An error occurred while processing the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DescribeVpcEndpoints */ default DescribeVpcEndpointsResponse describeVpcEndpoints( Consumer describeVpcEndpointsRequest) throws ValidationException, InternalException, DisabledOperationException, BaseException, AwsServiceException, SdkClientException, ElasticsearchException { return describeVpcEndpoints(DescribeVpcEndpointsRequest.builder().applyMutation(describeVpcEndpointsRequest).build()); } /** *

* Dissociates a package from the Amazon ES domain. *

* * @param dissociatePackageRequest * Container for request parameters to DissociatePackage operation. * @return Result of the DissociatePackage operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws ConflictException * An error occurred because the client attempts to remove a resource that is currently in use. Returns HTTP * status code 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DissociatePackage */ default DissociatePackageResponse dissociatePackage(DissociatePackageRequest dissociatePackageRequest) throws BaseException, InternalException, ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.DissociatePackageRequest.Builder} to create a * request. Container for request parameters to DissociatePackage operation. * @return Result of the DissociatePackage operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws ConflictException * An error occurred because the client attempts to remove a resource that is currently in use. Returns HTTP * status code 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.DissociatePackage */ default DissociatePackageResponse dissociatePackage(Consumer dissociatePackageRequest) throws BaseException, InternalException, ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the GetCompatibleElasticsearchVersions operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.GetCompatibleElasticsearchVersions */ default GetCompatibleElasticsearchVersionsResponse getCompatibleElasticsearchVersions( GetCompatibleElasticsearchVersionsRequest getCompatibleElasticsearchVersionsRequest) throws BaseException, ResourceNotFoundException, DisabledOperationException, ValidationException, InternalException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.GetCompatibleElasticsearchVersionsRequest.Builder} * to create a request. Container for request parameters to * GetCompatibleElasticsearchVersions operation. * @return Result of the GetCompatibleElasticsearchVersions operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.GetCompatibleElasticsearchVersions */ default GetCompatibleElasticsearchVersionsResponse getCompatibleElasticsearchVersions( Consumer getCompatibleElasticsearchVersionsRequest) throws BaseException, ResourceNotFoundException, DisabledOperationException, ValidationException, InternalException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the GetCompatibleElasticsearchVersions operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.GetCompatibleElasticsearchVersions * @see #getCompatibleElasticsearchVersions(GetCompatibleElasticsearchVersionsRequest) */ default GetCompatibleElasticsearchVersionsResponse getCompatibleElasticsearchVersions() throws BaseException, ResourceNotFoundException, DisabledOperationException, ValidationException, InternalException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the GetPackageVersionHistory operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.GetPackageVersionHistory */ default GetPackageVersionHistoryResponse getPackageVersionHistory( GetPackageVersionHistoryRequest getPackageVersionHistoryRequest) throws BaseException, InternalException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.GetPackageVersionHistoryRequest.Builder} to * create a request. Container for request parameters to GetPackageVersionHistory * operation. * @return Result of the GetPackageVersionHistory operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.GetPackageVersionHistory */ default GetPackageVersionHistoryResponse getPackageVersionHistory( Consumer getPackageVersionHistoryRequest) throws BaseException, InternalException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.GetPackageVersionHistoryIterable responses = client.getPackageVersionHistoryPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.GetPackageVersionHistoryIterable responses = client
     *             .getPackageVersionHistoryPaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.GetPackageVersionHistoryResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.GetPackageVersionHistoryIterable responses = client.getPackageVersionHistoryPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 iterable that can be used to iterate through all the response pages. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.GetPackageVersionHistory */ default GetPackageVersionHistoryIterable getPackageVersionHistoryPaginator( GetPackageVersionHistoryRequest getPackageVersionHistoryRequest) throws BaseException, InternalException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { return new GetPackageVersionHistoryIterable(this, getPackageVersionHistoryRequest); } /** *

* 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 iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.GetPackageVersionHistoryIterable responses = client.getPackageVersionHistoryPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.GetPackageVersionHistoryIterable responses = client
     *             .getPackageVersionHistoryPaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.GetPackageVersionHistoryResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.GetPackageVersionHistoryIterable responses = client.getPackageVersionHistoryPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 software.amazon.awssdk.services.elasticsearch.model.GetPackageVersionHistoryRequest.Builder} to * create a request. Container for request parameters to GetPackageVersionHistory * operation. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.GetPackageVersionHistory */ default GetPackageVersionHistoryIterable getPackageVersionHistoryPaginator( Consumer getPackageVersionHistoryRequest) throws BaseException, InternalException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the GetUpgradeHistory operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.GetUpgradeHistory */ default GetUpgradeHistoryResponse getUpgradeHistory(GetUpgradeHistoryRequest getUpgradeHistoryRequest) throws BaseException, ResourceNotFoundException, DisabledOperationException, ValidationException, InternalException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.GetUpgradeHistoryRequest.Builder} to create a * request. Container for request parameters to GetUpgradeHistory operation. * @return Result of the GetUpgradeHistory operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.GetUpgradeHistory */ default GetUpgradeHistoryResponse getUpgradeHistory(Consumer getUpgradeHistoryRequest) throws BaseException, ResourceNotFoundException, DisabledOperationException, ValidationException, InternalException, AwsServiceException, SdkClientException, ElasticsearchException { 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 iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.GetUpgradeHistoryIterable responses = client.getUpgradeHistoryPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.GetUpgradeHistoryIterable responses = client
     *             .getUpgradeHistoryPaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.GetUpgradeHistoryResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.GetUpgradeHistoryIterable responses = client.getUpgradeHistoryPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 iterable that can be used to iterate through all the response pages. * @throws BaseException * An error occurred while processing the request. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.GetUpgradeHistory */ default GetUpgradeHistoryIterable getUpgradeHistoryPaginator(GetUpgradeHistoryRequest getUpgradeHistoryRequest) throws BaseException, ResourceNotFoundException, DisabledOperationException, ValidationException, InternalException, AwsServiceException, SdkClientException, ElasticsearchException { return new GetUpgradeHistoryIterable(this, getUpgradeHistoryRequest); } /** *

* 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 iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.GetUpgradeHistoryIterable responses = client.getUpgradeHistoryPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.GetUpgradeHistoryIterable responses = client
     *             .getUpgradeHistoryPaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.GetUpgradeHistoryResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.GetUpgradeHistoryIterable responses = client.getUpgradeHistoryPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 software.amazon.awssdk.services.elasticsearch.model.GetUpgradeHistoryRequest.Builder} to create a * request. Container for request parameters to GetUpgradeHistory operation. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BaseException * An error occurred while processing the request. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.GetUpgradeHistory */ default GetUpgradeHistoryIterable getUpgradeHistoryPaginator( Consumer getUpgradeHistoryRequest) throws BaseException, ResourceNotFoundException, DisabledOperationException, ValidationException, InternalException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the GetUpgradeStatus operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.GetUpgradeStatus */ default GetUpgradeStatusResponse getUpgradeStatus(GetUpgradeStatusRequest getUpgradeStatusRequest) throws BaseException, ResourceNotFoundException, DisabledOperationException, ValidationException, InternalException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.GetUpgradeStatusRequest.Builder} to create a * request. Container for request parameters to GetUpgradeStatus operation. * @return Result of the GetUpgradeStatus operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.GetUpgradeStatus */ default GetUpgradeStatusResponse getUpgradeStatus(Consumer getUpgradeStatusRequest) throws BaseException, ResourceNotFoundException, DisabledOperationException, ValidationException, InternalException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the ListDomainNames operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListDomainNames */ default ListDomainNamesResponse listDomainNames(ListDomainNamesRequest listDomainNamesRequest) throws BaseException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.ListDomainNamesRequest.Builder} to create a * request. Container for the parameters to the ListDomainNames operation. * @return Result of the ListDomainNames operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListDomainNames */ default ListDomainNamesResponse listDomainNames(Consumer listDomainNamesRequest) throws BaseException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { return listDomainNames(ListDomainNamesRequest.builder().applyMutation(listDomainNamesRequest).build()); } /** *

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

* * @return Result of the ListDomainNames operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListDomainNames * @see #listDomainNames(ListDomainNamesRequest) */ default ListDomainNamesResponse listDomainNames() throws BaseException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { return listDomainNames(ListDomainNamesRequest.builder().build()); } /** *

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

* * @param listDomainsForPackageRequest * Container for request parameters to ListDomainsForPackage operation. * @return Result of the ListDomainsForPackage operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListDomainsForPackage */ default ListDomainsForPackageResponse listDomainsForPackage(ListDomainsForPackageRequest listDomainsForPackageRequest) throws BaseException, InternalException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.ListDomainsForPackageRequest.Builder} to create * a request. Container for request parameters to ListDomainsForPackage operation. * @return Result of the ListDomainsForPackage operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListDomainsForPackage */ default ListDomainsForPackageResponse listDomainsForPackage( Consumer listDomainsForPackageRequest) throws BaseException, InternalException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListDomainsForPackageIterable responses = client.listDomainsForPackagePaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.ListDomainsForPackageIterable responses = client
     *             .listDomainsForPackagePaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.ListDomainsForPackageResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListDomainsForPackageIterable responses = client.listDomainsForPackagePaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 iterable that can be used to iterate through all the response pages. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListDomainsForPackage */ default ListDomainsForPackageIterable listDomainsForPackagePaginator(ListDomainsForPackageRequest listDomainsForPackageRequest) throws BaseException, InternalException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { return new ListDomainsForPackageIterable(this, listDomainsForPackageRequest); } /** *

* 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 iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListDomainsForPackageIterable responses = client.listDomainsForPackagePaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.ListDomainsForPackageIterable responses = client
     *             .listDomainsForPackagePaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.ListDomainsForPackageResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListDomainsForPackageIterable responses = client.listDomainsForPackagePaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 software.amazon.awssdk.services.elasticsearch.model.ListDomainsForPackageRequest.Builder} to create * a request. Container for request parameters to ListDomainsForPackage operation. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListDomainsForPackage */ default ListDomainsForPackageIterable listDomainsForPackagePaginator( Consumer listDomainsForPackageRequest) throws BaseException, InternalException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the ListElasticsearchInstanceTypes operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListElasticsearchInstanceTypes */ default ListElasticsearchInstanceTypesResponse listElasticsearchInstanceTypes( ListElasticsearchInstanceTypesRequest listElasticsearchInstanceTypesRequest) throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchInstanceTypesRequest.Builder} * to create a request. Container for the parameters to the * ListElasticsearchInstanceTypes operation. * @return Result of the ListElasticsearchInstanceTypes operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListElasticsearchInstanceTypes */ default ListElasticsearchInstanceTypesResponse listElasticsearchInstanceTypes( Consumer listElasticsearchInstanceTypesRequest) throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchInstanceTypesIterable responses = client.listElasticsearchInstanceTypesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchInstanceTypesIterable responses = client
     *             .listElasticsearchInstanceTypesPaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchInstanceTypesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchInstanceTypesIterable responses = client.listElasticsearchInstanceTypesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 iterable that can be used to iterate through all the response pages. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListElasticsearchInstanceTypes */ default ListElasticsearchInstanceTypesIterable listElasticsearchInstanceTypesPaginator( ListElasticsearchInstanceTypesRequest listElasticsearchInstanceTypesRequest) throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { return new ListElasticsearchInstanceTypesIterable(this, listElasticsearchInstanceTypesRequest); } /** *

* 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 iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchInstanceTypesIterable responses = client.listElasticsearchInstanceTypesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchInstanceTypesIterable responses = client
     *             .listElasticsearchInstanceTypesPaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchInstanceTypesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchInstanceTypesIterable responses = client.listElasticsearchInstanceTypesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchInstanceTypesRequest.Builder} * to create a request. Container for the parameters to the * ListElasticsearchInstanceTypes operation. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListElasticsearchInstanceTypes */ default ListElasticsearchInstanceTypesIterable listElasticsearchInstanceTypesPaginator( Consumer listElasticsearchInstanceTypesRequest) throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the ListElasticsearchVersions operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListElasticsearchVersions */ default ListElasticsearchVersionsResponse listElasticsearchVersions( ListElasticsearchVersionsRequest listElasticsearchVersionsRequest) throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.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 Result of the ListElasticsearchVersions operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListElasticsearchVersions */ default ListElasticsearchVersionsResponse listElasticsearchVersions( Consumer listElasticsearchVersionsRequest) throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { return listElasticsearchVersions(ListElasticsearchVersionsRequest.builder() .applyMutation(listElasticsearchVersionsRequest).build()); } /** *

* List all supported Elasticsearch versions *

* * @return Result of the ListElasticsearchVersions operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListElasticsearchVersions * @see #listElasticsearchVersions(ListElasticsearchVersionsRequest) */ default ListElasticsearchVersionsResponse listElasticsearchVersions() throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchVersionsIterable responses = client.listElasticsearchVersionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchVersionsIterable responses = client
     *             .listElasticsearchVersionsPaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchVersionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchVersionsIterable responses = client.listElasticsearchVersionsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 iterable that can be used to iterate through all the response pages. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListElasticsearchVersions * @see #listElasticsearchVersionsPaginator(ListElasticsearchVersionsRequest) */ default ListElasticsearchVersionsIterable listElasticsearchVersionsPaginator() throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchVersionsIterable responses = client.listElasticsearchVersionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchVersionsIterable responses = client
     *             .listElasticsearchVersionsPaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchVersionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchVersionsIterable responses = client.listElasticsearchVersionsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 iterable that can be used to iterate through all the response pages. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListElasticsearchVersions */ default ListElasticsearchVersionsIterable listElasticsearchVersionsPaginator( ListElasticsearchVersionsRequest listElasticsearchVersionsRequest) throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { return new ListElasticsearchVersionsIterable(this, listElasticsearchVersionsRequest); } /** *

* 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 iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchVersionsIterable responses = client.listElasticsearchVersionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchVersionsIterable responses = client
     *             .listElasticsearchVersionsPaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchVersionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchVersionsIterable responses = client.listElasticsearchVersionsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 software.amazon.awssdk.services.elasticsearch.model.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 iterable that can be used to iterate through all the response pages. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListElasticsearchVersions */ default ListElasticsearchVersionsIterable listElasticsearchVersionsPaginator( Consumer listElasticsearchVersionsRequest) throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the ListPackagesForDomain operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListPackagesForDomain */ default ListPackagesForDomainResponse listPackagesForDomain(ListPackagesForDomainRequest listPackagesForDomainRequest) throws BaseException, InternalException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.ListPackagesForDomainRequest.Builder} to create * a request. Container for request parameters to ListPackagesForDomain operation. * @return Result of the ListPackagesForDomain operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListPackagesForDomain */ default ListPackagesForDomainResponse listPackagesForDomain( Consumer listPackagesForDomainRequest) throws BaseException, InternalException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListPackagesForDomainIterable responses = client.listPackagesForDomainPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.ListPackagesForDomainIterable responses = client
     *             .listPackagesForDomainPaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.ListPackagesForDomainResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListPackagesForDomainIterable responses = client.listPackagesForDomainPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 iterable that can be used to iterate through all the response pages. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListPackagesForDomain */ default ListPackagesForDomainIterable listPackagesForDomainPaginator(ListPackagesForDomainRequest listPackagesForDomainRequest) throws BaseException, InternalException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { return new ListPackagesForDomainIterable(this, listPackagesForDomainRequest); } /** *

* 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 iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListPackagesForDomainIterable responses = client.listPackagesForDomainPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.elasticsearch.paginators.ListPackagesForDomainIterable responses = client
     *             .listPackagesForDomainPaginator(request);
     *     for (software.amazon.awssdk.services.elasticsearch.model.ListPackagesForDomainResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.elasticsearch.paginators.ListPackagesForDomainIterable responses = client.listPackagesForDomainPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* 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 software.amazon.awssdk.services.elasticsearch.model.ListPackagesForDomainRequest.Builder} to create * a request. Container for request parameters to ListPackagesForDomain operation. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListPackagesForDomain */ default ListPackagesForDomainIterable listPackagesForDomainPaginator( Consumer listPackagesForDomainRequest) throws BaseException, InternalException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the ListTags operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListTags */ default ListTagsResponse listTags(ListTagsRequest listTagsRequest) throws BaseException, ResourceNotFoundException, ValidationException, InternalException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.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 Result of the ListTags operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListTags */ default ListTagsResponse listTags(Consumer listTagsRequest) throws BaseException, ResourceNotFoundException, ValidationException, InternalException, AwsServiceException, SdkClientException, ElasticsearchException { return listTags(ListTagsRequest.builder().applyMutation(listTagsRequest).build()); } /** *

* Retrieves information about each principal that is allowed to access a given Amazon OpenSearch Service domain * through the use of an interface VPC endpoint. *

* * @param listVpcEndpointAccessRequest * Retrieves information about each principal that is allowed to access a given Amazon OpenSearch Service * domain through the use of an interface VPC endpoint * @return Result of the ListVpcEndpointAccess operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws 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. * @throws BaseException * An error occurred while processing the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListVpcEndpointAccess */ default ListVpcEndpointAccessResponse listVpcEndpointAccess(ListVpcEndpointAccessRequest listVpcEndpointAccessRequest) throws ResourceNotFoundException, DisabledOperationException, InternalException, BaseException, AwsServiceException, SdkClientException, ElasticsearchException { throw new UnsupportedOperationException(); } /** *

* Retrieves information about each principal that is allowed to access a given Amazon OpenSearch Service domain * through the use of an interface VPC endpoint. *

*
*

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

* * @param listVpcEndpointAccessRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.elasticsearch.model.ListVpcEndpointAccessRequest.Builder} to create * a request. Retrieves information about each principal that is allowed to access a given Amazon OpenSearch * Service domain through the use of an interface VPC endpoint * @return Result of the ListVpcEndpointAccess operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws 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. * @throws BaseException * An error occurred while processing the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListVpcEndpointAccess */ default ListVpcEndpointAccessResponse listVpcEndpointAccess( Consumer listVpcEndpointAccessRequest) throws ResourceNotFoundException, DisabledOperationException, InternalException, BaseException, AwsServiceException, SdkClientException, ElasticsearchException { return listVpcEndpointAccess(ListVpcEndpointAccessRequest.builder().applyMutation(listVpcEndpointAccessRequest).build()); } /** *

* Retrieves all Amazon OpenSearch Service-managed VPC endpoints in the current account and Region. *

* * @param listVpcEndpointsRequest * Container for request parameters to the ListVpcEndpoints operation. * @return Result of the ListVpcEndpoints operation returned by the service. * @throws 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. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws BaseException * An error occurred while processing the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListVpcEndpoints */ default ListVpcEndpointsResponse listVpcEndpoints(ListVpcEndpointsRequest listVpcEndpointsRequest) throws InternalException, DisabledOperationException, BaseException, AwsServiceException, SdkClientException, ElasticsearchException { throw new UnsupportedOperationException(); } /** *

* Retrieves all Amazon OpenSearch Service-managed VPC endpoints in the current account and Region. *

*
*

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

* * @param listVpcEndpointsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.elasticsearch.model.ListVpcEndpointsRequest.Builder} to create a * request. Container for request parameters to the ListVpcEndpoints operation. * @return Result of the ListVpcEndpoints operation returned by the service. * @throws 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. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws BaseException * An error occurred while processing the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListVpcEndpoints */ default ListVpcEndpointsResponse listVpcEndpoints(Consumer listVpcEndpointsRequest) throws InternalException, DisabledOperationException, BaseException, AwsServiceException, SdkClientException, ElasticsearchException { return listVpcEndpoints(ListVpcEndpointsRequest.builder().applyMutation(listVpcEndpointsRequest).build()); } /** *

* Retrieves all Amazon OpenSearch Service-managed VPC endpoints associated with a particular domain. *

* * @param listVpcEndpointsForDomainRequest * Container for request parameters to the ListVpcEndpointsForDomain operation. Specifies * the domain whose VPC endpoints will be listed. * @return Result of the ListVpcEndpointsForDomain operation returned by the service. * @throws 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. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws BaseException * An error occurred while processing the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListVpcEndpointsForDomain */ default ListVpcEndpointsForDomainResponse listVpcEndpointsForDomain( ListVpcEndpointsForDomainRequest listVpcEndpointsForDomainRequest) throws InternalException, DisabledOperationException, ResourceNotFoundException, BaseException, AwsServiceException, SdkClientException, ElasticsearchException { throw new UnsupportedOperationException(); } /** *

* Retrieves all Amazon OpenSearch Service-managed VPC endpoints associated with a particular domain. *

*
*

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

* * @param listVpcEndpointsForDomainRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.elasticsearch.model.ListVpcEndpointsForDomainRequest.Builder} to * create a request. Container for request parameters to the ListVpcEndpointsForDomain * operation. Specifies the domain whose VPC endpoints will be listed. * @return Result of the ListVpcEndpointsForDomain operation returned by the service. * @throws 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. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws BaseException * An error occurred while processing the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.ListVpcEndpointsForDomain */ default ListVpcEndpointsForDomainResponse listVpcEndpointsForDomain( Consumer listVpcEndpointsForDomainRequest) throws InternalException, DisabledOperationException, ResourceNotFoundException, BaseException, AwsServiceException, SdkClientException, ElasticsearchException { return listVpcEndpointsForDomain(ListVpcEndpointsForDomainRequest.builder() .applyMutation(listVpcEndpointsForDomainRequest).build()); } /** *

* Allows you to purchase reserved Elasticsearch instances. *

* * @param purchaseReservedElasticsearchInstanceOfferingRequest * Container for parameters to PurchaseReservedElasticsearchInstanceOffering * @return Result of the PurchaseReservedElasticsearchInstanceOffering operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ResourceAlreadyExistsException * An exception for creating a resource that already exists. Gives http status code of 400. * @throws LimitExceededException * An exception for trying to create more than allowed resources or sub-resources. Gives http status code of * 409. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.PurchaseReservedElasticsearchInstanceOffering */ default PurchaseReservedElasticsearchInstanceOfferingResponse purchaseReservedElasticsearchInstanceOffering( PurchaseReservedElasticsearchInstanceOfferingRequest purchaseReservedElasticsearchInstanceOfferingRequest) throws ResourceNotFoundException, ResourceAlreadyExistsException, LimitExceededException, DisabledOperationException, ValidationException, InternalException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.PurchaseReservedElasticsearchInstanceOfferingRequest.Builder} * to create a request. Container for parameters to * PurchaseReservedElasticsearchInstanceOffering * @return Result of the PurchaseReservedElasticsearchInstanceOffering operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ResourceAlreadyExistsException * An exception for creating a resource that already exists. Gives http status code of 400. * @throws LimitExceededException * An exception for trying to create more than allowed resources or sub-resources. Gives http status code of * 409. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.PurchaseReservedElasticsearchInstanceOffering */ default PurchaseReservedElasticsearchInstanceOfferingResponse purchaseReservedElasticsearchInstanceOffering( Consumer purchaseReservedElasticsearchInstanceOfferingRequest) throws ResourceNotFoundException, ResourceAlreadyExistsException, LimitExceededException, DisabledOperationException, ValidationException, InternalException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the RejectInboundCrossClusterSearchConnection operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.RejectInboundCrossClusterSearchConnection */ default RejectInboundCrossClusterSearchConnectionResponse rejectInboundCrossClusterSearchConnection( RejectInboundCrossClusterSearchConnectionRequest rejectInboundCrossClusterSearchConnectionRequest) throws ResourceNotFoundException, DisabledOperationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.RejectInboundCrossClusterSearchConnectionRequest.Builder} * to create a request. Container for the parameters to the * RejectInboundCrossClusterSearchConnection operation. * @return Result of the RejectInboundCrossClusterSearchConnection operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.RejectInboundCrossClusterSearchConnection */ default RejectInboundCrossClusterSearchConnectionResponse rejectInboundCrossClusterSearchConnection( Consumer rejectInboundCrossClusterSearchConnectionRequest) throws ResourceNotFoundException, DisabledOperationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the RemoveTags operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.RemoveTags */ default RemoveTagsResponse removeTags(RemoveTagsRequest removeTagsRequest) throws BaseException, ValidationException, InternalException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.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 Result of the RemoveTags operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.RemoveTags */ default RemoveTagsResponse removeTags(Consumer removeTagsRequest) throws BaseException, ValidationException, InternalException, AwsServiceException, SdkClientException, ElasticsearchException { return removeTags(RemoveTagsRequest.builder().applyMutation(removeTagsRequest).build()); } /** *

* Revokes access to an Amazon OpenSearch Service domain that was provided through an interface VPC endpoint. *

* * @param revokeVpcEndpointAccessRequest * Revokes access to an Amazon OpenSearch Service domain that was provided through an interface VPC endpoint. * @return Result of the RevokeVpcEndpointAccess operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws 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. * @throws BaseException * An error occurred while processing the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.RevokeVpcEndpointAccess */ default RevokeVpcEndpointAccessResponse revokeVpcEndpointAccess(RevokeVpcEndpointAccessRequest revokeVpcEndpointAccessRequest) throws ResourceNotFoundException, ValidationException, DisabledOperationException, InternalException, BaseException, AwsServiceException, SdkClientException, ElasticsearchException { throw new UnsupportedOperationException(); } /** *

* Revokes access to an Amazon OpenSearch Service domain that was provided through an interface VPC endpoint. *

*
*

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

* * @param revokeVpcEndpointAccessRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.elasticsearch.model.RevokeVpcEndpointAccessRequest.Builder} to * create a request. Revokes access to an Amazon OpenSearch Service domain that was provided through an * interface VPC endpoint. * @return Result of the RevokeVpcEndpointAccess operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws 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. * @throws BaseException * An error occurred while processing the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.RevokeVpcEndpointAccess */ default RevokeVpcEndpointAccessResponse revokeVpcEndpointAccess( Consumer revokeVpcEndpointAccessRequest) throws ResourceNotFoundException, ValidationException, DisabledOperationException, InternalException, BaseException, AwsServiceException, SdkClientException, ElasticsearchException { return revokeVpcEndpointAccess(RevokeVpcEndpointAccessRequest.builder().applyMutation(revokeVpcEndpointAccessRequest) .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 Result of the StartElasticsearchServiceSoftwareUpdate operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.StartElasticsearchServiceSoftwareUpdate */ default StartElasticsearchServiceSoftwareUpdateResponse startElasticsearchServiceSoftwareUpdate( StartElasticsearchServiceSoftwareUpdateRequest startElasticsearchServiceSoftwareUpdateRequest) throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.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 Result of the StartElasticsearchServiceSoftwareUpdate operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.StartElasticsearchServiceSoftwareUpdate */ default StartElasticsearchServiceSoftwareUpdateResponse startElasticsearchServiceSoftwareUpdate( Consumer startElasticsearchServiceSoftwareUpdateRequest) throws BaseException, InternalException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the UpdateElasticsearchDomainConfig operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws InvalidTypeException * An exception for trying to create or access sub-resource that is either invalid or not supported. Gives * http status code of 409. * @throws LimitExceededException * An exception for trying to create more than allowed resources or sub-resources. Gives http status code of * 409. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.UpdateElasticsearchDomainConfig */ default UpdateElasticsearchDomainConfigResponse updateElasticsearchDomainConfig( UpdateElasticsearchDomainConfigRequest updateElasticsearchDomainConfigRequest) throws BaseException, InternalException, InvalidTypeException, LimitExceededException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.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 Result of the UpdateElasticsearchDomainConfig operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws InvalidTypeException * An exception for trying to create or access sub-resource that is either invalid or not supported. Gives * http status code of 409. * @throws LimitExceededException * An exception for trying to create more than allowed resources or sub-resources. Gives http status code of * 409. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.UpdateElasticsearchDomainConfig */ default UpdateElasticsearchDomainConfigResponse updateElasticsearchDomainConfig( Consumer updateElasticsearchDomainConfigRequest) throws BaseException, InternalException, InvalidTypeException, LimitExceededException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 Result of the UpdatePackage operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws LimitExceededException * An exception for trying to create more than allowed resources or sub-resources. Gives http status code of * 409. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.UpdatePackage */ default UpdatePackageResponse updatePackage(UpdatePackageRequest updatePackageRequest) throws BaseException, InternalException, LimitExceededException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.UpdatePackageRequest.Builder} to create a * request. Container for request parameters to UpdatePackage operation. * @return Result of the UpdatePackage operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws 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. * @throws LimitExceededException * An exception for trying to create more than allowed resources or sub-resources. Gives http status code of * 409. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws AccessDeniedException * An error occurred because user does not have permissions to access the resource. Returns HTTP status code * 403. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.UpdatePackage */ default UpdatePackageResponse updatePackage(Consumer updatePackageRequest) throws BaseException, InternalException, LimitExceededException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ElasticsearchException { return updatePackage(UpdatePackageRequest.builder().applyMutation(updatePackageRequest).build()); } /** *

* Modifies an Amazon OpenSearch Service-managed interface VPC endpoint. *

* * @param updateVpcEndpointRequest * Modifies an Amazon OpenSearch Service-managed interface VPC endpoint. * @return Result of the UpdateVpcEndpoint operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws 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. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws ConflictException * An error occurred because the client attempts to remove a resource that is currently in use. Returns HTTP * status code 409. * @throws BaseException * An error occurred while processing the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.UpdateVpcEndpoint */ default UpdateVpcEndpointResponse updateVpcEndpoint(UpdateVpcEndpointRequest updateVpcEndpointRequest) throws ResourceNotFoundException, DisabledOperationException, InternalException, ValidationException, ConflictException, BaseException, AwsServiceException, SdkClientException, ElasticsearchException { throw new UnsupportedOperationException(); } /** *

* Modifies an Amazon OpenSearch Service-managed interface VPC endpoint. *

*
*

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

* * @param updateVpcEndpointRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.elasticsearch.model.UpdateVpcEndpointRequest.Builder} to create a * request. Modifies an Amazon OpenSearch Service-managed interface VPC endpoint. * @return Result of the UpdateVpcEndpoint operation returned by the service. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws 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. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws ConflictException * An error occurred because the client attempts to remove a resource that is currently in use. Returns HTTP * status code 409. * @throws BaseException * An error occurred while processing the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.UpdateVpcEndpoint */ default UpdateVpcEndpointResponse updateVpcEndpoint(Consumer updateVpcEndpointRequest) throws ResourceNotFoundException, DisabledOperationException, InternalException, ValidationException, ConflictException, BaseException, AwsServiceException, SdkClientException, ElasticsearchException { return updateVpcEndpoint(UpdateVpcEndpointRequest.builder().applyMutation(updateVpcEndpointRequest).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 Result of the UpgradeElasticsearchDomain operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ResourceAlreadyExistsException * An exception for creating a resource that already exists. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.UpgradeElasticsearchDomain */ default UpgradeElasticsearchDomainResponse upgradeElasticsearchDomain( UpgradeElasticsearchDomainRequest upgradeElasticsearchDomainRequest) throws BaseException, ResourceNotFoundException, ResourceAlreadyExistsException, DisabledOperationException, ValidationException, InternalException, AwsServiceException, SdkClientException, ElasticsearchException { 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 software.amazon.awssdk.services.elasticsearch.model.UpgradeElasticsearchDomainRequest.Builder} to * create a request. Container for request parameters to UpgradeElasticsearchDomain * operation. * @return Result of the UpgradeElasticsearchDomain operation returned by the service. * @throws BaseException * An error occurred while processing the request. * @throws ResourceNotFoundException * An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. * @throws ResourceAlreadyExistsException * An exception for creating a resource that already exists. Gives http status code of 400. * @throws DisabledOperationException * An error occured because the client wanted to access a not supported operation. Gives http status code of * 409. * @throws ValidationException * An exception for missing / invalid input fields. Gives http status code of 400. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ElasticsearchException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ElasticsearchClient.UpgradeElasticsearchDomain */ default UpgradeElasticsearchDomainResponse upgradeElasticsearchDomain( Consumer upgradeElasticsearchDomainRequest) throws BaseException, ResourceNotFoundException, ResourceAlreadyExistsException, DisabledOperationException, ValidationException, InternalException, AwsServiceException, SdkClientException, ElasticsearchException { return upgradeElasticsearchDomain(UpgradeElasticsearchDomainRequest.builder() .applyMutation(upgradeElasticsearchDomainRequest).build()); } /** * Create a {@link ElasticsearchClient} 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 ElasticsearchClient create() { return builder().build(); } /** * Create a builder that can be used to configure and create a {@link ElasticsearchClient}. */ static ElasticsearchClientBuilder builder() { return new DefaultElasticsearchClientBuilder(); } static ServiceMetadata serviceMetadata() { return ServiceMetadata.of(SERVICE_METADATA_ID); } @Override default ElasticsearchServiceClientConfiguration serviceClientConfiguration() { throw new UnsupportedOperationException(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy