Interface LaunchWizardAsyncClient

  • All Superinterfaces:
    AutoCloseable, AwsClient, SdkAutoCloseable, SdkClient

    @Generated("software.amazon.awssdk:codegen")
    @ThreadSafe
    public interface LaunchWizardAsyncClient
    extends AwsClient
    Service client for accessing AWS Launch Wizard asynchronously. This can be created using the static 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.

    Launch Wizard offers a guided way of sizing, configuring, and deploying Amazon Web Services resources for third party applications, such as Microsoft SQL Server Always On and HANA based SAP systems, without the need to manually identify and provision individual Amazon Web Services resources.

    • Method Detail

      • createDeployment

        default CompletableFuture<CreateDeploymentResponse> createDeployment​(CreateDeploymentRequest createDeploymentRequest)

        Creates a deployment for the given workload. Deployments created by this operation are not available in the Launch Wizard console to use the Clone deployment action on.

        Parameters:
        createDeploymentRequest -
        Returns:
        A Java Future containing the result of the CreateDeployment operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • ResourceLimitException You have exceeded an Launch Wizard resource limit. For example, you might have too many deployments in progress.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • ResourceNotFoundException The specified workload or deployment resource can't be found.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createDeployment

        default CompletableFuture<CreateDeploymentResponse> createDeployment​(Consumer<CreateDeploymentRequest.Builder> createDeploymentRequest)

        Creates a deployment for the given workload. Deployments created by this operation are not available in the Launch Wizard console to use the Clone deployment action on.


        This is a convenience which creates an instance of the CreateDeploymentRequest.Builder avoiding the need to create one manually via CreateDeploymentRequest.builder()

        Parameters:
        createDeploymentRequest - A Consumer that will call methods on CreateDeploymentRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the CreateDeployment operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • ResourceLimitException You have exceeded an Launch Wizard resource limit. For example, you might have too many deployments in progress.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • ResourceNotFoundException The specified workload or deployment resource can't be found.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteDeployment

        default CompletableFuture<DeleteDeploymentResponse> deleteDeployment​(DeleteDeploymentRequest deleteDeploymentRequest)

        Deletes a deployment.

        Parameters:
        deleteDeploymentRequest -
        Returns:
        A Java Future containing the result of the DeleteDeployment operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • ResourceLimitException You have exceeded an Launch Wizard resource limit. For example, you might have too many deployments in progress.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • ResourceNotFoundException The specified workload or deployment resource can't be found.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteDeployment

        default CompletableFuture<DeleteDeploymentResponse> deleteDeployment​(Consumer<DeleteDeploymentRequest.Builder> deleteDeploymentRequest)

        Deletes a deployment.


        This is a convenience which creates an instance of the DeleteDeploymentRequest.Builder avoiding the need to create one manually via DeleteDeploymentRequest.builder()

        Parameters:
        deleteDeploymentRequest - A Consumer that will call methods on DeleteDeploymentRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DeleteDeployment operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • ResourceLimitException You have exceeded an Launch Wizard resource limit. For example, you might have too many deployments in progress.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • ResourceNotFoundException The specified workload or deployment resource can't be found.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getDeployment

        default CompletableFuture<GetDeploymentResponse> getDeployment​(GetDeploymentRequest getDeploymentRequest)

        Returns information about the deployment.

        Parameters:
        getDeploymentRequest -
        Returns:
        A Java Future containing the result of the GetDeployment operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • ResourceNotFoundException The specified workload or deployment resource can't be found.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getDeployment

        default CompletableFuture<GetDeploymentResponse> getDeployment​(Consumer<GetDeploymentRequest.Builder> getDeploymentRequest)

        Returns information about the deployment.


        This is a convenience which creates an instance of the GetDeploymentRequest.Builder avoiding the need to create one manually via GetDeploymentRequest.builder()

        Parameters:
        getDeploymentRequest - A Consumer that will call methods on GetDeploymentRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetDeployment operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • ResourceNotFoundException The specified workload or deployment resource can't be found.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getWorkload

        default CompletableFuture<GetWorkloadResponse> getWorkload​(GetWorkloadRequest getWorkloadRequest)

        Returns information about a workload.

        Parameters:
        getWorkloadRequest -
        Returns:
        A Java Future containing the result of the GetWorkload operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • ResourceNotFoundException The specified workload or deployment resource can't be found.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getWorkload

        default CompletableFuture<GetWorkloadResponse> getWorkload​(Consumer<GetWorkloadRequest.Builder> getWorkloadRequest)

        Returns information about a workload.


        This is a convenience which creates an instance of the GetWorkloadRequest.Builder avoiding the need to create one manually via GetWorkloadRequest.builder()

        Parameters:
        getWorkloadRequest - A Consumer that will call methods on GetWorkloadRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetWorkload operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • ResourceNotFoundException The specified workload or deployment resource can't be found.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getWorkloadDeploymentPattern

        default CompletableFuture<GetWorkloadDeploymentPatternResponse> getWorkloadDeploymentPattern​(GetWorkloadDeploymentPatternRequest getWorkloadDeploymentPatternRequest)

        Returns details for a given workload and deployment pattern, including the available specifications. You can use the ListWorkloads operation to discover the available workload names and the ListWorkloadDeploymentPatterns operation to discover the available deployment pattern names of a given workload.

        Parameters:
        getWorkloadDeploymentPatternRequest -
        Returns:
        A Java Future containing the result of the GetWorkloadDeploymentPattern operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • ResourceNotFoundException The specified workload or deployment resource can't be found.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getWorkloadDeploymentPattern

        default CompletableFuture<GetWorkloadDeploymentPatternResponse> getWorkloadDeploymentPattern​(Consumer<GetWorkloadDeploymentPatternRequest.Builder> getWorkloadDeploymentPatternRequest)

        Returns details for a given workload and deployment pattern, including the available specifications. You can use the ListWorkloads operation to discover the available workload names and the ListWorkloadDeploymentPatterns operation to discover the available deployment pattern names of a given workload.


        This is a convenience which creates an instance of the GetWorkloadDeploymentPatternRequest.Builder avoiding the need to create one manually via GetWorkloadDeploymentPatternRequest.builder()

        Parameters:
        getWorkloadDeploymentPatternRequest - A Consumer that will call methods on GetWorkloadDeploymentPatternRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetWorkloadDeploymentPattern operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • ResourceNotFoundException The specified workload or deployment resource can't be found.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listDeploymentEvents

        default CompletableFuture<ListDeploymentEventsResponse> listDeploymentEvents​(ListDeploymentEventsRequest listDeploymentEventsRequest)

        Lists the events of a deployment.

        Parameters:
        listDeploymentEventsRequest -
        Returns:
        A Java Future containing the result of the ListDeploymentEvents operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • ResourceNotFoundException The specified workload or deployment resource can't be found.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listDeploymentEvents

        default CompletableFuture<ListDeploymentEventsResponse> listDeploymentEvents​(Consumer<ListDeploymentEventsRequest.Builder> listDeploymentEventsRequest)

        Lists the events of a deployment.


        This is a convenience which creates an instance of the ListDeploymentEventsRequest.Builder avoiding the need to create one manually via ListDeploymentEventsRequest.builder()

        Parameters:
        listDeploymentEventsRequest - A Consumer that will call methods on ListDeploymentEventsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListDeploymentEvents operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • ResourceNotFoundException The specified workload or deployment resource can't be found.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listDeploymentEventsPaginator

        default ListDeploymentEventsPublisher listDeploymentEventsPaginator​(ListDeploymentEventsRequest listDeploymentEventsRequest)

        This is a variant of listDeploymentEvents(software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsRequest) 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.launchwizard.paginators.ListDeploymentEventsPublisher publisher = client.listDeploymentEventsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.launchwizard.paginators.ListDeploymentEventsPublisher publisher = client.listDeploymentEventsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsResponse 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 listDeploymentEvents(software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsRequest) operation.

        Parameters:
        listDeploymentEventsRequest -
        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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • ResourceNotFoundException The specified workload or deployment resource can't be found.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listDeploymentEventsPaginator

        default ListDeploymentEventsPublisher listDeploymentEventsPaginator​(Consumer<ListDeploymentEventsRequest.Builder> listDeploymentEventsRequest)

        This is a variant of listDeploymentEvents(software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsRequest) 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.launchwizard.paginators.ListDeploymentEventsPublisher publisher = client.listDeploymentEventsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.launchwizard.paginators.ListDeploymentEventsPublisher publisher = client.listDeploymentEventsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsResponse 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 listDeploymentEvents(software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsRequest) operation.


        This is a convenience which creates an instance of the ListDeploymentEventsRequest.Builder avoiding the need to create one manually via ListDeploymentEventsRequest.builder()

        Parameters:
        listDeploymentEventsRequest - A Consumer that will call methods on ListDeploymentEventsRequest.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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • ResourceNotFoundException The specified workload or deployment resource can't be found.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listDeployments

        default CompletableFuture<ListDeploymentsResponse> listDeployments​(ListDeploymentsRequest listDeploymentsRequest)

        Lists the deployments that have been created.

        Parameters:
        listDeploymentsRequest -
        Returns:
        A Java Future containing the result of the ListDeployments operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listDeployments

        default CompletableFuture<ListDeploymentsResponse> listDeployments​(Consumer<ListDeploymentsRequest.Builder> listDeploymentsRequest)

        Lists the deployments that have been created.


        This is a convenience which creates an instance of the ListDeploymentsRequest.Builder avoiding the need to create one manually via ListDeploymentsRequest.builder()

        Parameters:
        listDeploymentsRequest - A Consumer that will call methods on ListDeploymentsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListDeployments operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listDeploymentsPaginator

        default ListDeploymentsPublisher listDeploymentsPaginator​(ListDeploymentsRequest listDeploymentsRequest)

        This is a variant of listDeployments(software.amazon.awssdk.services.launchwizard.model.ListDeploymentsRequest) 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.launchwizard.paginators.ListDeploymentsPublisher publisher = client.listDeploymentsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.launchwizard.paginators.ListDeploymentsPublisher publisher = client.listDeploymentsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.launchwizard.model.ListDeploymentsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.launchwizard.model.ListDeploymentsResponse 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 listDeployments(software.amazon.awssdk.services.launchwizard.model.ListDeploymentsRequest) operation.

        Parameters:
        listDeploymentsRequest -
        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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listDeploymentsPaginator

        default ListDeploymentsPublisher listDeploymentsPaginator​(Consumer<ListDeploymentsRequest.Builder> listDeploymentsRequest)

        This is a variant of listDeployments(software.amazon.awssdk.services.launchwizard.model.ListDeploymentsRequest) 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.launchwizard.paginators.ListDeploymentsPublisher publisher = client.listDeploymentsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.launchwizard.paginators.ListDeploymentsPublisher publisher = client.listDeploymentsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.launchwizard.model.ListDeploymentsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.launchwizard.model.ListDeploymentsResponse 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 listDeployments(software.amazon.awssdk.services.launchwizard.model.ListDeploymentsRequest) operation.


        This is a convenience which creates an instance of the ListDeploymentsRequest.Builder avoiding the need to create one manually via ListDeploymentsRequest.builder()

        Parameters:
        listDeploymentsRequest - A Consumer that will call methods on ListDeploymentsRequest.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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listTagsForResource

        default CompletableFuture<ListTagsForResourceResponse> listTagsForResource​(ListTagsForResourceRequest listTagsForResourceRequest)

        Lists the tags associated with a specified resource.

        Parameters:
        listTagsForResourceRequest -
        Returns:
        A Java Future containing the result of the ListTagsForResource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • ResourceNotFoundException The specified workload or deployment resource can't be found.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listTagsForResource

        default CompletableFuture<ListTagsForResourceResponse> listTagsForResource​(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)

        Lists the tags associated with a specified resource.


        This is a convenience which creates an instance of the ListTagsForResourceRequest.Builder avoiding the need to create one manually via ListTagsForResourceRequest.builder()

        Parameters:
        listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListTagsForResource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • ResourceNotFoundException The specified workload or deployment resource can't be found.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listWorkloadDeploymentPatterns

        default CompletableFuture<ListWorkloadDeploymentPatternsResponse> listWorkloadDeploymentPatterns​(ListWorkloadDeploymentPatternsRequest listWorkloadDeploymentPatternsRequest)

        Lists the workload deployment patterns for a given workload name. You can use the ListWorkloads operation to discover the available workload names.

        Parameters:
        listWorkloadDeploymentPatternsRequest -
        Returns:
        A Java Future containing the result of the ListWorkloadDeploymentPatterns operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • ResourceNotFoundException The specified workload or deployment resource can't be found.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listWorkloadDeploymentPatterns

        default CompletableFuture<ListWorkloadDeploymentPatternsResponse> listWorkloadDeploymentPatterns​(Consumer<ListWorkloadDeploymentPatternsRequest.Builder> listWorkloadDeploymentPatternsRequest)

        Lists the workload deployment patterns for a given workload name. You can use the ListWorkloads operation to discover the available workload names.


        This is a convenience which creates an instance of the ListWorkloadDeploymentPatternsRequest.Builder avoiding the need to create one manually via ListWorkloadDeploymentPatternsRequest.builder()

        Parameters:
        listWorkloadDeploymentPatternsRequest - A Consumer that will call methods on ListWorkloadDeploymentPatternsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListWorkloadDeploymentPatterns operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • ResourceNotFoundException The specified workload or deployment resource can't be found.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listWorkloadDeploymentPatternsPaginator

        default ListWorkloadDeploymentPatternsPublisher listWorkloadDeploymentPatternsPaginator​(ListWorkloadDeploymentPatternsRequest listWorkloadDeploymentPatternsRequest)

        This is a variant of listWorkloadDeploymentPatterns(software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsRequest) 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.launchwizard.paginators.ListWorkloadDeploymentPatternsPublisher publisher = client.listWorkloadDeploymentPatternsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.launchwizard.paginators.ListWorkloadDeploymentPatternsPublisher publisher = client.listWorkloadDeploymentPatternsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsResponse 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 listWorkloadDeploymentPatterns(software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsRequest) operation.

        Parameters:
        listWorkloadDeploymentPatternsRequest -
        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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • ResourceNotFoundException The specified workload or deployment resource can't be found.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listWorkloadDeploymentPatternsPaginator

        default ListWorkloadDeploymentPatternsPublisher listWorkloadDeploymentPatternsPaginator​(Consumer<ListWorkloadDeploymentPatternsRequest.Builder> listWorkloadDeploymentPatternsRequest)

        This is a variant of listWorkloadDeploymentPatterns(software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsRequest) 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.launchwizard.paginators.ListWorkloadDeploymentPatternsPublisher publisher = client.listWorkloadDeploymentPatternsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.launchwizard.paginators.ListWorkloadDeploymentPatternsPublisher publisher = client.listWorkloadDeploymentPatternsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsResponse 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 listWorkloadDeploymentPatterns(software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsRequest) operation.


        This is a convenience which creates an instance of the ListWorkloadDeploymentPatternsRequest.Builder avoiding the need to create one manually via ListWorkloadDeploymentPatternsRequest.builder()

        Parameters:
        listWorkloadDeploymentPatternsRequest - A Consumer that will call methods on ListWorkloadDeploymentPatternsRequest.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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • ResourceNotFoundException The specified workload or deployment resource can't be found.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listWorkloads

        default CompletableFuture<ListWorkloadsResponse> listWorkloads​(ListWorkloadsRequest listWorkloadsRequest)

        Lists the available workload names. You can use the ListWorkloadDeploymentPatterns operation to discover the available deployment patterns for a given workload.

        Parameters:
        listWorkloadsRequest -
        Returns:
        A Java Future containing the result of the ListWorkloads operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listWorkloads

        default CompletableFuture<ListWorkloadsResponse> listWorkloads​(Consumer<ListWorkloadsRequest.Builder> listWorkloadsRequest)

        Lists the available workload names. You can use the ListWorkloadDeploymentPatterns operation to discover the available deployment patterns for a given workload.


        This is a convenience which creates an instance of the ListWorkloadsRequest.Builder avoiding the need to create one manually via ListWorkloadsRequest.builder()

        Parameters:
        listWorkloadsRequest - A Consumer that will call methods on ListWorkloadsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListWorkloads operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listWorkloadsPaginator

        default ListWorkloadsPublisher listWorkloadsPaginator​(ListWorkloadsRequest listWorkloadsRequest)

        This is a variant of listWorkloads(software.amazon.awssdk.services.launchwizard.model.ListWorkloadsRequest) 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.launchwizard.paginators.ListWorkloadsPublisher publisher = client.listWorkloadsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.launchwizard.paginators.ListWorkloadsPublisher publisher = client.listWorkloadsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.launchwizard.model.ListWorkloadsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.launchwizard.model.ListWorkloadsResponse 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 listWorkloads(software.amazon.awssdk.services.launchwizard.model.ListWorkloadsRequest) operation.

        Parameters:
        listWorkloadsRequest -
        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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listWorkloadsPaginator

        default ListWorkloadsPublisher listWorkloadsPaginator​(Consumer<ListWorkloadsRequest.Builder> listWorkloadsRequest)

        This is a variant of listWorkloads(software.amazon.awssdk.services.launchwizard.model.ListWorkloadsRequest) 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.launchwizard.paginators.ListWorkloadsPublisher publisher = client.listWorkloadsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.launchwizard.paginators.ListWorkloadsPublisher publisher = client.listWorkloadsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.launchwizard.model.ListWorkloadsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.launchwizard.model.ListWorkloadsResponse 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 listWorkloads(software.amazon.awssdk.services.launchwizard.model.ListWorkloadsRequest) operation.


        This is a convenience which creates an instance of the ListWorkloadsRequest.Builder avoiding the need to create one manually via ListWorkloadsRequest.builder()

        Parameters:
        listWorkloadsRequest - A Consumer that will call methods on ListWorkloadsRequest.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 invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • tagResource

        default CompletableFuture<TagResourceResponse> tagResource​(TagResourceRequest tagResourceRequest)

        Adds the specified tags to the given resource.

        Parameters:
        tagResourceRequest -
        Returns:
        A Java Future containing the result of the TagResource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • ResourceNotFoundException The specified workload or deployment resource can't be found.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • tagResource

        default CompletableFuture<TagResourceResponse> tagResource​(Consumer<TagResourceRequest.Builder> tagResourceRequest)

        Adds the specified tags to the given resource.


        This is a convenience which creates an instance of the TagResourceRequest.Builder avoiding the need to create one manually via TagResourceRequest.builder()

        Parameters:
        tagResourceRequest - A Consumer that will call methods on TagResourceRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the TagResource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • ResourceNotFoundException The specified workload or deployment resource can't be found.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • untagResource

        default CompletableFuture<UntagResourceResponse> untagResource​(UntagResourceRequest untagResourceRequest)

        Removes the specified tags from the given resource.

        Parameters:
        untagResourceRequest -
        Returns:
        A Java Future containing the result of the UntagResource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • ResourceNotFoundException The specified workload or deployment resource can't be found.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • untagResource

        default CompletableFuture<UntagResourceResponse> untagResource​(Consumer<UntagResourceRequest.Builder> untagResourceRequest)

        Removes the specified tags from the given resource.


        This is a convenience which creates an instance of the UntagResourceRequest.Builder avoiding the need to create one manually via UntagResourceRequest.builder()

        Parameters:
        untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the UntagResource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
        • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
        • ResourceNotFoundException The specified workload or deployment resource can't be found.
        • 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.
        • LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation