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

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

/*
 * Copyright 2014-2019 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.awscore.exception.AwsServiceException;
import software.amazon.awssdk.core.SdkClient;
import software.amazon.awssdk.core.exception.SdkClientException;
import software.amazon.awssdk.regions.ServiceMetadata;
import software.amazon.awssdk.services.elasticsearch.model.AddTagsRequest;
import software.amazon.awssdk.services.elasticsearch.model.AddTagsResponse;
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.CreateElasticsearchDomainRequest;
import software.amazon.awssdk.services.elasticsearch.model.CreateElasticsearchDomainResponse;
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.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.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.DisabledOperationException;
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.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.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.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.ListTagsRequest;
import software.amazon.awssdk.services.elasticsearch.model.ListTagsResponse;
import software.amazon.awssdk.services.elasticsearch.model.PurchaseReservedElasticsearchInstanceOfferingRequest;
import software.amazon.awssdk.services.elasticsearch.model.PurchaseReservedElasticsearchInstanceOfferingResponse;
import software.amazon.awssdk.services.elasticsearch.model.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.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.UpgradeElasticsearchDomainRequest;
import software.amazon.awssdk.services.elasticsearch.model.UpgradeElasticsearchDomainResponse;
import software.amazon.awssdk.services.elasticsearch.model.ValidationException;
import software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstanceOfferingsIterable;
import software.amazon.awssdk.services.elasticsearch.paginators.DescribeReservedElasticsearchInstancesIterable;
import software.amazon.awssdk.services.elasticsearch.paginators.GetUpgradeHistoryIterable;
import software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchInstanceTypesIterable;
import software.amazon.awssdk.services.elasticsearch.paginators.ListElasticsearchVersionsIterable;

/**
 * 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. *

*

* 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") public interface ElasticsearchClient extends SdkClient { String SERVICE_NAME = "es"; /** * 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(); } /** *

* 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 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()); } /** *

* 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 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 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()); } /** *

* 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 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. *

* * @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()); } /** *

* 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 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()); } /** *

* 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 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 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 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 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 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. *

* * @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 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. *

*
*

* 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(....);
     * }
     * 
*

* 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(....);
     * }
     * 
*

* 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 { throw new UnsupportedOperationException(); } /** *

* Lists available reserved Elasticsearch instance offerings. *

*
*

* This is a variant of * {@link #describeReservedElasticsearchInstanceOfferings(software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstanceOfferingsRequest)} * operation. The return type is a custom 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(....);
     * }
     * 
*

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

*

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

* * @param describeReservedElasticsearchInstanceOfferingsRequest * A {@link Consumer} that will call methods on * {@link DescribeReservedElasticsearchInstanceOfferingsRequest.Builder} to create a request. Container for * parameters to DescribeReservedElasticsearchInstanceOfferings * @return A custom 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. *

* * @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. *

* * @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 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. *

*
*

* 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(....);
     * }
     * 
*

* 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(....);
     * }
     * 
*

* 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 { throw new UnsupportedOperationException(); } /** *

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

*
*

* This is a variant of * {@link #describeReservedElasticsearchInstances(software.amazon.awssdk.services.elasticsearch.model.DescribeReservedElasticsearchInstancesRequest)} * operation. The return type is a custom 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(....);
     * }
     * 
*

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

*

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

* * @param describeReservedElasticsearchInstancesRequest * A {@link Consumer} that will call methods on {@link DescribeReservedElasticsearchInstancesRequest.Builder} * to create a request. Container for parameters to DescribeReservedElasticsearchInstances * @return A custom 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()); } /** *

* 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 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 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()); } /** *

* 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 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(....);
     * }
     * 
*

* 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 { throw new UnsupportedOperationException(); } /** *

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

*
*

* This is a variant of * {@link #getUpgradeHistory(software.amazon.awssdk.services.elasticsearch.model.GetUpgradeHistoryRequest)} * operation. The return type is a custom 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(....);
     * }
     * 
*

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

*

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

* * @param getUpgradeHistoryRequest * A {@link Consumer} that will call methods on {@link GetUpgradeHistoryRequest.Builder} to create a request. * Container for request parameters to GetUpgradeHistory operation. * @return A custom 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 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. *

* * @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()); } /** *

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

* * @param listDomainNamesRequest * @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 ListDomainNamesRequest.Builder} to create a request. * @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()); } /** *

* 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 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(....);
     * }
     * 
*

* 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 { throw new UnsupportedOperationException(); } /** *

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

*
*

* This is a variant of * {@link #listElasticsearchInstanceTypes(software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchInstanceTypesRequest)} * operation. The return type is a custom 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(....);
     * }
     * 
*

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

*

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

* * @param listElasticsearchInstanceTypesRequest * A {@link Consumer} that will call methods on {@link ListElasticsearchInstanceTypesRequest.Builder} to * create a request. Container for the parameters to the ListElasticsearchInstanceTypes * operation. * @return A custom 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 *

* * @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 *

* * @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 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 *

*
*

* 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(....);
     * }
     * 
*

* 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(....);
     * }
     * 
*

* 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 { throw new UnsupportedOperationException(); } /** *

* List all supported Elasticsearch versions *

*
*

* This is a variant of * {@link #listElasticsearchVersions(software.amazon.awssdk.services.elasticsearch.model.ListElasticsearchVersionsRequest)} * operation. The return type is a custom 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(....);
     * }
     * 
*

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

*

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

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

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

*

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

* @return A custom 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()); } /** *

* 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 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()); } /** *

* 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 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()); } /** *

* 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 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()); } /** *

* 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 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 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()); } /** *

* 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 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()); } static ServiceMetadata serviceMetadata() { return ServiceMetadata.of("es"); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy