Interface LicenseManagerUserSubscriptionsAsyncClient
- 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 create user-based subscriptions to utilize licensed software with a per user subscription fee on Amazon EC2 instances.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptiondefault CompletableFuture
<AssociateUserResponse> associateUser
(Consumer<AssociateUserRequest.Builder> associateUserRequest) Associates the user to an EC2 instance to utilize user-based subscriptions.default CompletableFuture
<AssociateUserResponse> associateUser
(AssociateUserRequest associateUserRequest) Associates the user to an EC2 instance to utilize user-based subscriptions.builder()
Create a builder that can be used to configure and create aLicenseManagerUserSubscriptionsAsyncClient
.create()
Create aLicenseManagerUserSubscriptionsAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.deregisterIdentityProvider
(Consumer<DeregisterIdentityProviderRequest.Builder> deregisterIdentityProviderRequest) Deregisters the identity provider from providing user-based subscriptions.deregisterIdentityProvider
(DeregisterIdentityProviderRequest deregisterIdentityProviderRequest) Deregisters the identity provider from providing user-based subscriptions.disassociateUser
(Consumer<DisassociateUserRequest.Builder> disassociateUserRequest) Disassociates the user from an EC2 instance providing user-based subscriptions.disassociateUser
(DisassociateUserRequest disassociateUserRequest) Disassociates the user from an EC2 instance providing user-based subscriptions.listIdentityProviders
(Consumer<ListIdentityProvidersRequest.Builder> listIdentityProvidersRequest) Lists the identity providers for user-based subscriptions.listIdentityProviders
(ListIdentityProvidersRequest listIdentityProvidersRequest) Lists the identity providers for user-based subscriptions.default ListIdentityProvidersPublisher
listIdentityProvidersPaginator
(Consumer<ListIdentityProvidersRequest.Builder> listIdentityProvidersRequest) This is a variant oflistIdentityProviders(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListIdentityProvidersRequest)
operation.default ListIdentityProvidersPublisher
listIdentityProvidersPaginator
(ListIdentityProvidersRequest listIdentityProvidersRequest) This is a variant oflistIdentityProviders(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListIdentityProvidersRequest)
operation.default CompletableFuture
<ListInstancesResponse> listInstances
(Consumer<ListInstancesRequest.Builder> listInstancesRequest) Lists the EC2 instances providing user-based subscriptions.default CompletableFuture
<ListInstancesResponse> listInstances
(ListInstancesRequest listInstancesRequest) Lists the EC2 instances providing user-based subscriptions.default ListInstancesPublisher
listInstancesPaginator
(Consumer<ListInstancesRequest.Builder> listInstancesRequest) This is a variant oflistInstances(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListInstancesRequest)
operation.default ListInstancesPublisher
listInstancesPaginator
(ListInstancesRequest listInstancesRequest) This is a variant oflistInstances(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListInstancesRequest)
operation.listProductSubscriptions
(Consumer<ListProductSubscriptionsRequest.Builder> listProductSubscriptionsRequest) Lists the user-based subscription products available from an identity provider.listProductSubscriptions
(ListProductSubscriptionsRequest listProductSubscriptionsRequest) Lists the user-based subscription products available from an identity provider.listProductSubscriptionsPaginator
(Consumer<ListProductSubscriptionsRequest.Builder> listProductSubscriptionsRequest) This is a variant oflistProductSubscriptions(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListProductSubscriptionsRequest)
operation.listProductSubscriptionsPaginator
(ListProductSubscriptionsRequest listProductSubscriptionsRequest) This is a variant oflistProductSubscriptions(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListProductSubscriptionsRequest)
operation.listUserAssociations
(Consumer<ListUserAssociationsRequest.Builder> listUserAssociationsRequest) Lists user associations for an identity provider.listUserAssociations
(ListUserAssociationsRequest listUserAssociationsRequest) Lists user associations for an identity provider.default ListUserAssociationsPublisher
listUserAssociationsPaginator
(Consumer<ListUserAssociationsRequest.Builder> listUserAssociationsRequest) This is a variant oflistUserAssociations(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListUserAssociationsRequest)
operation.default ListUserAssociationsPublisher
listUserAssociationsPaginator
(ListUserAssociationsRequest listUserAssociationsRequest) This is a variant oflistUserAssociations(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListUserAssociationsRequest)
operation.registerIdentityProvider
(Consumer<RegisterIdentityProviderRequest.Builder> registerIdentityProviderRequest) Registers an identity provider for user-based subscriptions.registerIdentityProvider
(RegisterIdentityProviderRequest registerIdentityProviderRequest) Registers an identity provider for user-based subscriptions.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstartProductSubscription
(Consumer<StartProductSubscriptionRequest.Builder> startProductSubscriptionRequest) Starts a product subscription for a user with the specified identity provider.startProductSubscription
(StartProductSubscriptionRequest startProductSubscriptionRequest) Starts a product subscription for a user with the specified identity provider.stopProductSubscription
(Consumer<StopProductSubscriptionRequest.Builder> stopProductSubscriptionRequest) Stops a product subscription for a user with the specified identity provider.stopProductSubscription
(StopProductSubscriptionRequest stopProductSubscriptionRequest) Stops a product subscription for a user with the specified identity provider.updateIdentityProviderSettings
(Consumer<UpdateIdentityProviderSettingsRequest.Builder> updateIdentityProviderSettingsRequest) Updates additional product configuration settings for the registered identity provider.updateIdentityProviderSettings
(UpdateIdentityProviderSettingsRequest updateIdentityProviderSettingsRequest) Updates additional product configuration settings for the registered identity provider.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
-
associateUser
default CompletableFuture<AssociateUserResponse> associateUser(AssociateUserRequest associateUserRequest) Associates the user to an EC2 instance to utilize user-based subscriptions.
Your estimated bill for charges on the number of users and related costs will take 48 hours to appear for billing periods that haven't closed (marked as Pending billing status) in Amazon Web Services Billing. For more information, see Viewing your monthly charges in the Amazon Web Services Billing User Guide.
- Parameters:
associateUserRequest
-- Returns:
- A Java Future containing the result of the AssociateUser 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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
associateUser
default CompletableFuture<AssociateUserResponse> associateUser(Consumer<AssociateUserRequest.Builder> associateUserRequest) Associates the user to an EC2 instance to utilize user-based subscriptions.
Your estimated bill for charges on the number of users and related costs will take 48 hours to appear for billing periods that haven't closed (marked as Pending billing status) in Amazon Web Services Billing. For more information, see Viewing your monthly charges in the Amazon Web Services Billing User Guide.
This is a convenience which creates an instance of the
AssociateUserRequest.Builder
avoiding the need to create one manually viaAssociateUserRequest.builder()
- Parameters:
associateUserRequest
- AConsumer
that will call methods onAssociateUserRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the AssociateUser 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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deregisterIdentityProvider
default CompletableFuture<DeregisterIdentityProviderResponse> deregisterIdentityProvider(DeregisterIdentityProviderRequest deregisterIdentityProviderRequest) Deregisters the identity provider from providing user-based subscriptions.
- Parameters:
deregisterIdentityProviderRequest
-- Returns:
- A Java Future containing the result of the DeregisterIdentityProvider 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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deregisterIdentityProvider
default CompletableFuture<DeregisterIdentityProviderResponse> deregisterIdentityProvider(Consumer<DeregisterIdentityProviderRequest.Builder> deregisterIdentityProviderRequest) Deregisters the identity provider from providing user-based subscriptions.
This is a convenience which creates an instance of the
DeregisterIdentityProviderRequest.Builder
avoiding the need to create one manually viaDeregisterIdentityProviderRequest.builder()
- Parameters:
deregisterIdentityProviderRequest
- AConsumer
that will call methods onDeregisterIdentityProviderRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeregisterIdentityProvider 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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
disassociateUser
default CompletableFuture<DisassociateUserResponse> disassociateUser(DisassociateUserRequest disassociateUserRequest) Disassociates the user from an EC2 instance providing user-based subscriptions.
- Parameters:
disassociateUserRequest
-- Returns:
- A Java Future containing the result of the DisassociateUser 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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
disassociateUser
default CompletableFuture<DisassociateUserResponse> disassociateUser(Consumer<DisassociateUserRequest.Builder> disassociateUserRequest) Disassociates the user from an EC2 instance providing user-based subscriptions.
This is a convenience which creates an instance of the
DisassociateUserRequest.Builder
avoiding the need to create one manually viaDisassociateUserRequest.builder()
- Parameters:
disassociateUserRequest
- AConsumer
that will call methods onDisassociateUserRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DisassociateUser 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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listIdentityProviders
default CompletableFuture<ListIdentityProvidersResponse> listIdentityProviders(ListIdentityProvidersRequest listIdentityProvidersRequest) Lists the identity providers for user-based subscriptions.
- Parameters:
listIdentityProvidersRequest
-- Returns:
- A Java Future containing the result of the ListIdentityProviders 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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listIdentityProviders
default CompletableFuture<ListIdentityProvidersResponse> listIdentityProviders(Consumer<ListIdentityProvidersRequest.Builder> listIdentityProvidersRequest) Lists the identity providers for user-based subscriptions.
This is a convenience which creates an instance of the
ListIdentityProvidersRequest.Builder
avoiding the need to create one manually viaListIdentityProvidersRequest.builder()
- Parameters:
listIdentityProvidersRequest
- AConsumer
that will call methods onListIdentityProvidersRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListIdentityProviders 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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listIdentityProvidersPaginator
default ListIdentityProvidersPublisher listIdentityProvidersPaginator(ListIdentityProvidersRequest listIdentityProvidersRequest) This is a variant of
listIdentityProviders(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListIdentityProvidersRequest)
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.licensemanagerusersubscriptions.paginators.ListIdentityProvidersPublisher publisher = client.listIdentityProvidersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListIdentityProvidersPublisher publisher = client.listIdentityProvidersPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListIdentityProvidersResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListIdentityProvidersResponse 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
listIdentityProviders(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListIdentityProvidersRequest)
operation.- Parameters:
listIdentityProvidersRequest
-- 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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listIdentityProvidersPaginator
default ListIdentityProvidersPublisher listIdentityProvidersPaginator(Consumer<ListIdentityProvidersRequest.Builder> listIdentityProvidersRequest) This is a variant of
listIdentityProviders(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListIdentityProvidersRequest)
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.licensemanagerusersubscriptions.paginators.ListIdentityProvidersPublisher publisher = client.listIdentityProvidersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListIdentityProvidersPublisher publisher = client.listIdentityProvidersPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListIdentityProvidersResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListIdentityProvidersResponse 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
listIdentityProviders(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListIdentityProvidersRequest)
operation.
This is a convenience which creates an instance of the
ListIdentityProvidersRequest.Builder
avoiding the need to create one manually viaListIdentityProvidersRequest.builder()
- Parameters:
listIdentityProvidersRequest
- AConsumer
that will call methods onListIdentityProvidersRequest.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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listInstances
default CompletableFuture<ListInstancesResponse> listInstances(ListInstancesRequest listInstancesRequest) Lists the EC2 instances providing user-based subscriptions.
- Parameters:
listInstancesRequest
-- Returns:
- A Java Future containing the result of the ListInstances 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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listInstances
default CompletableFuture<ListInstancesResponse> listInstances(Consumer<ListInstancesRequest.Builder> listInstancesRequest) Lists the EC2 instances providing user-based subscriptions.
This is a convenience which creates an instance of the
ListInstancesRequest.Builder
avoiding the need to create one manually viaListInstancesRequest.builder()
- Parameters:
listInstancesRequest
- AConsumer
that will call methods onListInstancesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListInstances 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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listInstancesPaginator
This is a variant of
listInstances(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListInstancesRequest)
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.licensemanagerusersubscriptions.paginators.ListInstancesPublisher publisher = client.listInstancesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListInstancesPublisher publisher = client.listInstancesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListInstancesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListInstancesResponse 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
listInstances(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListInstancesRequest)
operation.- Parameters:
listInstancesRequest
-- 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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listInstancesPaginator
default ListInstancesPublisher listInstancesPaginator(Consumer<ListInstancesRequest.Builder> listInstancesRequest) This is a variant of
listInstances(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListInstancesRequest)
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.licensemanagerusersubscriptions.paginators.ListInstancesPublisher publisher = client.listInstancesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListInstancesPublisher publisher = client.listInstancesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListInstancesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListInstancesResponse 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
listInstances(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListInstancesRequest)
operation.
This is a convenience which creates an instance of the
ListInstancesRequest.Builder
avoiding the need to create one manually viaListInstancesRequest.builder()
- Parameters:
listInstancesRequest
- AConsumer
that will call methods onListInstancesRequest.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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProductSubscriptions
default CompletableFuture<ListProductSubscriptionsResponse> listProductSubscriptions(ListProductSubscriptionsRequest listProductSubscriptionsRequest) Lists the user-based subscription products available from an identity provider.
- Parameters:
listProductSubscriptionsRequest
-- Returns:
- A Java Future containing the result of the ListProductSubscriptions 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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProductSubscriptions
default CompletableFuture<ListProductSubscriptionsResponse> listProductSubscriptions(Consumer<ListProductSubscriptionsRequest.Builder> listProductSubscriptionsRequest) Lists the user-based subscription products available from an identity provider.
This is a convenience which creates an instance of the
ListProductSubscriptionsRequest.Builder
avoiding the need to create one manually viaListProductSubscriptionsRequest.builder()
- Parameters:
listProductSubscriptionsRequest
- AConsumer
that will call methods onListProductSubscriptionsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListProductSubscriptions 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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProductSubscriptionsPaginator
default ListProductSubscriptionsPublisher listProductSubscriptionsPaginator(ListProductSubscriptionsRequest listProductSubscriptionsRequest) This is a variant of
listProductSubscriptions(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListProductSubscriptionsRequest)
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.licensemanagerusersubscriptions.paginators.ListProductSubscriptionsPublisher publisher = client.listProductSubscriptionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListProductSubscriptionsPublisher publisher = client.listProductSubscriptionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListProductSubscriptionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListProductSubscriptionsResponse 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
listProductSubscriptions(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListProductSubscriptionsRequest)
operation.- Parameters:
listProductSubscriptionsRequest
-- 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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProductSubscriptionsPaginator
default ListProductSubscriptionsPublisher listProductSubscriptionsPaginator(Consumer<ListProductSubscriptionsRequest.Builder> listProductSubscriptionsRequest) This is a variant of
listProductSubscriptions(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListProductSubscriptionsRequest)
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.licensemanagerusersubscriptions.paginators.ListProductSubscriptionsPublisher publisher = client.listProductSubscriptionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListProductSubscriptionsPublisher publisher = client.listProductSubscriptionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListProductSubscriptionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListProductSubscriptionsResponse 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
listProductSubscriptions(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListProductSubscriptionsRequest)
operation.
This is a convenience which creates an instance of the
ListProductSubscriptionsRequest.Builder
avoiding the need to create one manually viaListProductSubscriptionsRequest.builder()
- Parameters:
listProductSubscriptionsRequest
- AConsumer
that will call methods onListProductSubscriptionsRequest.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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listUserAssociations
default CompletableFuture<ListUserAssociationsResponse> listUserAssociations(ListUserAssociationsRequest listUserAssociationsRequest) Lists user associations for an identity provider.
- Parameters:
listUserAssociationsRequest
-- Returns:
- A Java Future containing the result of the ListUserAssociations 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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listUserAssociations
default CompletableFuture<ListUserAssociationsResponse> listUserAssociations(Consumer<ListUserAssociationsRequest.Builder> listUserAssociationsRequest) Lists user associations for an identity provider.
This is a convenience which creates an instance of the
ListUserAssociationsRequest.Builder
avoiding the need to create one manually viaListUserAssociationsRequest.builder()
- Parameters:
listUserAssociationsRequest
- AConsumer
that will call methods onListUserAssociationsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListUserAssociations 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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listUserAssociationsPaginator
default ListUserAssociationsPublisher listUserAssociationsPaginator(ListUserAssociationsRequest listUserAssociationsRequest) This is a variant of
listUserAssociations(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListUserAssociationsRequest)
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.licensemanagerusersubscriptions.paginators.ListUserAssociationsPublisher publisher = client.listUserAssociationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListUserAssociationsPublisher publisher = client.listUserAssociationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListUserAssociationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListUserAssociationsResponse 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
listUserAssociations(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListUserAssociationsRequest)
operation.- Parameters:
listUserAssociationsRequest
-- 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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listUserAssociationsPaginator
default ListUserAssociationsPublisher listUserAssociationsPaginator(Consumer<ListUserAssociationsRequest.Builder> listUserAssociationsRequest) This is a variant of
listUserAssociations(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListUserAssociationsRequest)
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.licensemanagerusersubscriptions.paginators.ListUserAssociationsPublisher publisher = client.listUserAssociationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListUserAssociationsPublisher publisher = client.listUserAssociationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListUserAssociationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListUserAssociationsResponse 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
listUserAssociations(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListUserAssociationsRequest)
operation.
This is a convenience which creates an instance of the
ListUserAssociationsRequest.Builder
avoiding the need to create one manually viaListUserAssociationsRequest.builder()
- Parameters:
listUserAssociationsRequest
- AConsumer
that will call methods onListUserAssociationsRequest.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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
registerIdentityProvider
default CompletableFuture<RegisterIdentityProviderResponse> registerIdentityProvider(RegisterIdentityProviderRequest registerIdentityProviderRequest) Registers an identity provider for user-based subscriptions.
- Parameters:
registerIdentityProviderRequest
-- Returns:
- A Java Future containing the result of the RegisterIdentityProvider 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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
registerIdentityProvider
default CompletableFuture<RegisterIdentityProviderResponse> registerIdentityProvider(Consumer<RegisterIdentityProviderRequest.Builder> registerIdentityProviderRequest) Registers an identity provider for user-based subscriptions.
This is a convenience which creates an instance of the
RegisterIdentityProviderRequest.Builder
avoiding the need to create one manually viaRegisterIdentityProviderRequest.builder()
- Parameters:
registerIdentityProviderRequest
- AConsumer
that will call methods onRegisterIdentityProviderRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the RegisterIdentityProvider 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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startProductSubscription
default CompletableFuture<StartProductSubscriptionResponse> startProductSubscription(StartProductSubscriptionRequest startProductSubscriptionRequest) Starts a product subscription for a user with the specified identity provider.
Your estimated bill for charges on the number of users and related costs will take 48 hours to appear for billing periods that haven't closed (marked as Pending billing status) in Amazon Web Services Billing. For more information, see Viewing your monthly charges in the Amazon Web Services Billing User Guide.
- Parameters:
startProductSubscriptionRequest
-- Returns:
- A Java Future containing the result of the StartProductSubscription 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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startProductSubscription
default CompletableFuture<StartProductSubscriptionResponse> startProductSubscription(Consumer<StartProductSubscriptionRequest.Builder> startProductSubscriptionRequest) Starts a product subscription for a user with the specified identity provider.
Your estimated bill for charges on the number of users and related costs will take 48 hours to appear for billing periods that haven't closed (marked as Pending billing status) in Amazon Web Services Billing. For more information, see Viewing your monthly charges in the Amazon Web Services Billing User Guide.
This is a convenience which creates an instance of the
StartProductSubscriptionRequest.Builder
avoiding the need to create one manually viaStartProductSubscriptionRequest.builder()
- Parameters:
startProductSubscriptionRequest
- AConsumer
that will call methods onStartProductSubscriptionRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the StartProductSubscription 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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopProductSubscription
default CompletableFuture<StopProductSubscriptionResponse> stopProductSubscription(StopProductSubscriptionRequest stopProductSubscriptionRequest) Stops a product subscription for a user with the specified identity provider.
- Parameters:
stopProductSubscriptionRequest
-- Returns:
- A Java Future containing the result of the StopProductSubscription 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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopProductSubscription
default CompletableFuture<StopProductSubscriptionResponse> stopProductSubscription(Consumer<StopProductSubscriptionRequest.Builder> stopProductSubscriptionRequest) Stops a product subscription for a user with the specified identity provider.
This is a convenience which creates an instance of the
StopProductSubscriptionRequest.Builder
avoiding the need to create one manually viaStopProductSubscriptionRequest.builder()
- Parameters:
stopProductSubscriptionRequest
- AConsumer
that will call methods onStopProductSubscriptionRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the StopProductSubscription 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.- ServiceQuotaExceededException The request failed because a service quota is exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- ResourceNotFoundException The resource couldn't be found.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateIdentityProviderSettings
default CompletableFuture<UpdateIdentityProviderSettingsResponse> updateIdentityProviderSettings(UpdateIdentityProviderSettingsRequest updateIdentityProviderSettingsRequest) Updates additional product configuration settings for the registered identity provider.
- Parameters:
updateIdentityProviderSettingsRequest
-- Returns:
- A Java Future containing the result of the UpdateIdentityProviderSettings 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.- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateIdentityProviderSettings
default CompletableFuture<UpdateIdentityProviderSettingsResponse> updateIdentityProviderSettings(Consumer<UpdateIdentityProviderSettingsRequest.Builder> updateIdentityProviderSettingsRequest) Updates additional product configuration settings for the registered identity provider.
This is a convenience which creates an instance of the
UpdateIdentityProviderSettingsRequest.Builder
avoiding the need to create one manually viaUpdateIdentityProviderSettingsRequest.builder()
- Parameters:
updateIdentityProviderSettingsRequest
- AConsumer
that will call methods onUpdateIdentityProviderSettingsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateIdentityProviderSettings 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.- ValidationException A parameter is not valid.
- ThrottlingException The request was denied because of request throttling. Retry the request.
- InternalServerException An exception occurred with the service.
- AccessDeniedException You don't have sufficient access to perform this action.
- 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.
- LicenseManagerUserSubscriptionsException 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 aLicenseManagerUserSubscriptionsAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aLicenseManagerUserSubscriptionsAsyncClient
.
-