Interface LicenseManagerUserSubscriptionsAsyncClient

  • All Superinterfaces:
    AutoCloseable, AwsClient, SdkAutoCloseable, SdkClient

    @Generated("software.amazon.awssdk:codegen")
    @ThreadSafe
    public interface LicenseManagerUserSubscriptionsAsyncClient
    extends AwsClient
    Service client for accessing AWS License Manager User Subscriptions asynchronously. This can be created using the static builder() method.

    With License Manager, you can create user-based subscriptions to utilize licensed software with a per user subscription fee on Amazon EC2 instances.

    • Method Detail

      • 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.
        • 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:
        AWS API Documentation
      • 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 via AssociateUserRequest.builder()

        Parameters:
        associateUserRequest - A Consumer that will call methods on AssociateUserRequest.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.
        • 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:
        AWS API Documentation
      • 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.
        • 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:
        AWS API Documentation
      • 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 via DeregisterIdentityProviderRequest.builder()

        Parameters:
        deregisterIdentityProviderRequest - A Consumer that will call methods on DeregisterIdentityProviderRequest.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.
        • 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:
        AWS API Documentation
      • 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.
        • 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:
        AWS API Documentation
      • 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 via DisassociateUserRequest.builder()

        Parameters:
        disassociateUserRequest - A Consumer that will call methods on DisassociateUserRequest.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.
        • 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:
        AWS API Documentation
      • 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.
        • 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:
        AWS API Documentation
      • 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 via ListIdentityProvidersRequest.builder()

        Parameters:
        listIdentityProvidersRequest - A Consumer that will call methods on ListIdentityProvidersRequest.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.
        • 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:
        AWS API Documentation
      • listIdentityProvidersPaginator

        default ListIdentityProvidersPublisher listIdentityProvidersPaginator​(ListIdentityProvidersRequest listIdentityProvidersRequest)

        Lists the identity providers for user-based subscriptions.


        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 new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListIdentityProvidersPublisher publisher = client.listIdentityProvidersPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         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) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

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

        Note: If you prefer to have control on service calls, use the 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.
        • 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:
        AWS API Documentation
      • listIdentityProvidersPaginator

        default ListIdentityProvidersPublisher listIdentityProvidersPaginator​(Consumer<ListIdentityProvidersRequest.Builder> listIdentityProvidersRequest)

        Lists the identity providers for user-based subscriptions.


        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 new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListIdentityProvidersPublisher publisher = client.listIdentityProvidersPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         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) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

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

        Note: If you prefer to have control on service calls, use the 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 via ListIdentityProvidersRequest.builder()

        Parameters:
        listIdentityProvidersRequest - A Consumer that will call methods on ListIdentityProvidersRequest.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.
        • 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:
        AWS API Documentation
      • 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.
        • 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:
        AWS API Documentation
      • 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 via ListInstancesRequest.builder()

        Parameters:
        listInstancesRequest - A Consumer that will call methods on ListInstancesRequest.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.
        • 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:
        AWS API Documentation
      • listInstancesPaginator

        default ListInstancesPublisher listInstancesPaginator​(ListInstancesRequest listInstancesRequest)

        Lists the EC2 instances providing user-based subscriptions.


        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 new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListInstancesPublisher publisher = client.listInstancesPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         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) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

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

        Note: If you prefer to have control on service calls, use the 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.
        • 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:
        AWS API Documentation
      • listInstancesPaginator

        default ListInstancesPublisher listInstancesPaginator​(Consumer<ListInstancesRequest.Builder> listInstancesRequest)

        Lists the EC2 instances providing user-based subscriptions.


        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 new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListInstancesPublisher publisher = client.listInstancesPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         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) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

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

        Note: If you prefer to have control on service calls, use the 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 via ListInstancesRequest.builder()

        Parameters:
        listInstancesRequest - A Consumer that will call methods on ListInstancesRequest.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.
        • 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:
        AWS API Documentation
      • 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.
        • 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:
        AWS API Documentation
      • 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 via ListProductSubscriptionsRequest.builder()

        Parameters:
        listProductSubscriptionsRequest - A Consumer that will call methods on ListProductSubscriptionsRequest.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.
        • 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:
        AWS API Documentation
      • listProductSubscriptionsPaginator

        default ListProductSubscriptionsPublisher listProductSubscriptionsPaginator​(ListProductSubscriptionsRequest listProductSubscriptionsRequest)

        Lists the user-based subscription products available from an identity provider.


        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 new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListProductSubscriptionsPublisher publisher = client.listProductSubscriptionsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         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) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

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

        Note: If you prefer to have control on service calls, use the 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.
        • 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:
        AWS API Documentation
      • listProductSubscriptionsPaginator

        default ListProductSubscriptionsPublisher listProductSubscriptionsPaginator​(Consumer<ListProductSubscriptionsRequest.Builder> listProductSubscriptionsRequest)

        Lists the user-based subscription products available from an identity provider.


        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 new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListProductSubscriptionsPublisher publisher = client.listProductSubscriptionsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         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) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

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

        Note: If you prefer to have control on service calls, use the 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 via ListProductSubscriptionsRequest.builder()

        Parameters:
        listProductSubscriptionsRequest - A Consumer that will call methods on ListProductSubscriptionsRequest.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.
        • 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:
        AWS API Documentation
      • 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.
        • 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:
        AWS API Documentation
      • 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 via ListUserAssociationsRequest.builder()

        Parameters:
        listUserAssociationsRequest - A Consumer that will call methods on ListUserAssociationsRequest.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.
        • 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:
        AWS API Documentation
      • listUserAssociationsPaginator

        default ListUserAssociationsPublisher listUserAssociationsPaginator​(ListUserAssociationsRequest listUserAssociationsRequest)

        Lists user associations for an identity provider.


        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 new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListUserAssociationsPublisher publisher = client.listUserAssociationsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         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) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

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

        Note: If you prefer to have control on service calls, use the 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.
        • 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:
        AWS API Documentation
      • listUserAssociationsPaginator

        default ListUserAssociationsPublisher listUserAssociationsPaginator​(Consumer<ListUserAssociationsRequest.Builder> listUserAssociationsRequest)

        Lists user associations for an identity provider.


        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 new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListUserAssociationsPublisher publisher = client.listUserAssociationsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         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) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

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

        Note: If you prefer to have control on service calls, use the 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 via ListUserAssociationsRequest.builder()

        Parameters:
        listUserAssociationsRequest - A Consumer that will call methods on ListUserAssociationsRequest.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.
        • 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:
        AWS API Documentation
      • 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.
        • 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:
        AWS API Documentation
      • 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 via RegisterIdentityProviderRequest.builder()

        Parameters:
        registerIdentityProviderRequest - A Consumer that will call methods on RegisterIdentityProviderRequest.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.
        • 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:
        AWS API Documentation
      • 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.
        • 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:
        AWS API Documentation
      • 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 via StartProductSubscriptionRequest.builder()

        Parameters:
        startProductSubscriptionRequest - A Consumer that will call methods on StartProductSubscriptionRequest.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.
        • 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:
        AWS API Documentation
      • 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.
        • 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:
        AWS API Documentation
      • 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 via StopProductSubscriptionRequest.builder()

        Parameters:
        stopProductSubscriptionRequest - A Consumer that will call methods on StopProductSubscriptionRequest.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.
        • 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:
        AWS API Documentation
      • 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.
        • 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:
        AWS API Documentation
      • 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 via UpdateIdentityProviderSettingsRequest.builder()

        Parameters:
        updateIdentityProviderSettingsRequest - A Consumer that will call methods on UpdateIdentityProviderSettingsRequest.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.
        • 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:
        AWS API Documentation