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

software.amazon.awssdk.services.elasticinference.ElasticInferenceAsyncClient Maven / Gradle / Ivy

/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */

package software.amazon.awssdk.services.elasticinference;

import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkPublicApi;
import software.amazon.awssdk.annotations.ThreadSafe;
import software.amazon.awssdk.awscore.AwsClient;
import software.amazon.awssdk.services.elasticinference.model.DescribeAcceleratorOfferingsRequest;
import software.amazon.awssdk.services.elasticinference.model.DescribeAcceleratorOfferingsResponse;
import software.amazon.awssdk.services.elasticinference.model.DescribeAcceleratorTypesRequest;
import software.amazon.awssdk.services.elasticinference.model.DescribeAcceleratorTypesResponse;
import software.amazon.awssdk.services.elasticinference.model.DescribeAcceleratorsRequest;
import software.amazon.awssdk.services.elasticinference.model.DescribeAcceleratorsResponse;
import software.amazon.awssdk.services.elasticinference.model.ListTagsForResourceRequest;
import software.amazon.awssdk.services.elasticinference.model.ListTagsForResourceResponse;
import software.amazon.awssdk.services.elasticinference.model.TagResourceRequest;
import software.amazon.awssdk.services.elasticinference.model.TagResourceResponse;
import software.amazon.awssdk.services.elasticinference.model.UntagResourceRequest;
import software.amazon.awssdk.services.elasticinference.model.UntagResourceResponse;
import software.amazon.awssdk.services.elasticinference.paginators.DescribeAcceleratorsPublisher;

