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
.getServiceSettings
(Consumer<GetServiceSettingsRequest.Builder> getServiceSettingsRequest) Lists the Linux subscriptions service settings.getServiceSettings
(GetServiceSettingsRequest getServiceSettingsRequest) Lists the Linux subscriptions service settings.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.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationupdateServiceSettings
(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
-
getServiceSettings
default CompletableFuture<GetServiceSettingsResponse> getServiceSettings(GetServiceSettingsRequest getServiceSettingsRequest) Lists the Linux subscriptions service settings.
- 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.
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:
-
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
.
-