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

software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.LicenseManagerLinuxSubscriptionsAsyncClient Maven / Gradle / Ivy

Go to download

The AWS Java SDK for License Manager Linux Subscriptions module holds the client classes that are used for communicating with License Manager Linux Subscriptions.

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

package software.amazon.awssdk.services.licensemanagerlinuxsubscriptions;

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.licensemanagerlinuxsubscriptions.model.DeregisterSubscriptionProviderRequest;
import software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.DeregisterSubscriptionProviderResponse;
import software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.GetRegisteredSubscriptionProviderRequest;
import software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.GetRegisteredSubscriptionProviderResponse;
import software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.GetServiceSettingsRequest;
import software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.GetServiceSettingsResponse;
import software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionInstancesRequest;
import software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionInstancesResponse;
import software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsRequest;
import software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsResponse;
import software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListRegisteredSubscriptionProvidersRequest;
import software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListRegisteredSubscriptionProvidersResponse;
import software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListTagsForResourceRequest;
import software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListTagsForResourceResponse;
import software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.RegisterSubscriptionProviderRequest;
import software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.RegisterSubscriptionProviderResponse;
import software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.TagResourceRequest;
import software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.TagResourceResponse;
import software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.UntagResourceRequest;
import software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.UntagResourceResponse;
import software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.UpdateServiceSettingsRequest;
import software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.UpdateServiceSettingsResponse;
import software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionInstancesPublisher;
import software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionsPublisher;
import software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListRegisteredSubscriptionProvidersPublisher;