/**
 * Service client for accessing Amazon Elastic Inference asynchronously. This can be created using the static
 * {@link #builder()} method.The asynchronous client performs non-blocking I/O when configured with any
 * {@code SdkAsyncHttpClient} supported in the SDK. However, full non-blocking is not guaranteed as the async client may
 * perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API
 * call.
 *
 * 
 * 

* Amazon Elastic Inference is no longer available. *

*
*

* Elastic Inference public APIs. *

*/ @Generated("software.amazon.awssdk:codegen") @SdkPublicApi @ThreadSafe public interface ElasticInferenceAsyncClient extends AwsClient { String SERVICE_NAME = "elastic-inference"; /** * Value for looking up the service's metadata from the * {@link software.amazon.awssdk.regions.ServiceMetadataProvider}. */ String SERVICE_METADATA_ID = "api.elastic-inference"; /** * *

* Amazon Elastic Inference is no longer available. *

*
*

* Describes the locations in which a given accelerator type or set of types is present in a given region. *

* * @param describeAcceleratorOfferingsRequest * @return A Java Future containing the result of the DescribeAcceleratorOfferings operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. The exception returned is wrapped with CompletionException, so you need to invoke * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • BadRequestException Raised when a malformed input has been provided to the API.
  • *
  • ResourceNotFoundException Raised when the requested resource cannot be found.
  • *
  • InternalServerException Raised when an unexpected error occurred during request processing.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticInferenceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample ElasticInferenceAsyncClient.DescribeAcceleratorOfferings * @see AWS API Documentation */ default CompletableFuture describeAcceleratorOfferings( DescribeAcceleratorOfferingsRequest describeAcceleratorOfferingsRequest) { throw new UnsupportedOperationException(); } /** * *

* Amazon Elastic Inference is no longer available. *

*
*

* Describes the locations in which a given accelerator type or set of types is present in a given region. *

*
*

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

* * @param describeAcceleratorOfferingsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.elasticinference.model.DescribeAcceleratorOfferingsRequest.Builder} * to create a request. * @return A Java Future containing the result of the DescribeAcceleratorOfferings operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. The exception returned is wrapped with CompletionException, so you need to invoke * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • BadRequestException Raised when a malformed input has been provided to the API.
  • *
  • ResourceNotFoundException Raised when the requested resource cannot be found.
  • *
  • InternalServerException Raised when an unexpected error occurred during request processing.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticInferenceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample ElasticInferenceAsyncClient.DescribeAcceleratorOfferings * @see AWS API Documentation */ default CompletableFuture describeAcceleratorOfferings( Consumer describeAcceleratorOfferingsRequest) { return describeAcceleratorOfferings(DescribeAcceleratorOfferingsRequest.builder() .applyMutation(describeAcceleratorOfferingsRequest).build()); } /** * *

* Amazon Elastic Inference is no longer available. *

*
*

* Describes the accelerator types available in a given region, as well as their characteristics, such as memory and * throughput. *

* * @param describeAcceleratorTypesRequest * @return A Java Future containing the result of the DescribeAcceleratorTypes operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. The exception returned is wrapped with CompletionException, so you need to invoke * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • InternalServerException Raised when an unexpected error occurred during request processing.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticInferenceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample ElasticInferenceAsyncClient.DescribeAcceleratorTypes * @see AWS API Documentation */ default CompletableFuture describeAcceleratorTypes( DescribeAcceleratorTypesRequest describeAcceleratorTypesRequest) { throw new UnsupportedOperationException(); } /** * *

* Amazon Elastic Inference is no longer available. *

*
*

* Describes the accelerator types available in a given region, as well as their characteristics, such as memory and * throughput. *

*
*

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

* * @param describeAcceleratorTypesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.elasticinference.model.DescribeAcceleratorTypesRequest.Builder} to * create a request. * @return A Java Future containing the result of the DescribeAcceleratorTypes operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. The exception returned is wrapped with CompletionException, so you need to invoke * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • InternalServerException Raised when an unexpected error occurred during request processing.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticInferenceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample ElasticInferenceAsyncClient.DescribeAcceleratorTypes * @see AWS API Documentation */ default CompletableFuture describeAcceleratorTypes( Consumer describeAcceleratorTypesRequest) { return describeAcceleratorTypes(DescribeAcceleratorTypesRequest.builder().applyMutation(describeAcceleratorTypesRequest) .build()); } /** * *

* Amazon Elastic Inference is no longer available. *

*
*

* Describes information over a provided set of accelerators belonging to an account. *

* * @param describeAcceleratorsRequest * @return A Java Future containing the result of the DescribeAccelerators operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. The exception returned is wrapped with CompletionException, so you need to invoke * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • BadRequestException Raised when a malformed input has been provided to the API.
  • *
  • ResourceNotFoundException Raised when the requested resource cannot be found.
  • *
  • InternalServerException Raised when an unexpected error occurred during request processing.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticInferenceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample ElasticInferenceAsyncClient.DescribeAccelerators * @see AWS API Documentation */ default CompletableFuture describeAccelerators( DescribeAcceleratorsRequest describeAcceleratorsRequest) { throw new UnsupportedOperationException(); } /** * *

* Amazon Elastic Inference is no longer available. *

*
*

* Describes information over a provided set of accelerators belonging to an account. *

*
*

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

* * @param describeAcceleratorsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.elasticinference.model.DescribeAcceleratorsRequest.Builder} to * create a request. * @return A Java Future containing the result of the DescribeAccelerators operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. The exception returned is wrapped with CompletionException, so you need to invoke * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • BadRequestException Raised when a malformed input has been provided to the API.
  • *
  • ResourceNotFoundException Raised when the requested resource cannot be found.
  • *
  • InternalServerException Raised when an unexpected error occurred during request processing.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticInferenceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample ElasticInferenceAsyncClient.DescribeAccelerators * @see AWS API Documentation */ default CompletableFuture describeAccelerators( Consumer describeAcceleratorsRequest) { return describeAccelerators(DescribeAcceleratorsRequest.builder().applyMutation(describeAcceleratorsRequest).build()); } /** *

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

*

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

* *

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

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

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

*

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

* * @param describeAcceleratorsRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. The exception returned is wrapped with CompletionException, so you need to invoke * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • BadRequestException Raised when a malformed input has been provided to the API.
  • *
  • ResourceNotFoundException Raised when the requested resource cannot be found.
  • *
  • InternalServerException Raised when an unexpected error occurred during request processing.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticInferenceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample ElasticInferenceAsyncClient.DescribeAccelerators * @see AWS API Documentation */ default DescribeAcceleratorsPublisher describeAcceleratorsPaginator(DescribeAcceleratorsRequest describeAcceleratorsRequest) { return new DescribeAcceleratorsPublisher(this, describeAcceleratorsRequest); } /** *

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

*

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

* *

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

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

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

*

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

*
*

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

* * @param describeAcceleratorsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.elasticinference.model.DescribeAcceleratorsRequest.Builder} to * create a request. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. The exception returned is wrapped with CompletionException, so you need to invoke * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • BadRequestException Raised when a malformed input has been provided to the API.
  • *
  • ResourceNotFoundException Raised when the requested resource cannot be found.
  • *
  • InternalServerException Raised when an unexpected error occurred during request processing.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticInferenceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample ElasticInferenceAsyncClient.DescribeAccelerators * @see AWS API Documentation */ default DescribeAcceleratorsPublisher describeAcceleratorsPaginator( Consumer describeAcceleratorsRequest) { return describeAcceleratorsPaginator(DescribeAcceleratorsRequest.builder().applyMutation(describeAcceleratorsRequest) .build()); } /** * *

* Amazon Elastic Inference is no longer available. *

*
*

* Returns all tags of an Elastic Inference Accelerator. *

* * @param listTagsForResourceRequest * @return A Java Future containing the result of the ListTagsForResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. The exception returned is wrapped with CompletionException, so you need to invoke * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • BadRequestException Raised when a malformed input has been provided to the API.
  • *
  • ResourceNotFoundException Raised when the requested resource cannot be found.
  • *
  • InternalServerException Raised when an unexpected error occurred during request processing.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticInferenceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample ElasticInferenceAsyncClient.ListTagsForResource * @see AWS API Documentation */ default CompletableFuture listTagsForResource( ListTagsForResourceRequest listTagsForResourceRequest) { throw new UnsupportedOperationException(); } /** * *

* Amazon Elastic Inference is no longer available. *

*
*

* Returns all tags of an Elastic Inference Accelerator. *

*
*

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

* * @param listTagsForResourceRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.elasticinference.model.ListTagsForResourceRequest.Builder} to * create a request. * @return A Java Future containing the result of the ListTagsForResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. The exception returned is wrapped with CompletionException, so you need to invoke * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • BadRequestException Raised when a malformed input has been provided to the API.
  • *
  • ResourceNotFoundException Raised when the requested resource cannot be found.
  • *
  • InternalServerException Raised when an unexpected error occurred during request processing.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticInferenceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample ElasticInferenceAsyncClient.ListTagsForResource * @see AWS API Documentation */ default CompletableFuture listTagsForResource( Consumer listTagsForResourceRequest) { return listTagsForResource(ListTagsForResourceRequest.builder().applyMutation(listTagsForResourceRequest).build()); } /** * *

* Amazon Elastic Inference is no longer available. *

*
*

* Adds the specified tags to an Elastic Inference Accelerator. *

* * @param tagResourceRequest * @return A Java Future containing the result of the TagResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. The exception returned is wrapped with CompletionException, so you need to invoke * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • BadRequestException Raised when a malformed input has been provided to the API.
  • *
  • ResourceNotFoundException Raised when the requested resource cannot be found.
  • *
  • InternalServerException Raised when an unexpected error occurred during request processing.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticInferenceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample ElasticInferenceAsyncClient.TagResource * @see AWS * API Documentation */ default CompletableFuture tagResource(TagResourceRequest tagResourceRequest) { throw new UnsupportedOperationException(); } /** * *

* Amazon Elastic Inference is no longer available. *

*
*

* Adds the specified tags to an Elastic Inference Accelerator. *

*
*

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

* * @param tagResourceRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.elasticinference.model.TagResourceRequest.Builder} to create a * request. * @return A Java Future containing the result of the TagResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. The exception returned is wrapped with CompletionException, so you need to invoke * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • BadRequestException Raised when a malformed input has been provided to the API.
  • *
  • ResourceNotFoundException Raised when the requested resource cannot be found.
  • *
  • InternalServerException Raised when an unexpected error occurred during request processing.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticInferenceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample ElasticInferenceAsyncClient.TagResource * @see AWS * API Documentation */ default CompletableFuture tagResource(Consumer tagResourceRequest) { return tagResource(TagResourceRequest.builder().applyMutation(tagResourceRequest).build()); } /** * *

* Amazon Elastic Inference is no longer available. *

*
*

* Removes the specified tags from an Elastic Inference Accelerator. *

* * @param untagResourceRequest * @return A Java Future containing the result of the UntagResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. The exception returned is wrapped with CompletionException, so you need to invoke * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • BadRequestException Raised when a malformed input has been provided to the API.
  • *
  • ResourceNotFoundException Raised when the requested resource cannot be found.
  • *
  • InternalServerException Raised when an unexpected error occurred during request processing.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticInferenceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample ElasticInferenceAsyncClient.UntagResource * @see AWS API Documentation */ default CompletableFuture untagResource(UntagResourceRequest untagResourceRequest) { throw new UnsupportedOperationException(); } /** * *

* Amazon Elastic Inference is no longer available. *

*
*

* Removes the specified tags from an Elastic Inference Accelerator. *

*
*

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

* * @param untagResourceRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.elasticinference.model.UntagResourceRequest.Builder} to create a * request. * @return A Java Future containing the result of the UntagResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. The exception returned is wrapped with CompletionException, so you need to invoke * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • BadRequestException Raised when a malformed input has been provided to the API.
  • *
  • ResourceNotFoundException Raised when the requested resource cannot be found.
  • *
  • InternalServerException Raised when an unexpected error occurred during request processing.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ElasticInferenceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample ElasticInferenceAsyncClient.UntagResource * @see AWS API Documentation */ default CompletableFuture untagResource(Consumer untagResourceRequest) { return untagResource(UntagResourceRequest.builder().applyMutation(untagResourceRequest).build()); } @Override default ElasticInferenceServiceClientConfiguration serviceClientConfiguration() { throw new UnsupportedOperationException(); } /** * Create a {@link ElasticInferenceAsyncClient} 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 ElasticInferenceAsyncClient create() { return builder().build(); } /** * Create a builder that can be used to configure and create a {@link ElasticInferenceAsyncClient}. */ static ElasticInferenceAsyncClientBuilder builder() { return new DefaultElasticInferenceAsyncClientBuilder(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy