Interface LicenseManagerLinuxSubscriptionsAsyncClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.The asynchronous client performs non-blocking I/O when configured with any
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder that can be used to configure and create aLicenseManagerLinuxSubscriptionsAsyncClient
.create()
Create aLicenseManagerLinuxSubscriptionsAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.deregisterSubscriptionProvider
(Consumer<DeregisterSubscriptionProviderRequest.Builder> deregisterSubscriptionProviderRequest) Remove a third-party subscription provider from the Bring Your Own License (BYOL) subscriptions registered to your account.deregisterSubscriptionProvider
(DeregisterSubscriptionProviderRequest deregisterSubscriptionProviderRequest) Remove a third-party subscription provider from the Bring Your Own License (BYOL) subscriptions registered to your account.getRegisteredSubscriptionProvider
(Consumer<GetRegisteredSubscriptionProviderRequest.Builder> getRegisteredSubscriptionProviderRequest) Get details for a Bring Your Own License (BYOL) subscription that's registered to your account.getRegisteredSubscriptionProvider
(GetRegisteredSubscriptionProviderRequest getRegisteredSubscriptionProviderRequest) Get details for a Bring Your Own License (BYOL) subscription that's registered to your account.getServiceSettings
(Consumer<GetServiceSettingsRequest.Builder> getServiceSettingsRequest) Lists the Linux subscriptions service settings for your account.getServiceSettings
(GetServiceSettingsRequest getServiceSettingsRequest) Lists the Linux subscriptions service settings for your account.listLinuxSubscriptionInstances
(Consumer<ListLinuxSubscriptionInstancesRequest.Builder> listLinuxSubscriptionInstancesRequest) Lists the running Amazon EC2 instances that were discovered with commercial Linux subscriptions.listLinuxSubscriptionInstances
(ListLinuxSubscriptionInstancesRequest listLinuxSubscriptionInstancesRequest) Lists the running Amazon EC2 instances that were discovered with commercial Linux subscriptions.listLinuxSubscriptionInstancesPaginator
(Consumer<ListLinuxSubscriptionInstancesRequest.Builder> listLinuxSubscriptionInstancesRequest) listLinuxSubscriptionInstancesPaginator
(ListLinuxSubscriptionInstancesRequest listLinuxSubscriptionInstancesRequest) listLinuxSubscriptions
(Consumer<ListLinuxSubscriptionsRequest.Builder> listLinuxSubscriptionsRequest) Lists the Linux subscriptions that have been discovered.listLinuxSubscriptions
(ListLinuxSubscriptionsRequest listLinuxSubscriptionsRequest) Lists the Linux subscriptions that have been discovered.default ListLinuxSubscriptionsPublisher
listLinuxSubscriptionsPaginator
(Consumer<ListLinuxSubscriptionsRequest.Builder> listLinuxSubscriptionsRequest) This is a variant oflistLinuxSubscriptions(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsRequest)
operation.default ListLinuxSubscriptionsPublisher
listLinuxSubscriptionsPaginator
(ListLinuxSubscriptionsRequest listLinuxSubscriptionsRequest) This is a variant oflistLinuxSubscriptions(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsRequest)
operation.listRegisteredSubscriptionProviders
(Consumer<ListRegisteredSubscriptionProvidersRequest.Builder> listRegisteredSubscriptionProvidersRequest) List Bring Your Own License (BYOL) subscription registration resources for your account.listRegisteredSubscriptionProviders
(ListRegisteredSubscriptionProvidersRequest listRegisteredSubscriptionProvidersRequest) List Bring Your Own License (BYOL) subscription registration resources for your account.listRegisteredSubscriptionProvidersPaginator
(Consumer<ListRegisteredSubscriptionProvidersRequest.Builder> listRegisteredSubscriptionProvidersRequest) listRegisteredSubscriptionProvidersPaginator
(ListRegisteredSubscriptionProvidersRequest listRegisteredSubscriptionProvidersRequest) listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) List the metadata tags that are assigned to the specified Amazon Web Services resource.listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) List the metadata tags that are assigned to the specified Amazon Web Services resource.registerSubscriptionProvider
(Consumer<RegisterSubscriptionProviderRequest.Builder> registerSubscriptionProviderRequest) Register the supported third-party subscription provider for your Bring Your Own License (BYOL) subscription.registerSubscriptionProvider
(RegisterSubscriptionProviderRequest registerSubscriptionProviderRequest) Register the supported third-party subscription provider for your Bring Your Own License (BYOL) subscription.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationdefault CompletableFuture
<TagResourceResponse> tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) Add metadata tags to the specified Amazon Web Services resource.default CompletableFuture
<TagResourceResponse> tagResource
(TagResourceRequest tagResourceRequest) Add metadata tags to the specified Amazon Web Services resource.default CompletableFuture
<UntagResourceResponse> untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Remove one or more metadata tag from the specified Amazon Web Services resource.default CompletableFuture
<UntagResourceResponse> untagResource
(UntagResourceRequest untagResourceRequest) Remove one or more metadata tag from the specified Amazon Web Services resource.updateServiceSettings
(Consumer<UpdateServiceSettingsRequest.Builder> updateServiceSettingsRequest) Updates the service settings for Linux subscriptions.updateServiceSettings
(UpdateServiceSettingsRequest updateServiceSettingsRequest) Updates the service settings for Linux subscriptions.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
deregisterSubscriptionProvider
default CompletableFuture<DeregisterSubscriptionProviderResponse> deregisterSubscriptionProvider(DeregisterSubscriptionProviderRequest deregisterSubscriptionProviderRequest) Remove a third-party subscription provider from the Bring Your Own License (BYOL) subscriptions registered to your account.
- Parameters:
deregisterSubscriptionProviderRequest
-- Returns:
- 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 invokeThrowable.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.
- See Also:
-
deregisterSubscriptionProvider
default CompletableFuture<DeregisterSubscriptionProviderResponse> deregisterSubscriptionProvider(Consumer<DeregisterSubscriptionProviderRequest.Builder> deregisterSubscriptionProviderRequest) 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
DeregisterSubscriptionProviderRequest.Builder
avoiding the need to create one manually viaDeregisterSubscriptionProviderRequest.builder()
- Parameters:
deregisterSubscriptionProviderRequest
- AConsumer
that will call methods onDeregisterSubscriptionProviderRequest.Builder
to create a request.- Returns:
- 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 invokeThrowable.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.
- See Also:
-
getRegisteredSubscriptionProvider
default CompletableFuture<GetRegisteredSubscriptionProviderResponse> getRegisteredSubscriptionProvider(GetRegisteredSubscriptionProviderRequest getRegisteredSubscriptionProviderRequest) Get details for a Bring Your Own License (BYOL) subscription that's registered to your account.
- Parameters:
getRegisteredSubscriptionProviderRequest
-- Returns:
- 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 invokeThrowable.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.
- See Also:
-
getRegisteredSubscriptionProvider
default CompletableFuture<GetRegisteredSubscriptionProviderResponse> getRegisteredSubscriptionProvider(Consumer<GetRegisteredSubscriptionProviderRequest.Builder> getRegisteredSubscriptionProviderRequest) 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
GetRegisteredSubscriptionProviderRequest.Builder
avoiding the need to create one manually viaGetRegisteredSubscriptionProviderRequest.builder()
- Parameters:
getRegisteredSubscriptionProviderRequest
- AConsumer
that will call methods onGetRegisteredSubscriptionProviderRequest.Builder
to create a request.- Returns:
- 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 invokeThrowable.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.
- See Also:
-
getServiceSettings
default CompletableFuture<GetServiceSettingsResponse> getServiceSettings(GetServiceSettingsRequest getServiceSettingsRequest) Lists the Linux subscriptions service settings for your account.
- Parameters:
getServiceSettingsRequest
-- Returns:
- 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 invokeThrowable.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.
- See Also:
-
getServiceSettings
default CompletableFuture<GetServiceSettingsResponse> getServiceSettings(Consumer<GetServiceSettingsRequest.Builder> getServiceSettingsRequest) Lists the Linux subscriptions service settings for your account.
This is a convenience which creates an instance of the
GetServiceSettingsRequest.Builder
avoiding the need to create one manually viaGetServiceSettingsRequest.builder()
- Parameters:
getServiceSettingsRequest
- AConsumer
that will call methods onGetServiceSettingsRequest.Builder
to create a request.- Returns:
- 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 invokeThrowable.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.
- See Also:
-
listLinuxSubscriptionInstances
default CompletableFuture<ListLinuxSubscriptionInstancesResponse> listLinuxSubscriptionInstances(ListLinuxSubscriptionInstancesRequest listLinuxSubscriptionInstancesRequest) Lists the running Amazon EC2 instances that were discovered with commercial Linux subscriptions.
- Parameters:
listLinuxSubscriptionInstancesRequest
- NextToken length limit is half of ddb accepted limit. Increase this limit if parameters in request increases.- Returns:
- 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 invokeThrowable.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.
- See Also:
-
listLinuxSubscriptionInstances
default CompletableFuture<ListLinuxSubscriptionInstancesResponse> listLinuxSubscriptionInstances(Consumer<ListLinuxSubscriptionInstancesRequest.Builder> listLinuxSubscriptionInstancesRequest) Lists the running Amazon EC2 instances that were discovered with commercial Linux subscriptions.
This is a convenience which creates an instance of the
ListLinuxSubscriptionInstancesRequest.Builder
avoiding the need to create one manually viaListLinuxSubscriptionInstancesRequest.builder()
- Parameters:
listLinuxSubscriptionInstancesRequest
- AConsumer
that will call methods onListLinuxSubscriptionInstancesRequest.Builder
to create a request. NextToken length limit is half of ddb accepted limit. Increase this limit if parameters in request increases.- Returns:
- 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 invokeThrowable.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.
- See Also:
-
listLinuxSubscriptionInstancesPaginator
default ListLinuxSubscriptionInstancesPublisher listLinuxSubscriptionInstancesPaginator(ListLinuxSubscriptionInstancesRequest listLinuxSubscriptionInstancesRequest) This is a variant of
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
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
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 methodsoftware.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionInstancesPublisher publisher = client.listLinuxSubscriptionInstancesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionInstancesPublisher publisher = client.listLinuxSubscriptionInstancesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionInstancesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionInstancesResponse response) { //... }; });
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
listLinuxSubscriptionInstances(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionInstancesRequest)
operation.- Parameters:
listLinuxSubscriptionInstancesRequest
- NextToken length limit is half of ddb accepted limit. Increase this limit if parameters in request increases.- Returns:
- 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 invokeThrowable.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.
- See Also:
-
listLinuxSubscriptionInstancesPaginator
default ListLinuxSubscriptionInstancesPublisher listLinuxSubscriptionInstancesPaginator(Consumer<ListLinuxSubscriptionInstancesRequest.Builder> listLinuxSubscriptionInstancesRequest) This is a variant of
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
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
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 methodsoftware.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionInstancesPublisher publisher = client.listLinuxSubscriptionInstancesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionInstancesPublisher publisher = client.listLinuxSubscriptionInstancesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionInstancesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionInstancesResponse response) { //... }; });
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
listLinuxSubscriptionInstances(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionInstancesRequest)
operation.
This is a convenience which creates an instance of the
ListLinuxSubscriptionInstancesRequest.Builder
avoiding the need to create one manually viaListLinuxSubscriptionInstancesRequest.builder()
- Parameters:
listLinuxSubscriptionInstancesRequest
- AConsumer
that will call methods onListLinuxSubscriptionInstancesRequest.Builder
to create a request. NextToken length limit is half of ddb accepted limit. Increase this limit if parameters in request increases.- Returns:
- 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 invokeThrowable.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.
- See Also:
-
listLinuxSubscriptions
default CompletableFuture<ListLinuxSubscriptionsResponse> listLinuxSubscriptions(ListLinuxSubscriptionsRequest listLinuxSubscriptionsRequest) 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.
- Parameters:
listLinuxSubscriptionsRequest
- NextToken length limit is half of ddb accepted limit. Increase this limit if parameters in request increases.- Returns:
- 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 invokeThrowable.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.
- See Also:
-
listLinuxSubscriptions
default CompletableFuture<ListLinuxSubscriptionsResponse> listLinuxSubscriptions(Consumer<ListLinuxSubscriptionsRequest.Builder> listLinuxSubscriptionsRequest) 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
ListLinuxSubscriptionsRequest.Builder
avoiding the need to create one manually viaListLinuxSubscriptionsRequest.builder()
- Parameters:
listLinuxSubscriptionsRequest
- AConsumer
that will call methods onListLinuxSubscriptionsRequest.Builder
to create a request. NextToken length limit is half of ddb accepted limit. Increase this limit if parameters in request increases.- Returns:
- 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 invokeThrowable.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.
- See Also:
-
listLinuxSubscriptionsPaginator
default ListLinuxSubscriptionsPublisher listLinuxSubscriptionsPaginator(ListLinuxSubscriptionsRequest listLinuxSubscriptionsRequest) This is a variant of
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
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
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 methodsoftware.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionsPublisher publisher = client.listLinuxSubscriptionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionsPublisher publisher = client.listLinuxSubscriptionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsResponse response) { //... }; });
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
listLinuxSubscriptions(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsRequest)
operation.- Parameters:
listLinuxSubscriptionsRequest
- NextToken length limit is half of ddb accepted limit. Increase this limit if parameters in request increases.- Returns:
- 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 invokeThrowable.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.
- See Also:
-
listLinuxSubscriptionsPaginator
default ListLinuxSubscriptionsPublisher listLinuxSubscriptionsPaginator(Consumer<ListLinuxSubscriptionsRequest.Builder> listLinuxSubscriptionsRequest) This is a variant of
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
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
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 methodsoftware.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionsPublisher publisher = client.listLinuxSubscriptionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionsPublisher publisher = client.listLinuxSubscriptionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsResponse response) { //... }; });
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
listLinuxSubscriptions(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsRequest)
operation.
This is a convenience which creates an instance of the
ListLinuxSubscriptionsRequest.Builder
avoiding the need to create one manually viaListLinuxSubscriptionsRequest.builder()
- Parameters:
listLinuxSubscriptionsRequest
- AConsumer
that will call methods onListLinuxSubscriptionsRequest.Builder
to create a request. NextToken length limit is half of ddb accepted limit. Increase this limit if parameters in request increases.- Returns:
- 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 invokeThrowable.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.
- See Also:
-
listRegisteredSubscriptionProviders
default CompletableFuture<ListRegisteredSubscriptionProvidersResponse> listRegisteredSubscriptionProviders(ListRegisteredSubscriptionProvidersRequest listRegisteredSubscriptionProvidersRequest) List Bring Your Own License (BYOL) subscription registration resources for your account.
- Parameters:
listRegisteredSubscriptionProvidersRequest
-- Returns:
- 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 invokeThrowable.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.
- See Also:
-
listRegisteredSubscriptionProviders
default CompletableFuture<ListRegisteredSubscriptionProvidersResponse> listRegisteredSubscriptionProviders(Consumer<ListRegisteredSubscriptionProvidersRequest.Builder> listRegisteredSubscriptionProvidersRequest) List Bring Your Own License (BYOL) subscription registration resources for your account.
This is a convenience which creates an instance of the
ListRegisteredSubscriptionProvidersRequest.Builder
avoiding the need to create one manually viaListRegisteredSubscriptionProvidersRequest.builder()
- Parameters:
listRegisteredSubscriptionProvidersRequest
- AConsumer
that will call methods onListRegisteredSubscriptionProvidersRequest.Builder
to create a request.- Returns:
- 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 invokeThrowable.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.
- See Also:
-
listRegisteredSubscriptionProvidersPaginator
default ListRegisteredSubscriptionProvidersPublisher listRegisteredSubscriptionProvidersPaginator(ListRegisteredSubscriptionProvidersRequest listRegisteredSubscriptionProvidersRequest) This is a variant of
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
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
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 methodsoftware.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListRegisteredSubscriptionProvidersPublisher publisher = client.listRegisteredSubscriptionProvidersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListRegisteredSubscriptionProvidersPublisher publisher = client.listRegisteredSubscriptionProvidersPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListRegisteredSubscriptionProvidersResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListRegisteredSubscriptionProvidersResponse response) { //... }; });
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
listRegisteredSubscriptionProviders(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListRegisteredSubscriptionProvidersRequest)
operation.- Parameters:
listRegisteredSubscriptionProvidersRequest
-- Returns:
- 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 invokeThrowable.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.
- See Also:
-
listRegisteredSubscriptionProvidersPaginator
default ListRegisteredSubscriptionProvidersPublisher listRegisteredSubscriptionProvidersPaginator(Consumer<ListRegisteredSubscriptionProvidersRequest.Builder> listRegisteredSubscriptionProvidersRequest) This is a variant of
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
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
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 methodsoftware.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListRegisteredSubscriptionProvidersPublisher publisher = client.listRegisteredSubscriptionProvidersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListRegisteredSubscriptionProvidersPublisher publisher = client.listRegisteredSubscriptionProvidersPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListRegisteredSubscriptionProvidersResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListRegisteredSubscriptionProvidersResponse response) { //... }; });
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
listRegisteredSubscriptionProviders(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListRegisteredSubscriptionProvidersRequest)
operation.
This is a convenience which creates an instance of the
ListRegisteredSubscriptionProvidersRequest.Builder
avoiding the need to create one manually viaListRegisteredSubscriptionProvidersRequest.builder()
- Parameters:
listRegisteredSubscriptionProvidersRequest
- AConsumer
that will call methods onListRegisteredSubscriptionProvidersRequest.Builder
to create a request.- Returns:
- 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 invokeThrowable.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.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) List the metadata tags that are assigned to the specified Amazon Web Services resource.
- Parameters:
listTagsForResourceRequest
-- Returns:
- 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 invokeThrowable.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.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) List the metadata tags that are assigned to the specified Amazon Web Services resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builder
avoiding the need to create one manually viaListTagsForResourceRequest.builder()
- Parameters:
listTagsForResourceRequest
- AConsumer
that will call methods onListTagsForResourceRequest.Builder
to create a request.- Returns:
- 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 invokeThrowable.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.
- See Also:
-
registerSubscriptionProvider
default CompletableFuture<RegisterSubscriptionProviderResponse> registerSubscriptionProvider(RegisterSubscriptionProviderRequest registerSubscriptionProviderRequest) Register the supported third-party subscription provider for your Bring Your Own License (BYOL) subscription.
- Parameters:
registerSubscriptionProviderRequest
-- Returns:
- 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 invokeThrowable.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.
- See Also:
-
registerSubscriptionProvider
default CompletableFuture<RegisterSubscriptionProviderResponse> registerSubscriptionProvider(Consumer<RegisterSubscriptionProviderRequest.Builder> registerSubscriptionProviderRequest) 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
RegisterSubscriptionProviderRequest.Builder
avoiding the need to create one manually viaRegisterSubscriptionProviderRequest.builder()
- Parameters:
registerSubscriptionProviderRequest
- AConsumer
that will call methods onRegisterSubscriptionProviderRequest.Builder
to create a request.- Returns:
- 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 invokeThrowable.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.
- See Also:
-
tagResource
Add metadata tags to the specified Amazon Web Services resource.
- Parameters:
tagResourceRequest
-- Returns:
- 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 invokeThrowable.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.
- See Also:
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Add metadata tags to the specified Amazon Web Services resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builder
avoiding the need to create one manually viaTagResourceRequest.builder()
- Parameters:
tagResourceRequest
- AConsumer
that will call methods onTagResourceRequest.Builder
to create a request.- Returns:
- 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 invokeThrowable.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.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Remove one or more metadata tag from the specified Amazon Web Services resource.
- Parameters:
untagResourceRequest
-- Returns:
- 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 invokeThrowable.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.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Remove one or more metadata tag from the specified Amazon Web Services resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builder
avoiding the need to create one manually viaUntagResourceRequest.builder()
- Parameters:
untagResourceRequest
- AConsumer
that will call methods onUntagResourceRequest.Builder
to create a request.- Returns:
- 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 invokeThrowable.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.
- See Also:
-
updateServiceSettings
default CompletableFuture<UpdateServiceSettingsResponse> updateServiceSettings(UpdateServiceSettingsRequest updateServiceSettingsRequest) Updates the service settings for Linux subscriptions.
- Parameters:
updateServiceSettingsRequest
-- Returns:
- 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 invokeThrowable.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.
- See Also:
-
updateServiceSettings
default CompletableFuture<UpdateServiceSettingsResponse> updateServiceSettings(Consumer<UpdateServiceSettingsRequest.Builder> updateServiceSettingsRequest) Updates the service settings for Linux subscriptions.
This is a convenience which creates an instance of the
UpdateServiceSettingsRequest.Builder
avoiding the need to create one manually viaUpdateServiceSettingsRequest.builder()
- Parameters:
updateServiceSettingsRequest
- AConsumer
that will call methods onUpdateServiceSettingsRequest.Builder
to create a request.- Returns:
- 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 invokeThrowable.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.
- See Also:
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-
create
Create aLicenseManagerLinuxSubscriptionsAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aLicenseManagerLinuxSubscriptionsAsyncClient
.
-