/**
 * Service client for accessing AWS License Manager Linux Subscriptions 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.
 *
 * 

* With License Manager, you can discover and track your commercial Linux subscriptions on running Amazon EC2 instances. *

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

* Remove a third-party subscription provider from the Bring Your Own License (BYOL) subscriptions registered to * your account. *

* * @param deregisterSubscriptionProviderRequest * @return A Java Future containing the result of the DeregisterSubscriptionProvider 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 An exception occurred with the service.
  • *
  • ResourceNotFoundException Unable to find the requested Amazon Web Services resource.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.DeregisterSubscriptionProvider * @see AWS API Documentation */ default CompletableFuture deregisterSubscriptionProvider( DeregisterSubscriptionProviderRequest deregisterSubscriptionProviderRequest) { throw new UnsupportedOperationException(); } /** *

* Remove a third-party subscription provider from the Bring Your Own License (BYOL) subscriptions registered to * your account. *

*
*

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

* * @param deregisterSubscriptionProviderRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.DeregisterSubscriptionProviderRequest.Builder} * to create a request. * @return A Java Future containing the result of the DeregisterSubscriptionProvider 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 An exception occurred with the service.
  • *
  • ResourceNotFoundException Unable to find the requested Amazon Web Services resource.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.DeregisterSubscriptionProvider * @see AWS API Documentation */ default CompletableFuture deregisterSubscriptionProvider( Consumer deregisterSubscriptionProviderRequest) { return deregisterSubscriptionProvider(DeregisterSubscriptionProviderRequest.builder() .applyMutation(deregisterSubscriptionProviderRequest).build()); } /** *

* Get details for a Bring Your Own License (BYOL) subscription that's registered to your account. *

* * @param getRegisteredSubscriptionProviderRequest * @return A Java Future containing the result of the GetRegisteredSubscriptionProvider 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 An exception occurred with the service.
  • *
  • ResourceNotFoundException Unable to find the requested Amazon Web Services resource.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.GetRegisteredSubscriptionProvider * @see AWS API Documentation */ default CompletableFuture getRegisteredSubscriptionProvider( GetRegisteredSubscriptionProviderRequest getRegisteredSubscriptionProviderRequest) { throw new UnsupportedOperationException(); } /** *

* Get details for a Bring Your Own License (BYOL) subscription that's registered to your account. *

*
*

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

* * @param getRegisteredSubscriptionProviderRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.GetRegisteredSubscriptionProviderRequest.Builder} * to create a request. * @return A Java Future containing the result of the GetRegisteredSubscriptionProvider 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 An exception occurred with the service.
  • *
  • ResourceNotFoundException Unable to find the requested Amazon Web Services resource.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.GetRegisteredSubscriptionProvider * @see AWS API Documentation */ default CompletableFuture getRegisteredSubscriptionProvider( Consumer getRegisteredSubscriptionProviderRequest) { return getRegisteredSubscriptionProvider(GetRegisteredSubscriptionProviderRequest.builder() .applyMutation(getRegisteredSubscriptionProviderRequest).build()); } /** *

* Lists the Linux subscriptions service settings for your account. *

* * @param getServiceSettingsRequest * @return A Java Future containing the result of the GetServiceSettings 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 An exception occurred with the service.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.GetServiceSettings * @see AWS API Documentation */ default CompletableFuture getServiceSettings(GetServiceSettingsRequest getServiceSettingsRequest) { throw new UnsupportedOperationException(); } /** *

* Lists the Linux subscriptions service settings for your account. *

*
*

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

* * @param getServiceSettingsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.GetServiceSettingsRequest.Builder} * to create a request. * @return A Java Future containing the result of the GetServiceSettings 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 An exception occurred with the service.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.GetServiceSettings * @see AWS API Documentation */ default CompletableFuture getServiceSettings( Consumer getServiceSettingsRequest) { return getServiceSettings(GetServiceSettingsRequest.builder().applyMutation(getServiceSettingsRequest).build()); } /** *

* Lists the running Amazon EC2 instances that were discovered with commercial Linux subscriptions. *

* * @param listLinuxSubscriptionInstancesRequest * NextToken length limit is half of ddb accepted limit. Increase this limit if parameters in request * increases. * @return A Java Future containing the result of the ListLinuxSubscriptionInstances 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 An exception occurred with the service.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.ListLinuxSubscriptionInstances * @see AWS API Documentation */ default CompletableFuture listLinuxSubscriptionInstances( ListLinuxSubscriptionInstancesRequest listLinuxSubscriptionInstancesRequest) { throw new UnsupportedOperationException(); } /** *

* Lists the running Amazon EC2 instances that were discovered with commercial Linux subscriptions. *

*
*

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

* * @param listLinuxSubscriptionInstancesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionInstancesRequest.Builder} * to create a request. NextToken length limit is half of ddb accepted limit. Increase this limit if * parameters in request increases. * @return A Java Future containing the result of the ListLinuxSubscriptionInstances 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 An exception occurred with the service.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.ListLinuxSubscriptionInstances * @see AWS API Documentation */ default CompletableFuture listLinuxSubscriptionInstances( Consumer listLinuxSubscriptionInstancesRequest) { return listLinuxSubscriptionInstances(ListLinuxSubscriptionInstancesRequest.builder() .applyMutation(listLinuxSubscriptionInstancesRequest).build()); } /** *

* This is a variant of * {@link #listLinuxSubscriptionInstances(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionInstancesRequest)} * 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.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionInstancesPublisher publisher = client.listLinuxSubscriptionInstancesPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionInstancesPublisher publisher = client.listLinuxSubscriptionInstancesPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionInstancesResponse 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 #listLinuxSubscriptionInstances(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionInstancesRequest)} * operation. *

* * @param listLinuxSubscriptionInstancesRequest * NextToken length limit is half of ddb accepted limit. Increase this limit if parameters in request * increases. * @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. *
    *
  • InternalServerException An exception occurred with the service.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.ListLinuxSubscriptionInstances * @see AWS API Documentation */ default ListLinuxSubscriptionInstancesPublisher listLinuxSubscriptionInstancesPaginator( ListLinuxSubscriptionInstancesRequest listLinuxSubscriptionInstancesRequest) { return new ListLinuxSubscriptionInstancesPublisher(this, listLinuxSubscriptionInstancesRequest); } /** *

* This is a variant of * {@link #listLinuxSubscriptionInstances(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionInstancesRequest)} * 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.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionInstancesPublisher publisher = client.listLinuxSubscriptionInstancesPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionInstancesPublisher publisher = client.listLinuxSubscriptionInstancesPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionInstancesResponse 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 #listLinuxSubscriptionInstances(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionInstancesRequest)} * operation. *

*
*

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

* * @param listLinuxSubscriptionInstancesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionInstancesRequest.Builder} * to create a request. NextToken length limit is half of ddb accepted limit. Increase this limit if * parameters in request increases. * @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. *
    *
  • InternalServerException An exception occurred with the service.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.ListLinuxSubscriptionInstances * @see AWS API Documentation */ default ListLinuxSubscriptionInstancesPublisher listLinuxSubscriptionInstancesPaginator( Consumer listLinuxSubscriptionInstancesRequest) { return listLinuxSubscriptionInstancesPaginator(ListLinuxSubscriptionInstancesRequest.builder() .applyMutation(listLinuxSubscriptionInstancesRequest).build()); } /** *

* Lists the Linux subscriptions that have been discovered. If you have linked your organization, the returned * results will include data aggregated across your accounts in Organizations. *

* * @param listLinuxSubscriptionsRequest * NextToken length limit is half of ddb accepted limit. Increase this limit if parameters in request * increases. * @return A Java Future containing the result of the ListLinuxSubscriptions 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 An exception occurred with the service.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.ListLinuxSubscriptions * @see AWS API Documentation */ default CompletableFuture listLinuxSubscriptions( ListLinuxSubscriptionsRequest listLinuxSubscriptionsRequest) { throw new UnsupportedOperationException(); } /** *

* Lists the Linux subscriptions that have been discovered. If you have linked your organization, the returned * results will include data aggregated across your accounts in Organizations. *

*
*

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

* * @param listLinuxSubscriptionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsRequest.Builder} * to create a request. NextToken length limit is half of ddb accepted limit. Increase this limit if * parameters in request increases. * @return A Java Future containing the result of the ListLinuxSubscriptions 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 An exception occurred with the service.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.ListLinuxSubscriptions * @see AWS API Documentation */ default CompletableFuture listLinuxSubscriptions( Consumer listLinuxSubscriptionsRequest) { return listLinuxSubscriptions(ListLinuxSubscriptionsRequest.builder().applyMutation(listLinuxSubscriptionsRequest) .build()); } /** *

* This is a variant of * {@link #listLinuxSubscriptions(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsRequest)} * 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.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionsPublisher publisher = client.listLinuxSubscriptionsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionsPublisher publisher = client.listLinuxSubscriptionsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsResponse 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 #listLinuxSubscriptions(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsRequest)} * operation. *

* * @param listLinuxSubscriptionsRequest * NextToken length limit is half of ddb accepted limit. Increase this limit if parameters in request * increases. * @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. *
    *
  • InternalServerException An exception occurred with the service.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.ListLinuxSubscriptions * @see AWS API Documentation */ default ListLinuxSubscriptionsPublisher listLinuxSubscriptionsPaginator( ListLinuxSubscriptionsRequest listLinuxSubscriptionsRequest) { return new ListLinuxSubscriptionsPublisher(this, listLinuxSubscriptionsRequest); } /** *

* This is a variant of * {@link #listLinuxSubscriptions(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsRequest)} * 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.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionsPublisher publisher = client.listLinuxSubscriptionsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionsPublisher publisher = client.listLinuxSubscriptionsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsResponse 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 #listLinuxSubscriptions(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsRequest)} * operation. *

*
*

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

* * @param listLinuxSubscriptionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsRequest.Builder} * to create a request. NextToken length limit is half of ddb accepted limit. Increase this limit if * parameters in request increases. * @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. *
    *
  • InternalServerException An exception occurred with the service.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.ListLinuxSubscriptions * @see AWS API Documentation */ default ListLinuxSubscriptionsPublisher listLinuxSubscriptionsPaginator( Consumer listLinuxSubscriptionsRequest) { return listLinuxSubscriptionsPaginator(ListLinuxSubscriptionsRequest.builder() .applyMutation(listLinuxSubscriptionsRequest).build()); } /** *

* List Bring Your Own License (BYOL) subscription registration resources for your account. *

* * @param listRegisteredSubscriptionProvidersRequest * @return A Java Future containing the result of the ListRegisteredSubscriptionProviders 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 An exception occurred with the service.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.ListRegisteredSubscriptionProviders * @see AWS API Documentation */ default CompletableFuture listRegisteredSubscriptionProviders( ListRegisteredSubscriptionProvidersRequest listRegisteredSubscriptionProvidersRequest) { throw new UnsupportedOperationException(); } /** *

* List Bring Your Own License (BYOL) subscription registration resources for your account. *

*
*

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

* * @param listRegisteredSubscriptionProvidersRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListRegisteredSubscriptionProvidersRequest.Builder} * to create a request. * @return A Java Future containing the result of the ListRegisteredSubscriptionProviders 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 An exception occurred with the service.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.ListRegisteredSubscriptionProviders * @see AWS API Documentation */ default CompletableFuture listRegisteredSubscriptionProviders( Consumer listRegisteredSubscriptionProvidersRequest) { return listRegisteredSubscriptionProviders(ListRegisteredSubscriptionProvidersRequest.builder() .applyMutation(listRegisteredSubscriptionProvidersRequest).build()); } /** *

* This is a variant of * {@link #listRegisteredSubscriptionProviders(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListRegisteredSubscriptionProvidersRequest)} * 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.licensemanagerlinuxsubscriptions.paginators.ListRegisteredSubscriptionProvidersPublisher publisher = client.listRegisteredSubscriptionProvidersPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListRegisteredSubscriptionProvidersPublisher publisher = client.listRegisteredSubscriptionProvidersPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListRegisteredSubscriptionProvidersResponse 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 #listRegisteredSubscriptionProviders(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListRegisteredSubscriptionProvidersRequest)} * operation. *

* * @param listRegisteredSubscriptionProvidersRequest * @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. *
    *
  • InternalServerException An exception occurred with the service.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.ListRegisteredSubscriptionProviders * @see AWS API Documentation */ default ListRegisteredSubscriptionProvidersPublisher listRegisteredSubscriptionProvidersPaginator( ListRegisteredSubscriptionProvidersRequest listRegisteredSubscriptionProvidersRequest) { return new ListRegisteredSubscriptionProvidersPublisher(this, listRegisteredSubscriptionProvidersRequest); } /** *

* This is a variant of * {@link #listRegisteredSubscriptionProviders(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListRegisteredSubscriptionProvidersRequest)} * 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.licensemanagerlinuxsubscriptions.paginators.ListRegisteredSubscriptionProvidersPublisher publisher = client.listRegisteredSubscriptionProvidersPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListRegisteredSubscriptionProvidersPublisher publisher = client.listRegisteredSubscriptionProvidersPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListRegisteredSubscriptionProvidersResponse 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 #listRegisteredSubscriptionProviders(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListRegisteredSubscriptionProvidersRequest)} * operation. *

*
*

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

* * @param listRegisteredSubscriptionProvidersRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListRegisteredSubscriptionProvidersRequest.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. *
    *
  • InternalServerException An exception occurred with the service.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.ListRegisteredSubscriptionProviders * @see AWS API Documentation */ default ListRegisteredSubscriptionProvidersPublisher listRegisteredSubscriptionProvidersPaginator( Consumer listRegisteredSubscriptionProvidersRequest) { return listRegisteredSubscriptionProvidersPaginator(ListRegisteredSubscriptionProvidersRequest.builder() .applyMutation(listRegisteredSubscriptionProvidersRequest).build()); } /** *

* List the metadata tags that are assigned to the specified Amazon Web Services resource. *

* * @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. *
    *
  • InternalServerException An exception occurred with the service.
  • *
  • ResourceNotFoundException Unable to find the requested Amazon Web Services resource.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.ListTagsForResource * @see AWS API Documentation */ default CompletableFuture listTagsForResource( ListTagsForResourceRequest listTagsForResourceRequest) { throw new UnsupportedOperationException(); } /** *

* List the metadata tags that are assigned to the specified Amazon Web Services resource. *

*
*

* 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.licensemanagerlinuxsubscriptions.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. *
    *
  • InternalServerException An exception occurred with the service.
  • *
  • ResourceNotFoundException Unable to find the requested Amazon Web Services resource.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.ListTagsForResource * @see AWS API Documentation */ default CompletableFuture listTagsForResource( Consumer listTagsForResourceRequest) { return listTagsForResource(ListTagsForResourceRequest.builder().applyMutation(listTagsForResourceRequest).build()); } /** *

* Register the supported third-party subscription provider for your Bring Your Own License (BYOL) subscription. *

* * @param registerSubscriptionProviderRequest * @return A Java Future containing the result of the RegisterSubscriptionProvider 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 An exception occurred with the service.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.RegisterSubscriptionProvider * @see AWS API Documentation */ default CompletableFuture registerSubscriptionProvider( RegisterSubscriptionProviderRequest registerSubscriptionProviderRequest) { throw new UnsupportedOperationException(); } /** *

* Register the supported third-party subscription provider for your Bring Your Own License (BYOL) subscription. *

*
*

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

* * @param registerSubscriptionProviderRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.RegisterSubscriptionProviderRequest.Builder} * to create a request. * @return A Java Future containing the result of the RegisterSubscriptionProvider 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 An exception occurred with the service.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.RegisterSubscriptionProvider * @see AWS API Documentation */ default CompletableFuture registerSubscriptionProvider( Consumer registerSubscriptionProviderRequest) { return registerSubscriptionProvider(RegisterSubscriptionProviderRequest.builder() .applyMutation(registerSubscriptionProviderRequest).build()); } /** *

* Add metadata tags to the specified Amazon Web Services resource. *

* * @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. *
    *
  • InternalServerException An exception occurred with the service.
  • *
  • ResourceNotFoundException Unable to find the requested Amazon Web Services resource.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.TagResource * @see AWS API Documentation */ default CompletableFuture tagResource(TagResourceRequest tagResourceRequest) { throw new UnsupportedOperationException(); } /** *

* Add metadata tags to the specified Amazon Web Services resource. *

*
*

* 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.licensemanagerlinuxsubscriptions.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. *
    *
  • InternalServerException An exception occurred with the service.
  • *
  • ResourceNotFoundException Unable to find the requested Amazon Web Services resource.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.TagResource * @see AWS API Documentation */ default CompletableFuture tagResource(Consumer tagResourceRequest) { return tagResource(TagResourceRequest.builder().applyMutation(tagResourceRequest).build()); } /** *

* Remove one or more metadata tag from the specified Amazon Web Services resource. *

* * @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. *
    *
  • InternalServerException An exception occurred with the service.
  • *
  • ResourceNotFoundException Unable to find the requested Amazon Web Services resource.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.UntagResource * @see AWS API Documentation */ default CompletableFuture untagResource(UntagResourceRequest untagResourceRequest) { throw new UnsupportedOperationException(); } /** *

* Remove one or more metadata tag from the specified Amazon Web Services resource. *

*
*

* 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.licensemanagerlinuxsubscriptions.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. *
    *
  • InternalServerException An exception occurred with the service.
  • *
  • ResourceNotFoundException Unable to find the requested Amazon Web Services resource.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.UntagResource * @see AWS API Documentation */ default CompletableFuture untagResource(Consumer untagResourceRequest) { return untagResource(UntagResourceRequest.builder().applyMutation(untagResourceRequest).build()); } /** *

* Updates the service settings for Linux subscriptions. *

* * @param updateServiceSettingsRequest * @return A Java Future containing the result of the UpdateServiceSettings 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 An exception occurred with the service.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.UpdateServiceSettings * @see AWS API Documentation */ default CompletableFuture updateServiceSettings( UpdateServiceSettingsRequest updateServiceSettingsRequest) { throw new UnsupportedOperationException(); } /** *

* Updates the service settings for Linux subscriptions. *

*
*

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

* * @param updateServiceSettingsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.UpdateServiceSettingsRequest.Builder} * to create a request. * @return A Java Future containing the result of the UpdateServiceSettings 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 An exception occurred with the service.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ValidationException The provided input is not valid. Try your request again.
  • *
  • 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.
  • *
  • LicenseManagerLinuxSubscriptionsException Base class for all service exceptions. Unknown exceptions * will be thrown as an instance of this type.
  • *
* @sample LicenseManagerLinuxSubscriptionsAsyncClient.UpdateServiceSettings * @see AWS API Documentation */ default CompletableFuture updateServiceSettings( Consumer updateServiceSettingsRequest) { return updateServiceSettings(UpdateServiceSettingsRequest.builder().applyMutation(updateServiceSettingsRequest).build()); } @Override default LicenseManagerLinuxSubscriptionsServiceClientConfiguration serviceClientConfiguration() { throw new UnsupportedOperationException(); } /** * Create a {@link LicenseManagerLinuxSubscriptionsAsyncClient} 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 LicenseManagerLinuxSubscriptionsAsyncClient create() { return builder().build(); } /** * Create a builder that can be used to configure and create a {@link LicenseManagerLinuxSubscriptionsAsyncClient}. */ static LicenseManagerLinuxSubscriptionsAsyncClientBuilder builder() { return new DefaultLicenseManagerLinuxSubscriptionsAsyncClientBuilder(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy